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

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-rel-lnx-codecoverage/build/rdf/base/idl/nsIRDFContainer.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIRDFContainer_h__
           6                 : #define __gen_nsIRDFContainer_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : #ifndef __gen_nsIRDFDataSource_h__
          14                 : #include "nsIRDFDataSource.h"
          15                 : #endif
          16                 :
          17                 : #ifndef __gen_nsIRDFResource_h__
          18                 : #include "nsIRDFResource.h"
          19                 : #endif
          20                 :
          21                 : #ifndef __gen_nsIRDFNode_h__
          22                 : #include "nsIRDFNode.h"
          23                 : #endif
          24                 :
          25                 : #ifndef __gen_nsISimpleEnumerator_h__
          26                 : #include "nsISimpleEnumerator.h"
          27                 : #endif
          28                 :
          29                 : /* For IDL files that don't want to include root IDL files. */
          30                 : #ifndef NS_NO_VTABLE
          31                 : #define NS_NO_VTABLE
          32                 : #endif
          33                 :
          34                 : /* starting interface:    nsIRDFContainer */
          35                 : #define NS_IRDFCONTAINER_IID_STR "d4214e90-fb94-11d2-bdd8-00104bde6048"
          36                 :
          37                 : #define NS_IRDFCONTAINER_IID \
          38                 :   {0xd4214e90, 0xfb94, 0x11d2, \
          39                 :     { 0xbd, 0xd8, 0x00, 0x10, 0x4b, 0xde, 0x60, 0x48 }}
          40                 :
          41            2288 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFContainer : public nsISupports {
          42                 :  public:
          43                 :
          44                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFCONTAINER_IID)
          45                 :
          46                 :   /* readonly attribute nsIRDFDataSource DataSource; */
          47                 :   NS_SCRIPTABLE NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) = 0;
          48                 :
          49                 :   /* readonly attribute nsIRDFResource Resource; */
          50                 :   NS_SCRIPTABLE NS_IMETHOD GetResource(nsIRDFResource * *aResource) = 0;
          51                 :
          52                 :   /* void Init (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer); */
          53                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer) = 0;
          54                 :
          55                 :   /* long GetCount (); */
          56                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *_retval NS_OUTPARAM) = 0;
          57                 :
          58                 :   /* nsISimpleEnumerator GetElements (); */
          59                 :   NS_SCRIPTABLE NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
          60                 :
          61                 :   /* void AppendElement (in nsIRDFNode aElement); */
          62                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsIRDFNode *aElement) = 0;
          63                 :
          64                 :   /* void RemoveElement (in nsIRDFNode aElement, in boolean aRenumber); */
          65                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber) = 0;
          66                 :
          67                 :   /* void InsertElementAt (in nsIRDFNode aElement, in long aIndex, in boolean aRenumber); */
          68                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, PRInt32 aIndex, bool aRenumber) = 0;
          69                 :
          70                 :   /* nsIRDFNode RemoveElementAt (in long aIndex, in boolean aRenumber); */
          71                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRInt32 aIndex, bool aRenumber, nsIRDFNode * *_retval NS_OUTPARAM) = 0;
          72                 :
          73                 :   /* long IndexOf (in nsIRDFNode aElement); */
          74                 :   NS_SCRIPTABLE NS_IMETHOD IndexOf(nsIRDFNode *aElement, PRInt32 *_retval NS_OUTPARAM) = 0;
          75                 :
          76                 : };
          77                 :
          78                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFContainer, NS_IRDFCONTAINER_IID)
          79                 :
          80                 : /* Use this macro when declaring classes that implement this interface. */
          81                 : #define NS_DECL_NSIRDFCONTAINER \
          82                 :   NS_SCRIPTABLE NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource); \
          83                 :   NS_SCRIPTABLE NS_IMETHOD GetResource(nsIRDFResource * *aResource); \
          84                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer); \
          85                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *_retval NS_OUTPARAM); \
          86                 :   NS_SCRIPTABLE NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
          87                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsIRDFNode *aElement); \
          88                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber); \
          89                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, PRInt32 aIndex, bool aRenumber); \
          90                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRInt32 aIndex, bool aRenumber, nsIRDFNode * *_retval NS_OUTPARAM); \
          91                 :   NS_SCRIPTABLE NS_IMETHOD IndexOf(nsIRDFNode *aElement, PRInt32 *_retval NS_OUTPARAM);
          92                 :
          93                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          94                 : #define NS_FORWARD_NSIRDFCONTAINER(_to) \
          95                 :   NS_SCRIPTABLE NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) { return _to GetDataSource(aDataSource); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD GetResource(nsIRDFResource * *aResource) { return _to GetResource(aResource); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer) { return _to Init(aDataSource, aContainer); } \
          98                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *_retval NS_OUTPARAM) { return _to GetCount(_retval); } \
          99                 :   NS_SCRIPTABLE NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetElements(_retval); } \
         100                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsIRDFNode *aElement) { return _to AppendElement(aElement); } \
         101                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber) { return _to RemoveElement(aElement, aRenumber); } \
         102                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, PRInt32 aIndex, bool aRenumber) { return _to InsertElementAt(aElement, aIndex, aRenumber); } \
         103                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRInt32 aIndex, bool aRenumber, nsIRDFNode * *_retval NS_OUTPARAM) { return _to RemoveElementAt(aIndex, aRenumber, _retval); } \
         104                 :   NS_SCRIPTABLE NS_IMETHOD IndexOf(nsIRDFNode *aElement, PRInt32 *_retval NS_OUTPARAM) { return _to IndexOf(aElement, _retval); }
         105                 :
         106                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         107                 : #define NS_FORWARD_SAFE_NSIRDFCONTAINER(_to) \
         108                 :   NS_SCRIPTABLE NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSource(aDataSource); } \
         109                 :   NS_SCRIPTABLE NS_IMETHOD GetResource(nsIRDFResource * *aResource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResource(aResource); } \
         110                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDataSource, aContainer); } \
         111                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(_retval); } \
         112                 :   NS_SCRIPTABLE NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElements(_retval); } \
         113                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsIRDFNode *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendElement(aElement); } \
         114                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElement(aElement, aRenumber); } \
         115                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, PRInt32 aIndex, bool aRenumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAt(aElement, aIndex, aRenumber); } \
         116                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRInt32 aIndex, bool aRenumber, nsIRDFNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementAt(aIndex, aRenumber, _retval); } \
         117                 :   NS_SCRIPTABLE NS_IMETHOD IndexOf(nsIRDFNode *aElement, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOf(aElement, _retval); }
         118                 :
         119                 : #if 0
         120                 : /* Use the code below as a template for the implementation class for this interface. */
         121                 :
         122                 : /* Header file */
         123                 : class nsRDFContainer : public nsIRDFContainer
         124                 : {
         125                 : public:
         126                 :   NS_DECL_ISUPPORTS
         127                 :   NS_DECL_NSIRDFCONTAINER
         128                 :
         129                 :   nsRDFContainer();
         130                 :
         131                 : private:
         132                 :   ~nsRDFContainer();
         133                 :
         134                 : protected:
         135                 :   /* additional members */
         136                 : };
         137                 :
         138                 : /* Implementation file */
         139                 : NS_IMPL_ISUPPORTS1(nsRDFContainer, nsIRDFContainer)
         140                 :
         141                 : nsRDFContainer::nsRDFContainer()
         142                 : {
         143                 :   /* member initializers and constructor code */
         144                 : }
         145                 :
         146                 : nsRDFContainer::~nsRDFContainer()
         147                 : {
         148                 :   /* destructor code */
         149                 : }
         150                 :
         151                 : /* readonly attribute nsIRDFDataSource DataSource; */
         152                 : NS_IMETHODIMP nsRDFContainer::GetDataSource(nsIRDFDataSource * *aDataSource)
         153                 : {
         154                 :     return NS_ERROR_NOT_IMPLEMENTED;
         155                 : }
         156                 :
         157                 : /* readonly attribute nsIRDFResource Resource; */
         158                 : NS_IMETHODIMP nsRDFContainer::GetResource(nsIRDFResource * *aResource)
         159                 : {
         160                 :     return NS_ERROR_NOT_IMPLEMENTED;
         161                 : }
         162                 :
         163                 : /* void Init (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer); */
         164                 : NS_IMETHODIMP nsRDFContainer::Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer)
         165                 : {
         166                 :     return NS_ERROR_NOT_IMPLEMENTED;
         167                 : }
         168                 :
         169                 : /* long GetCount (); */
         170                 : NS_IMETHODIMP nsRDFContainer::GetCount(PRInt32 *_retval NS_OUTPARAM)
         171                 : {
         172                 :     return NS_ERROR_NOT_IMPLEMENTED;
         173                 : }
         174                 :
         175                 : /* nsISimpleEnumerator GetElements (); */
         176                 : NS_IMETHODIMP nsRDFContainer::GetElements(nsISimpleEnumerator * *_retval NS_OUTPARAM)
         177                 : {
         178                 :     return NS_ERROR_NOT_IMPLEMENTED;
         179                 : }
         180                 :
         181                 : /* void AppendElement (in nsIRDFNode aElement); */
         182                 : NS_IMETHODIMP nsRDFContainer::AppendElement(nsIRDFNode *aElement)
         183                 : {
         184                 :     return NS_ERROR_NOT_IMPLEMENTED;
         185                 : }
         186                 :
         187                 : /* void RemoveElement (in nsIRDFNode aElement, in boolean aRenumber); */
         188                 : NS_IMETHODIMP nsRDFContainer::RemoveElement(nsIRDFNode *aElement, bool aRenumber)
         189                 : {
         190                 :     return NS_ERROR_NOT_IMPLEMENTED;
         191                 : }
         192                 :
         193                 : /* void InsertElementAt (in nsIRDFNode aElement, in long aIndex, in boolean aRenumber); */
         194                 : NS_IMETHODIMP nsRDFContainer::InsertElementAt(nsIRDFNode *aElement, PRInt32 aIndex, bool aRenumber)
         195                 : {
         196                 :     return NS_ERROR_NOT_IMPLEMENTED;
         197                 : }
         198                 :
         199                 : /* nsIRDFNode RemoveElementAt (in long aIndex, in boolean aRenumber); */
         200                 : NS_IMETHODIMP nsRDFContainer::RemoveElementAt(PRInt32 aIndex, bool aRenumber, nsIRDFNode * *_retval NS_OUTPARAM)
         201                 : {
         202                 :     return NS_ERROR_NOT_IMPLEMENTED;
         203                 : }
         204                 :
         205                 : /* long IndexOf (in nsIRDFNode aElement); */
         206                 : NS_IMETHODIMP nsRDFContainer::IndexOf(nsIRDFNode *aElement, PRInt32 *_retval NS_OUTPARAM)
         207                 : {
         208                 :     return NS_ERROR_NOT_IMPLEMENTED;
         209                 : }
         210                 :
         211                 : /* End of implementation class template. */
         212                 : #endif
         213                 :
         214                 : nsresult
         215                 : NS_NewRDFContainer(nsIRDFContainer** aResult);
         216                 : nsresult
         217                 : NS_NewRDFContainer(nsIRDFDataSource* aDataSource,
         218                 :                    nsIRDFResource* aResource,
         219                 :                    nsIRDFContainer** aResult);
         220                 : /**
         221                 :  * Create a cursor on a container that enumerates its contents in
         222                 :  * order
         223                 :  */
         224                 : nsresult
         225                 : NS_NewContainerEnumerator(nsIRDFDataSource* aDataSource,
         226                 :                           nsIRDFResource* aContainer,
         227                 :                           nsISimpleEnumerator** aResult);
         228                 :
         229                 : #endif /* __gen_nsIRDFContainer_h__ */

Generated by: LCOV version 1.7