LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIRDFContainer.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/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           3 : class NS_NO_VTABLE nsIRDFContainer : public nsISupports {
      42             :  public:
      43             : 
      44             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFCONTAINER_IID)
      45             : 
      46             :   /* readonly attribute nsIRDFDataSource DataSource; */
      47             :   NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) = 0;
      48             : 
      49             :   /* readonly attribute nsIRDFResource Resource; */
      50             :   NS_IMETHOD GetResource(nsIRDFResource * *aResource) = 0;
      51             : 
      52             :   /* void Init (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer); */
      53             :   NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer) = 0;
      54             : 
      55             :   /* long GetCount (); */
      56             :   NS_IMETHOD GetCount(int32_t *_retval) = 0;
      57             : 
      58             :   /* nsISimpleEnumerator GetElements (); */
      59             :   NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval) = 0;
      60             : 
      61             :   /* void AppendElement (in nsIRDFNode aElement); */
      62             :   NS_IMETHOD AppendElement(nsIRDFNode *aElement) = 0;
      63             : 
      64             :   /* void RemoveElement (in nsIRDFNode aElement, in boolean aRenumber); */
      65             :   NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber) = 0;
      66             : 
      67             :   /* void InsertElementAt (in nsIRDFNode aElement, in long aIndex, in boolean aRenumber); */
      68             :   NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, int32_t aIndex, bool aRenumber) = 0;
      69             : 
      70             :   /* nsIRDFNode RemoveElementAt (in long aIndex, in boolean aRenumber); */
      71             :   NS_IMETHOD RemoveElementAt(int32_t aIndex, bool aRenumber, nsIRDFNode * *_retval) = 0;
      72             : 
      73             :   /* long IndexOf (in nsIRDFNode aElement); */
      74             :   NS_IMETHOD IndexOf(nsIRDFNode *aElement, int32_t *_retval) = 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_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) override; \
      83             :   NS_IMETHOD GetResource(nsIRDFResource * *aResource) override; \
      84             :   NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer) override; \
      85             :   NS_IMETHOD GetCount(int32_t *_retval) override; \
      86             :   NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval) override; \
      87             :   NS_IMETHOD AppendElement(nsIRDFNode *aElement) override; \
      88             :   NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber) override; \
      89             :   NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, int32_t aIndex, bool aRenumber) override; \
      90             :   NS_IMETHOD RemoveElementAt(int32_t aIndex, bool aRenumber, nsIRDFNode * *_retval) override; \
      91             :   NS_IMETHOD IndexOf(nsIRDFNode *aElement, int32_t *_retval) override; 
      92             : 
      93             : /* Use this macro when declaring the members of this interface when the
      94             :    class doesn't implement the interface. This is useful for forwarding. */
      95             : #define NS_DECL_NON_VIRTUAL_NSIRDFCONTAINER \
      96             :   nsresult GetDataSource(nsIRDFDataSource * *aDataSource); \
      97             :   nsresult GetResource(nsIRDFResource * *aResource); \
      98             :   nsresult Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer); \
      99             :   nsresult GetCount(int32_t *_retval); \
     100             :   nsresult GetElements(nsISimpleEnumerator * *_retval); \
     101             :   nsresult AppendElement(nsIRDFNode *aElement); \
     102             :   nsresult RemoveElement(nsIRDFNode *aElement, bool aRenumber); \
     103             :   nsresult InsertElementAt(nsIRDFNode *aElement, int32_t aIndex, bool aRenumber); \
     104             :   nsresult RemoveElementAt(int32_t aIndex, bool aRenumber, nsIRDFNode * *_retval); \
     105             :   nsresult IndexOf(nsIRDFNode *aElement, int32_t *_retval); 
     106             : 
     107             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     108             : #define NS_FORWARD_NSIRDFCONTAINER(_to) \
     109             :   NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) override { return _to GetDataSource(aDataSource); } \
     110             :   NS_IMETHOD GetResource(nsIRDFResource * *aResource) override { return _to GetResource(aResource); } \
     111             :   NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer) override { return _to Init(aDataSource, aContainer); } \
     112             :   NS_IMETHOD GetCount(int32_t *_retval) override { return _to GetCount(_retval); } \
     113             :   NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval) override { return _to GetElements(_retval); } \
     114             :   NS_IMETHOD AppendElement(nsIRDFNode *aElement) override { return _to AppendElement(aElement); } \
     115             :   NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber) override { return _to RemoveElement(aElement, aRenumber); } \
     116             :   NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, int32_t aIndex, bool aRenumber) override { return _to InsertElementAt(aElement, aIndex, aRenumber); } \
     117             :   NS_IMETHOD RemoveElementAt(int32_t aIndex, bool aRenumber, nsIRDFNode * *_retval) override { return _to RemoveElementAt(aIndex, aRenumber, _retval); } \
     118             :   NS_IMETHOD IndexOf(nsIRDFNode *aElement, int32_t *_retval) override { return _to IndexOf(aElement, _retval); } 
     119             : 
     120             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     121             : #define NS_FORWARD_SAFE_NSIRDFCONTAINER(_to) \
     122             :   NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSource(aDataSource); } \
     123             :   NS_IMETHOD GetResource(nsIRDFResource * *aResource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResource(aResource); } \
     124             :   NS_IMETHOD Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDataSource, aContainer); } \
     125             :   NS_IMETHOD GetCount(int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(_retval); } \
     126             :   NS_IMETHOD GetElements(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElements(_retval); } \
     127             :   NS_IMETHOD AppendElement(nsIRDFNode *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendElement(aElement); } \
     128             :   NS_IMETHOD RemoveElement(nsIRDFNode *aElement, bool aRenumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElement(aElement, aRenumber); } \
     129             :   NS_IMETHOD InsertElementAt(nsIRDFNode *aElement, int32_t aIndex, bool aRenumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAt(aElement, aIndex, aRenumber); } \
     130             :   NS_IMETHOD RemoveElementAt(int32_t aIndex, bool aRenumber, nsIRDFNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementAt(aIndex, aRenumber, _retval); } \
     131             :   NS_IMETHOD IndexOf(nsIRDFNode *aElement, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOf(aElement, _retval); } 
     132             : 
     133             : #if 0
     134             : /* Use the code below as a template for the implementation class for this interface. */
     135             : 
     136             : /* Header file */
     137             : class nsRDFContainer : public nsIRDFContainer
     138             : {
     139             : public:
     140             :   NS_DECL_ISUPPORTS
     141             :   NS_DECL_NSIRDFCONTAINER
     142             : 
     143             :   nsRDFContainer();
     144             : 
     145             : private:
     146             :   ~nsRDFContainer();
     147             : 
     148             : protected:
     149             :   /* additional members */
     150             : };
     151             : 
     152             : /* Implementation file */
     153             : NS_IMPL_ISUPPORTS(nsRDFContainer, nsIRDFContainer)
     154             : 
     155             : nsRDFContainer::nsRDFContainer()
     156             : {
     157             :   /* member initializers and constructor code */
     158             : }
     159             : 
     160             : nsRDFContainer::~nsRDFContainer()
     161             : {
     162             :   /* destructor code */
     163             : }
     164             : 
     165             : /* readonly attribute nsIRDFDataSource DataSource; */
     166             : NS_IMETHODIMP nsRDFContainer::GetDataSource(nsIRDFDataSource * *aDataSource)
     167             : {
     168             :     return NS_ERROR_NOT_IMPLEMENTED;
     169             : }
     170             : 
     171             : /* readonly attribute nsIRDFResource Resource; */
     172             : NS_IMETHODIMP nsRDFContainer::GetResource(nsIRDFResource * *aResource)
     173             : {
     174             :     return NS_ERROR_NOT_IMPLEMENTED;
     175             : }
     176             : 
     177             : /* void Init (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer); */
     178             : NS_IMETHODIMP nsRDFContainer::Init(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer)
     179             : {
     180             :     return NS_ERROR_NOT_IMPLEMENTED;
     181             : }
     182             : 
     183             : /* long GetCount (); */
     184             : NS_IMETHODIMP nsRDFContainer::GetCount(int32_t *_retval)
     185             : {
     186             :     return NS_ERROR_NOT_IMPLEMENTED;
     187             : }
     188             : 
     189             : /* nsISimpleEnumerator GetElements (); */
     190             : NS_IMETHODIMP nsRDFContainer::GetElements(nsISimpleEnumerator * *_retval)
     191             : {
     192             :     return NS_ERROR_NOT_IMPLEMENTED;
     193             : }
     194             : 
     195             : /* void AppendElement (in nsIRDFNode aElement); */
     196             : NS_IMETHODIMP nsRDFContainer::AppendElement(nsIRDFNode *aElement)
     197             : {
     198             :     return NS_ERROR_NOT_IMPLEMENTED;
     199             : }
     200             : 
     201             : /* void RemoveElement (in nsIRDFNode aElement, in boolean aRenumber); */
     202             : NS_IMETHODIMP nsRDFContainer::RemoveElement(nsIRDFNode *aElement, bool aRenumber)
     203             : {
     204             :     return NS_ERROR_NOT_IMPLEMENTED;
     205             : }
     206             : 
     207             : /* void InsertElementAt (in nsIRDFNode aElement, in long aIndex, in boolean aRenumber); */
     208             : NS_IMETHODIMP nsRDFContainer::InsertElementAt(nsIRDFNode *aElement, int32_t aIndex, bool aRenumber)
     209             : {
     210             :     return NS_ERROR_NOT_IMPLEMENTED;
     211             : }
     212             : 
     213             : /* nsIRDFNode RemoveElementAt (in long aIndex, in boolean aRenumber); */
     214             : NS_IMETHODIMP nsRDFContainer::RemoveElementAt(int32_t aIndex, bool aRenumber, nsIRDFNode * *_retval)
     215             : {
     216             :     return NS_ERROR_NOT_IMPLEMENTED;
     217             : }
     218             : 
     219             : /* long IndexOf (in nsIRDFNode aElement); */
     220             : NS_IMETHODIMP nsRDFContainer::IndexOf(nsIRDFNode *aElement, int32_t *_retval)
     221             : {
     222             :     return NS_ERROR_NOT_IMPLEMENTED;
     223             : }
     224             : 
     225             : /* End of implementation class template. */
     226             : #endif
     227             : 
     228             : nsresult
     229             : NS_NewRDFContainer(nsIRDFContainer** aResult);
     230             : nsresult
     231             : NS_NewRDFContainer(nsIRDFDataSource* aDataSource,
     232             :                    nsIRDFResource* aResource,
     233             :                    nsIRDFContainer** aResult);
     234             : /**
     235             :  * Create a cursor on a container that enumerates its contents in
     236             :  * order
     237             :  */
     238             : nsresult
     239             : NS_NewContainerEnumerator(nsIRDFDataSource* aDataSource,
     240             :                           nsIRDFResource* aContainer,
     241             :                           nsISimpleEnumerator** aResult);
     242             : 
     243             : #endif /* __gen_nsIRDFContainer_h__ */

Generated by: LCOV version 1.13