1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/rdf/base/idl/nsIRDFDataSource.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFDataSource_h__
6 : #define __gen_nsIRDFDataSource_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsISupportsArray_h__
14 : #include "nsISupportsArray.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 : #ifndef __gen_nsIRDFObserver_h__
30 : #include "nsIRDFObserver.h"
31 : #endif
32 :
33 : /* For IDL files that don't want to include root IDL files. */
34 : #ifndef NS_NO_VTABLE
35 : #define NS_NO_VTABLE
36 : #endif
37 : #include "nsISupportsArray.h"
38 :
39 : /* starting interface: nsIRDFDataSource */
40 : #define NS_IRDFDATASOURCE_IID_STR "0f78da58-8321-11d2-8eac-00805f29f370"
41 :
42 : #define NS_IRDFDATASOURCE_IID \
43 : {0x0f78da58, 0x8321, 0x11d2, \
44 : { 0x8e, 0xac, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
45 :
46 2082 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFDataSource : public nsISupports {
47 : public:
48 :
49 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFDATASOURCE_IID)
50 :
51 : /* readonly attribute string URI; */
52 : NS_SCRIPTABLE NS_IMETHOD GetURI(char * *aURI) = 0;
53 :
54 : /* nsIRDFResource GetSource (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
55 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsIRDFResource * *_retval NS_OUTPARAM) = 0;
56 :
57 : /* nsISimpleEnumerator GetSources (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
58 : NS_SCRIPTABLE NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
59 :
60 : /* nsIRDFNode GetTarget (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
61 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsIRDFNode * *_retval NS_OUTPARAM) = 0;
62 :
63 : /* nsISimpleEnumerator GetTargets (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
64 : NS_SCRIPTABLE NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
65 :
66 : /* void Assert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
67 : NS_SCRIPTABLE NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue) = 0;
68 :
69 : /* void Unassert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
70 : NS_SCRIPTABLE NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) = 0;
71 :
72 : /* void Change (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget); */
73 : NS_SCRIPTABLE NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget) = 0;
74 :
75 : /* void Move (in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
76 : NS_SCRIPTABLE NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) = 0;
77 :
78 : /* boolean HasAssertion (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
79 : NS_SCRIPTABLE NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval NS_OUTPARAM) = 0;
80 :
81 : /* void AddObserver (in nsIRDFObserver aObserver); */
82 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsIRDFObserver *aObserver) = 0;
83 :
84 : /* void RemoveObserver (in nsIRDFObserver aObserver); */
85 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver) = 0;
86 :
87 : /* nsISimpleEnumerator ArcLabelsIn (in nsIRDFNode aNode); */
88 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
89 :
90 : /* nsISimpleEnumerator ArcLabelsOut (in nsIRDFResource aSource); */
91 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
92 :
93 : /* nsISimpleEnumerator GetAllResources (); */
94 : NS_SCRIPTABLE NS_IMETHOD GetAllResources(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
95 :
96 : /* boolean IsCommandEnabled (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
97 : NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, bool *_retval NS_OUTPARAM) = 0;
98 :
99 : /* void DoCommand (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
100 : NS_SCRIPTABLE NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments) = 0;
101 :
102 : /* nsISimpleEnumerator GetAllCmds (in nsIRDFResource aSource); */
103 : NS_SCRIPTABLE NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
104 :
105 : /* boolean hasArcIn (in nsIRDFNode aNode, in nsIRDFResource aArc); */
106 : NS_SCRIPTABLE NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM) = 0;
107 :
108 : /* boolean hasArcOut (in nsIRDFResource aSource, in nsIRDFResource aArc); */
109 : NS_SCRIPTABLE NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM) = 0;
110 :
111 : /* void beginUpdateBatch (); */
112 : NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void) = 0;
113 :
114 : /* void endUpdateBatch (); */
115 : NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void) = 0;
116 :
117 : };
118 :
119 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFDataSource, NS_IRDFDATASOURCE_IID)
120 :
121 : /* Use this macro when declaring classes that implement this interface. */
122 : #define NS_DECL_NSIRDFDATASOURCE \
123 : NS_SCRIPTABLE NS_IMETHOD GetURI(char * *aURI); \
124 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsIRDFResource * *_retval NS_OUTPARAM); \
125 : NS_SCRIPTABLE NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
126 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsIRDFNode * *_retval NS_OUTPARAM); \
127 : NS_SCRIPTABLE NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
128 : NS_SCRIPTABLE NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue); \
129 : NS_SCRIPTABLE NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget); \
130 : NS_SCRIPTABLE NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget); \
131 : NS_SCRIPTABLE NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget); \
132 : NS_SCRIPTABLE NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval NS_OUTPARAM); \
133 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsIRDFObserver *aObserver); \
134 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver); \
135 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
136 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
137 : NS_SCRIPTABLE NS_IMETHOD GetAllResources(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
138 : NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, bool *_retval NS_OUTPARAM); \
139 : NS_SCRIPTABLE NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments); \
140 : NS_SCRIPTABLE NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
141 : NS_SCRIPTABLE NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM); \
142 : NS_SCRIPTABLE NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM); \
143 : NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void); \
144 : NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void);
145 :
146 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
147 : #define NS_FORWARD_NSIRDFDATASOURCE(_to) \
148 : NS_SCRIPTABLE NS_IMETHOD GetURI(char * *aURI) { return _to GetURI(aURI); } \
149 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsIRDFResource * *_retval NS_OUTPARAM) { return _to GetSource(aProperty, aTarget, aTruthValue, _retval); } \
150 : NS_SCRIPTABLE NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetSources(aProperty, aTarget, aTruthValue, _retval); } \
151 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsIRDFNode * *_retval NS_OUTPARAM) { return _to GetTarget(aSource, aProperty, aTruthValue, _retval); } \
152 : NS_SCRIPTABLE NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetTargets(aSource, aProperty, aTruthValue, _retval); } \
153 : NS_SCRIPTABLE NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue) { return _to Assert(aSource, aProperty, aTarget, aTruthValue); } \
154 : NS_SCRIPTABLE NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return _to Unassert(aSource, aProperty, aTarget); } \
155 : NS_SCRIPTABLE NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget) { return _to Change(aSource, aProperty, aOldTarget, aNewTarget); } \
156 : NS_SCRIPTABLE NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return _to Move(aOldSource, aNewSource, aProperty, aTarget); } \
157 : NS_SCRIPTABLE NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval NS_OUTPARAM) { return _to HasAssertion(aSource, aProperty, aTarget, aTruthValue, _retval); } \
158 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsIRDFObserver *aObserver) { return _to AddObserver(aObserver); } \
159 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver) { return _to RemoveObserver(aObserver); } \
160 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to ArcLabelsIn(aNode, _retval); } \
161 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to ArcLabelsOut(aSource, _retval); } \
162 : NS_SCRIPTABLE NS_IMETHOD GetAllResources(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetAllResources(_retval); } \
163 : NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, bool *_retval NS_OUTPARAM) { return _to IsCommandEnabled(aSources, aCommand, aArguments, _retval); } \
164 : NS_SCRIPTABLE NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments) { return _to DoCommand(aSources, aCommand, aArguments); } \
165 : NS_SCRIPTABLE NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetAllCmds(aSource, _retval); } \
166 : NS_SCRIPTABLE NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM) { return _to HasArcIn(aNode, aArc, _retval); } \
167 : NS_SCRIPTABLE NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM) { return _to HasArcOut(aSource, aArc, _retval); } \
168 : NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void) { return _to BeginUpdateBatch(); } \
169 : NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void) { return _to EndUpdateBatch(); }
170 :
171 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
172 : #define NS_FORWARD_SAFE_NSIRDFDATASOURCE(_to) \
173 : NS_SCRIPTABLE NS_IMETHOD GetURI(char * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
174 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsIRDFResource * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aProperty, aTarget, aTruthValue, _retval); } \
175 : NS_SCRIPTABLE NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSources(aProperty, aTarget, aTruthValue, _retval); } \
176 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsIRDFNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aSource, aProperty, aTruthValue, _retval); } \
177 : NS_SCRIPTABLE NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargets(aSource, aProperty, aTruthValue, _retval); } \
178 : NS_SCRIPTABLE NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assert(aSource, aProperty, aTarget, aTruthValue); } \
179 : NS_SCRIPTABLE NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unassert(aSource, aProperty, aTarget); } \
180 : NS_SCRIPTABLE NS_IMETHOD Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Change(aSource, aProperty, aOldTarget, aNewTarget); } \
181 : NS_SCRIPTABLE NS_IMETHOD Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Move(aOldSource, aNewSource, aProperty, aTarget); } \
182 : NS_SCRIPTABLE NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasAssertion(aSource, aProperty, aTarget, aTruthValue, _retval); } \
183 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsIRDFObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
184 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
185 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ArcLabelsIn(aNode, _retval); } \
186 : NS_SCRIPTABLE NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ArcLabelsOut(aSource, _retval); } \
187 : NS_SCRIPTABLE NS_IMETHOD GetAllResources(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllResources(_retval); } \
188 : NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(aSources, aCommand, aArguments, _retval); } \
189 : NS_SCRIPTABLE NS_IMETHOD DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aSources, aCommand, aArguments); } \
190 : NS_SCRIPTABLE NS_IMETHOD GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllCmds(aSource, _retval); } \
191 : NS_SCRIPTABLE NS_IMETHOD HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasArcIn(aNode, aArc, _retval); } \
192 : NS_SCRIPTABLE NS_IMETHOD HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasArcOut(aSource, aArc, _retval); } \
193 : NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginUpdateBatch(); } \
194 : NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndUpdateBatch(); }
195 :
196 : #if 0
197 : /* Use the code below as a template for the implementation class for this interface. */
198 :
199 : /* Header file */
200 : class nsRDFDataSource : public nsIRDFDataSource
201 : {
202 : public:
203 : NS_DECL_ISUPPORTS
204 : NS_DECL_NSIRDFDATASOURCE
205 :
206 : nsRDFDataSource();
207 :
208 : private:
209 : ~nsRDFDataSource();
210 :
211 : protected:
212 : /* additional members */
213 : };
214 :
215 : /* Implementation file */
216 : NS_IMPL_ISUPPORTS1(nsRDFDataSource, nsIRDFDataSource)
217 :
218 : nsRDFDataSource::nsRDFDataSource()
219 : {
220 : /* member initializers and constructor code */
221 : }
222 :
223 : nsRDFDataSource::~nsRDFDataSource()
224 : {
225 : /* destructor code */
226 : }
227 :
228 : /* readonly attribute string URI; */
229 : NS_IMETHODIMP nsRDFDataSource::GetURI(char * *aURI)
230 : {
231 : return NS_ERROR_NOT_IMPLEMENTED;
232 : }
233 :
234 : /* nsIRDFResource GetSource (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
235 : NS_IMETHODIMP nsRDFDataSource::GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsIRDFResource * *_retval NS_OUTPARAM)
236 : {
237 : return NS_ERROR_NOT_IMPLEMENTED;
238 : }
239 :
240 : /* nsISimpleEnumerator GetSources (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
241 : NS_IMETHODIMP nsRDFDataSource::GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM)
242 : {
243 : return NS_ERROR_NOT_IMPLEMENTED;
244 : }
245 :
246 : /* nsIRDFNode GetTarget (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
247 : NS_IMETHODIMP nsRDFDataSource::GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsIRDFNode * *_retval NS_OUTPARAM)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 :
252 : /* nsISimpleEnumerator GetTargets (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
253 : NS_IMETHODIMP nsRDFDataSource::GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool aTruthValue, nsISimpleEnumerator * *_retval NS_OUTPARAM)
254 : {
255 : return NS_ERROR_NOT_IMPLEMENTED;
256 : }
257 :
258 : /* void Assert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
259 : NS_IMETHODIMP nsRDFDataSource::Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue)
260 : {
261 : return NS_ERROR_NOT_IMPLEMENTED;
262 : }
263 :
264 : /* void Unassert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
265 : NS_IMETHODIMP nsRDFDataSource::Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget)
266 : {
267 : return NS_ERROR_NOT_IMPLEMENTED;
268 : }
269 :
270 : /* void Change (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget); */
271 : NS_IMETHODIMP nsRDFDataSource::Change(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aOldTarget, nsIRDFNode *aNewTarget)
272 : {
273 : return NS_ERROR_NOT_IMPLEMENTED;
274 : }
275 :
276 : /* void Move (in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
277 : NS_IMETHODIMP nsRDFDataSource::Move(nsIRDFResource *aOldSource, nsIRDFResource *aNewSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget)
278 : {
279 : return NS_ERROR_NOT_IMPLEMENTED;
280 : }
281 :
282 : /* boolean HasAssertion (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
283 : NS_IMETHODIMP nsRDFDataSource::HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, bool aTruthValue, bool *_retval NS_OUTPARAM)
284 : {
285 : return NS_ERROR_NOT_IMPLEMENTED;
286 : }
287 :
288 : /* void AddObserver (in nsIRDFObserver aObserver); */
289 : NS_IMETHODIMP nsRDFDataSource::AddObserver(nsIRDFObserver *aObserver)
290 : {
291 : return NS_ERROR_NOT_IMPLEMENTED;
292 : }
293 :
294 : /* void RemoveObserver (in nsIRDFObserver aObserver); */
295 : NS_IMETHODIMP nsRDFDataSource::RemoveObserver(nsIRDFObserver *aObserver)
296 : {
297 : return NS_ERROR_NOT_IMPLEMENTED;
298 : }
299 :
300 : /* nsISimpleEnumerator ArcLabelsIn (in nsIRDFNode aNode); */
301 : NS_IMETHODIMP nsRDFDataSource::ArcLabelsIn(nsIRDFNode *aNode, nsISimpleEnumerator * *_retval NS_OUTPARAM)
302 : {
303 : return NS_ERROR_NOT_IMPLEMENTED;
304 : }
305 :
306 : /* nsISimpleEnumerator ArcLabelsOut (in nsIRDFResource aSource); */
307 : NS_IMETHODIMP nsRDFDataSource::ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM)
308 : {
309 : return NS_ERROR_NOT_IMPLEMENTED;
310 : }
311 :
312 : /* nsISimpleEnumerator GetAllResources (); */
313 : NS_IMETHODIMP nsRDFDataSource::GetAllResources(nsISimpleEnumerator * *_retval NS_OUTPARAM)
314 : {
315 : return NS_ERROR_NOT_IMPLEMENTED;
316 : }
317 :
318 : /* boolean IsCommandEnabled (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
319 : NS_IMETHODIMP nsRDFDataSource::IsCommandEnabled(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments, bool *_retval NS_OUTPARAM)
320 : {
321 : return NS_ERROR_NOT_IMPLEMENTED;
322 : }
323 :
324 : /* void DoCommand (in nsISupportsArray aSources, in nsIRDFResource aCommand, in nsISupportsArray aArguments); */
325 : NS_IMETHODIMP nsRDFDataSource::DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand, nsISupportsArray *aArguments)
326 : {
327 : return NS_ERROR_NOT_IMPLEMENTED;
328 : }
329 :
330 : /* nsISimpleEnumerator GetAllCmds (in nsIRDFResource aSource); */
331 : NS_IMETHODIMP nsRDFDataSource::GetAllCmds(nsIRDFResource *aSource, nsISimpleEnumerator * *_retval NS_OUTPARAM)
332 : {
333 : return NS_ERROR_NOT_IMPLEMENTED;
334 : }
335 :
336 : /* boolean hasArcIn (in nsIRDFNode aNode, in nsIRDFResource aArc); */
337 : NS_IMETHODIMP nsRDFDataSource::HasArcIn(nsIRDFNode *aNode, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM)
338 : {
339 : return NS_ERROR_NOT_IMPLEMENTED;
340 : }
341 :
342 : /* boolean hasArcOut (in nsIRDFResource aSource, in nsIRDFResource aArc); */
343 : NS_IMETHODIMP nsRDFDataSource::HasArcOut(nsIRDFResource *aSource, nsIRDFResource *aArc, bool *_retval NS_OUTPARAM)
344 : {
345 : return NS_ERROR_NOT_IMPLEMENTED;
346 : }
347 :
348 : /* void beginUpdateBatch (); */
349 : NS_IMETHODIMP nsRDFDataSource::BeginUpdateBatch()
350 : {
351 : return NS_ERROR_NOT_IMPLEMENTED;
352 : }
353 :
354 : /* void endUpdateBatch (); */
355 : NS_IMETHODIMP nsRDFDataSource::EndUpdateBatch()
356 : {
357 : return NS_ERROR_NOT_IMPLEMENTED;
358 : }
359 :
360 : /* End of implementation class template. */
361 : #endif
362 :
363 :
364 : #endif /* __gen_nsIRDFDataSource_h__ */
|