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