Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRDFPurgeableDataSource.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFPurgeableDataSource_h__
6 : #define __gen_nsIRDFPurgeableDataSource_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIRDFResource_h__
14 : #include "nsIRDFResource.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIRDFNode_h__
18 : #include "nsIRDFNode.h"
19 : #endif
20 :
21 : /* For IDL files that don't want to include root IDL files. */
22 : #ifndef NS_NO_VTABLE
23 : #define NS_NO_VTABLE
24 : #endif
25 :
26 : /* starting interface: nsIRDFPurgeableDataSource */
27 : #define NS_IRDFPURGEABLEDATASOURCE_IID_STR "951700f0-fed0-11d2-bdd9-00104bde6048"
28 :
29 : #define NS_IRDFPURGEABLEDATASOURCE_IID \
30 : {0x951700f0, 0xfed0, 0x11d2, \
31 : { 0xbd, 0xd9, 0x00, 0x10, 0x4b, 0xde, 0x60, 0x48 }}
32 :
33 3 : class NS_NO_VTABLE nsIRDFPurgeableDataSource : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFPURGEABLEDATASOURCE_IID)
37 :
38 : /* boolean Mark (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
39 : NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval) = 0;
40 :
41 : /* void Sweep (); */
42 : NS_IMETHOD Sweep(void) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFPurgeableDataSource, NS_IRDFPURGEABLEDATASOURCE_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIRDFPURGEABLEDATASOURCE \
50 : NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval) override; \
51 : NS_IMETHOD Sweep(void) override;
52 :
53 : /* Use this macro when declaring the members of this interface when the
54 : class doesn't implement the interface. This is useful for forwarding. */
55 : #define NS_DECL_NON_VIRTUAL_NSIRDFPURGEABLEDATASOURCE \
56 : nsresult Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval); \
57 : nsresult Sweep(void);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIRDFPURGEABLEDATASOURCE(_to) \
61 : NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval) override { return _to Mark(aSource, aProperty, aTarget, aTruthValue, _retval); } \
62 : NS_IMETHOD Sweep(void) override { return _to Sweep(); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIRDFPURGEABLEDATASOURCE(_to) \
66 : NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Mark(aSource, aProperty, aTarget, aTruthValue, _retval); } \
67 : NS_IMETHOD Sweep(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Sweep(); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsRDFPurgeableDataSource : public nsIRDFPurgeableDataSource
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIRDFPURGEABLEDATASOURCE
78 :
79 : nsRDFPurgeableDataSource();
80 :
81 : private:
82 : ~nsRDFPurgeableDataSource();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS(nsRDFPurgeableDataSource, nsIRDFPurgeableDataSource)
90 :
91 : nsRDFPurgeableDataSource::nsRDFPurgeableDataSource()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsRDFPurgeableDataSource::~nsRDFPurgeableDataSource()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* boolean Mark (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
102 : NS_IMETHODIMP nsRDFPurgeableDataSource::Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* void Sweep (); */
108 : NS_IMETHODIMP nsRDFPurgeableDataSource::Sweep()
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* End of implementation class template. */
114 : #endif
115 :
116 :
117 : #endif /* __gen_nsIRDFPurgeableDataSource_h__ */
|