LCOV - app.info - objdir/dist/include/nsIRDFXMLSink.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIRDFXMLSink.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-06-02 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/rdf/base/idl/nsIRDFXMLSink.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIRDFXMLSink_h__
           6                 : #define __gen_nsIRDFXMLSink_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : /* For IDL files that don't want to include root IDL files. */
          14                 : #ifndef NS_NO_VTABLE
          15                 : #define NS_NO_VTABLE
          16                 : #endif
          17                 : class nsIAtom;
          18                 : class nsString;
          19                 : class nsIRDFXMLSink; /* forward declaration */
          20                 :
          21                 :
          22                 : /* starting interface:    nsIRDFXMLSinkObserver */
          23                 : #define NS_IRDFXMLSINKOBSERVER_IID_STR "eb1a5d30-ab33-11d2-8ec6-00805f29f370"
          24                 :
          25                 : #define NS_IRDFXMLSINKOBSERVER_IID \
          26                 :   {0xeb1a5d30, 0xab33, 0x11d2, \
          27                 :     { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
          28                 :
          29                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFXMLSinkObserver : public nsISupports {
          30                 :  public:
          31                 :
          32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINKOBSERVER_IID)
          33                 :
          34                 :   /* void onBeginLoad (in nsIRDFXMLSink aSink); */
          35                 :   NS_SCRIPTABLE NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) = 0;
          36                 :
          37                 :   /* void onInterrupt (in nsIRDFXMLSink aSink); */
          38                 :   NS_SCRIPTABLE NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) = 0;
          39                 :
          40                 :   /* void onResume (in nsIRDFXMLSink aSink); */
          41                 :   NS_SCRIPTABLE NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) = 0;
          42                 :
          43                 :   /* void onEndLoad (in nsIRDFXMLSink aSink); */
          44                 :   NS_SCRIPTABLE NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) = 0;
          45                 :
          46                 :   /* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg) = 0;
          48                 :
          49                 : };
          50                 :
          51                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSinkObserver, NS_IRDFXMLSINKOBSERVER_IID)
          52                 :
          53                 : /* Use this macro when declaring classes that implement this interface. */
          54                 : #define NS_DECL_NSIRDFXMLSINKOBSERVER \
          55                 :   NS_SCRIPTABLE NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink); \
          56                 :   NS_SCRIPTABLE NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink); \
          57                 :   NS_SCRIPTABLE NS_IMETHOD OnResume(nsIRDFXMLSink *aSink); \
          58                 :   NS_SCRIPTABLE NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink); \
          59                 :   NS_SCRIPTABLE NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg);
          60                 :
          61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          62                 : #define NS_FORWARD_NSIRDFXMLSINKOBSERVER(_to) \
          63                 :   NS_SCRIPTABLE NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) { return _to OnBeginLoad(aSink); } \
          64                 :   NS_SCRIPTABLE NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) { return _to OnInterrupt(aSink); } \
          65                 :   NS_SCRIPTABLE NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) { return _to OnResume(aSink); } \
          66                 :   NS_SCRIPTABLE NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) { return _to OnEndLoad(aSink); } \
          67                 :   NS_SCRIPTABLE NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg) { return _to OnError(aSink, aStatus, aErrorMsg); }
          68                 :
          69                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          70                 : #define NS_FORWARD_SAFE_NSIRDFXMLSINKOBSERVER(_to) \
          71                 :   NS_SCRIPTABLE NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginLoad(aSink); } \
          72                 :   NS_SCRIPTABLE NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInterrupt(aSink); } \
          73                 :   NS_SCRIPTABLE NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResume(aSink); } \
          74                 :   NS_SCRIPTABLE NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndLoad(aSink); } \
          75                 :   NS_SCRIPTABLE NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aSink, aStatus, aErrorMsg); }
          76                 :
          77                 : #if 0
          78                 : /* Use the code below as a template for the implementation class for this interface. */
          79                 :
          80                 : /* Header file */
          81                 : class nsRDFXMLSinkObserver : public nsIRDFXMLSinkObserver
          82                 : {
          83                 : public:
          84                 :   NS_DECL_ISUPPORTS
          85                 :   NS_DECL_NSIRDFXMLSINKOBSERVER
          86                 :
          87                 :   nsRDFXMLSinkObserver();
          88                 :
          89                 : private:
          90                 :   ~nsRDFXMLSinkObserver();
          91                 :
          92                 : protected:
          93                 :   /* additional members */
          94                 : };
          95                 :
          96                 : /* Implementation file */
          97                 : NS_IMPL_ISUPPORTS1(nsRDFXMLSinkObserver, nsIRDFXMLSinkObserver)
          98                 :
          99                 : nsRDFXMLSinkObserver::nsRDFXMLSinkObserver()
         100                 : {
         101                 :   /* member initializers and constructor code */
         102                 : }
         103                 :
         104                 : nsRDFXMLSinkObserver::~nsRDFXMLSinkObserver()
         105                 : {
         106                 :   /* destructor code */
         107                 : }
         108                 :
         109                 : /* void onBeginLoad (in nsIRDFXMLSink aSink); */
         110                 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnBeginLoad(nsIRDFXMLSink *aSink)
         111                 : {
         112                 :     return NS_ERROR_NOT_IMPLEMENTED;
         113                 : }
         114                 :
         115                 : /* void onInterrupt (in nsIRDFXMLSink aSink); */
         116                 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnInterrupt(nsIRDFXMLSink *aSink)
         117                 : {
         118                 :     return NS_ERROR_NOT_IMPLEMENTED;
         119                 : }
         120                 :
         121                 : /* void onResume (in nsIRDFXMLSink aSink); */
         122                 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnResume(nsIRDFXMLSink *aSink)
         123                 : {
         124                 :     return NS_ERROR_NOT_IMPLEMENTED;
         125                 : }
         126                 :
         127                 : /* void onEndLoad (in nsIRDFXMLSink aSink); */
         128                 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnEndLoad(nsIRDFXMLSink *aSink)
         129                 : {
         130                 :     return NS_ERROR_NOT_IMPLEMENTED;
         131                 : }
         132                 :
         133                 : /* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
         134                 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg)
         135                 : {
         136                 :     return NS_ERROR_NOT_IMPLEMENTED;
         137                 : }
         138                 :
         139                 : /* End of implementation class template. */
         140                 : #endif
         141                 :
         142                 :
         143                 : /* starting interface:    nsIRDFXMLSink */
         144                 : #define NS_IRDFXMLSINK_IID_STR "eb1a5d31-ab33-11d2-8ec6-00805f29f370"
         145                 :
         146                 : #define NS_IRDFXMLSINK_IID \
         147                 :   {0xeb1a5d31, 0xab33, 0x11d2, \
         148                 :     { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
         149                 :
         150              10 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFXMLSink : public nsISupports {
         151                 :  public:
         152                 :
         153                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINK_IID)
         154                 :
         155                 :   /* attribute boolean readOnly; */
         156                 :   NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
         157                 :   NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;
         158                 :
         159                 :   /* void beginLoad (); */
         160                 :   NS_SCRIPTABLE NS_IMETHOD BeginLoad(void) = 0;
         161                 :
         162                 :   /* void interrupt (); */
         163                 :   NS_SCRIPTABLE NS_IMETHOD Interrupt(void) = 0;
         164                 :
         165                 :   /* void resume (); */
         166                 :   NS_SCRIPTABLE NS_IMETHOD Resume(void) = 0;
         167                 :
         168                 :   /* void endLoad (); */
         169                 :   NS_SCRIPTABLE NS_IMETHOD EndLoad(void) = 0;
         170                 :
         171                 :   /* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
         172                 :   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) = 0;
         173                 :
         174                 :   /* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
         175                 :   NS_SCRIPTABLE NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;
         176                 :
         177                 :   /* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
         178                 :   NS_SCRIPTABLE NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;
         179                 :
         180                 : };
         181                 :
         182                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSink, NS_IRDFXMLSINK_IID)
         183                 :
         184                 : /* Use this macro when declaring classes that implement this interface. */
         185                 : #define NS_DECL_NSIRDFXMLSINK \
         186                 :   NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly); \
         187                 :   NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly); \
         188                 :   NS_SCRIPTABLE NS_IMETHOD BeginLoad(void); \
         189                 :   NS_SCRIPTABLE NS_IMETHOD Interrupt(void); \
         190                 :   NS_SCRIPTABLE NS_IMETHOD Resume(void); \
         191                 :   NS_SCRIPTABLE NS_IMETHOD EndLoad(void); \
         192                 :   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI); \
         193                 :   NS_SCRIPTABLE NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver); \
         194                 :   NS_SCRIPTABLE NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver);
         195                 :
         196                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         197                 : #define NS_FORWARD_NSIRDFXMLSINK(_to) \
         198                 :   NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly) { return _to GetReadOnly(aReadOnly); } \
         199                 :   NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly) { return _to SetReadOnly(aReadOnly); } \
         200                 :   NS_SCRIPTABLE NS_IMETHOD BeginLoad(void) { return _to BeginLoad(); } \
         201                 :   NS_SCRIPTABLE NS_IMETHOD Interrupt(void) { return _to Interrupt(); } \
         202                 :   NS_SCRIPTABLE NS_IMETHOD Resume(void) { return _to Resume(); } \
         203                 :   NS_SCRIPTABLE NS_IMETHOD EndLoad(void) { return _to EndLoad(); } \
         204                 :   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) { return _to AddNameSpace(aPrefix, aURI); } \
         205                 :   NS_SCRIPTABLE NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { return _to AddXMLSinkObserver(aObserver); } \
         206                 :   NS_SCRIPTABLE NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { return _to RemoveXMLSinkObserver(aObserver); }
         207                 :
         208                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         209                 : #define NS_FORWARD_SAFE_NSIRDFXMLSINK(_to) \
         210                 :   NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
         211                 :   NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
         212                 :   NS_SCRIPTABLE NS_IMETHOD BeginLoad(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginLoad(); } \
         213                 :   NS_SCRIPTABLE NS_IMETHOD Interrupt(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Interrupt(); } \
         214                 :   NS_SCRIPTABLE NS_IMETHOD Resume(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \
         215                 :   NS_SCRIPTABLE NS_IMETHOD EndLoad(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndLoad(); } \
         216                 :   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNameSpace(aPrefix, aURI); } \
         217                 :   NS_SCRIPTABLE NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddXMLSinkObserver(aObserver); } \
         218                 :   NS_SCRIPTABLE NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveXMLSinkObserver(aObserver); }
         219                 :
         220                 : #if 0
         221                 : /* Use the code below as a template for the implementation class for this interface. */
         222                 :
         223                 : /* Header file */
         224                 : class nsRDFXMLSink : public nsIRDFXMLSink
         225                 : {
         226                 : public:
         227                 :   NS_DECL_ISUPPORTS
         228                 :   NS_DECL_NSIRDFXMLSINK
         229                 :
         230                 :   nsRDFXMLSink();
         231                 :
         232                 : private:
         233                 :   ~nsRDFXMLSink();
         234                 :
         235                 : protected:
         236                 :   /* additional members */
         237                 : };
         238                 :
         239                 : /* Implementation file */
         240                 : NS_IMPL_ISUPPORTS1(nsRDFXMLSink, nsIRDFXMLSink)
         241                 :
         242                 : nsRDFXMLSink::nsRDFXMLSink()
         243                 : {
         244                 :   /* member initializers and constructor code */
         245                 : }
         246                 :
         247                 : nsRDFXMLSink::~nsRDFXMLSink()
         248                 : {
         249                 :   /* destructor code */
         250                 : }
         251                 :
         252                 : /* attribute boolean readOnly; */
         253                 : NS_IMETHODIMP nsRDFXMLSink::GetReadOnly(bool *aReadOnly)
         254                 : {
         255                 :     return NS_ERROR_NOT_IMPLEMENTED;
         256                 : }
         257                 : NS_IMETHODIMP nsRDFXMLSink::SetReadOnly(bool aReadOnly)
         258                 : {
         259                 :     return NS_ERROR_NOT_IMPLEMENTED;
         260                 : }
         261                 :
         262                 : /* void beginLoad (); */
         263                 : NS_IMETHODIMP nsRDFXMLSink::BeginLoad()
         264                 : {
         265                 :     return NS_ERROR_NOT_IMPLEMENTED;
         266                 : }
         267                 :
         268                 : /* void interrupt (); */
         269                 : NS_IMETHODIMP nsRDFXMLSink::Interrupt()
         270                 : {
         271                 :     return NS_ERROR_NOT_IMPLEMENTED;
         272                 : }
         273                 :
         274                 : /* void resume (); */
         275                 : NS_IMETHODIMP nsRDFXMLSink::Resume()
         276                 : {
         277                 :     return NS_ERROR_NOT_IMPLEMENTED;
         278                 : }
         279                 :
         280                 : /* void endLoad (); */
         281                 : NS_IMETHODIMP nsRDFXMLSink::EndLoad()
         282                 : {
         283                 :     return NS_ERROR_NOT_IMPLEMENTED;
         284                 : }
         285                 :
         286                 : /* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
         287                 : NS_IMETHODIMP nsRDFXMLSink::AddNameSpace(nsIAtom *aPrefix, const nsString & aURI)
         288                 : {
         289                 :     return NS_ERROR_NOT_IMPLEMENTED;
         290                 : }
         291                 :
         292                 : /* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
         293                 : NS_IMETHODIMP nsRDFXMLSink::AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
         294                 : {
         295                 :     return NS_ERROR_NOT_IMPLEMENTED;
         296                 : }
         297                 :
         298                 : /* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
         299                 : NS_IMETHODIMP nsRDFXMLSink::RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
         300                 : {
         301                 :     return NS_ERROR_NOT_IMPLEMENTED;
         302                 : }
         303                 :
         304                 : /* End of implementation class template. */
         305                 : #endif
         306                 :
         307                 :
         308                 : #endif /* __gen_nsIRDFXMLSink_h__ */

Generated by: LCOV version 1.7