Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRDFXMLSink.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFXMLSink_h__
6 : #define __gen_nsIRDFXMLSink_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIAtom;
18 : class nsString;
19 : class nsIRDFXMLSink; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIRDFXMLSinkObserver */
23 : #define NS_IRDFXMLSINKOBSERVER_IID_STR "eb1a5d30-ab33-11d2-8ec6-00805f29f370"
24 :
25 : #define NS_IRDFXMLSINKOBSERVER_IID \
26 : {0xeb1a5d30, 0xab33, 0x11d2, \
27 : { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
28 :
29 : class NS_NO_VTABLE nsIRDFXMLSinkObserver : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINKOBSERVER_IID)
33 :
34 : /* void onBeginLoad (in nsIRDFXMLSink aSink); */
35 : NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) = 0;
36 :
37 : /* void onInterrupt (in nsIRDFXMLSink aSink); */
38 : NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) = 0;
39 :
40 : /* void onResume (in nsIRDFXMLSink aSink); */
41 : NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) = 0;
42 :
43 : /* void onEndLoad (in nsIRDFXMLSink aSink); */
44 : NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) = 0;
45 :
46 : /* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
47 : NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSinkObserver, NS_IRDFXMLSINKOBSERVER_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSIRDFXMLSINKOBSERVER \
55 : NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) override; \
56 : NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override; \
57 : NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override; \
58 : NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override; \
59 : NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) override;
60 :
61 : /* Use this macro when declaring the members of this interface when the
62 : class doesn't implement the interface. This is useful for forwarding. */
63 : #define NS_DECL_NON_VIRTUAL_NSIRDFXMLSINKOBSERVER \
64 : nsresult OnBeginLoad(nsIRDFXMLSink *aSink); \
65 : nsresult OnInterrupt(nsIRDFXMLSink *aSink); \
66 : nsresult OnResume(nsIRDFXMLSink *aSink); \
67 : nsresult OnEndLoad(nsIRDFXMLSink *aSink); \
68 : nsresult OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg);
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
71 : #define NS_FORWARD_NSIRDFXMLSINKOBSERVER(_to) \
72 : NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) override { return _to OnBeginLoad(aSink); } \
73 : NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override { return _to OnInterrupt(aSink); } \
74 : NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override { return _to OnResume(aSink); } \
75 : NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override { return _to OnEndLoad(aSink); } \
76 : NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) override { return _to OnError(aSink, aStatus, aErrorMsg); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSIRDFXMLSINKOBSERVER(_to) \
80 : NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginLoad(aSink); } \
81 : NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInterrupt(aSink); } \
82 : NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResume(aSink); } \
83 : NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndLoad(aSink); } \
84 : NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aSink, aStatus, aErrorMsg); }
85 :
86 : #if 0
87 : /* Use the code below as a template for the implementation class for this interface. */
88 :
89 : /* Header file */
90 : class nsRDFXMLSinkObserver : public nsIRDFXMLSinkObserver
91 : {
92 : public:
93 : NS_DECL_ISUPPORTS
94 : NS_DECL_NSIRDFXMLSINKOBSERVER
95 :
96 : nsRDFXMLSinkObserver();
97 :
98 : private:
99 : ~nsRDFXMLSinkObserver();
100 :
101 : protected:
102 : /* additional members */
103 : };
104 :
105 : /* Implementation file */
106 : NS_IMPL_ISUPPORTS(nsRDFXMLSinkObserver, nsIRDFXMLSinkObserver)
107 :
108 : nsRDFXMLSinkObserver::nsRDFXMLSinkObserver()
109 : {
110 : /* member initializers and constructor code */
111 : }
112 :
113 : nsRDFXMLSinkObserver::~nsRDFXMLSinkObserver()
114 : {
115 : /* destructor code */
116 : }
117 :
118 : /* void onBeginLoad (in nsIRDFXMLSink aSink); */
119 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnBeginLoad(nsIRDFXMLSink *aSink)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* void onInterrupt (in nsIRDFXMLSink aSink); */
125 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnInterrupt(nsIRDFXMLSink *aSink)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* void onResume (in nsIRDFXMLSink aSink); */
131 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnResume(nsIRDFXMLSink *aSink)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* void onEndLoad (in nsIRDFXMLSink aSink); */
137 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnEndLoad(nsIRDFXMLSink *aSink)
138 : {
139 : return NS_ERROR_NOT_IMPLEMENTED;
140 : }
141 :
142 : /* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
143 : NS_IMETHODIMP nsRDFXMLSinkObserver::OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg)
144 : {
145 : return NS_ERROR_NOT_IMPLEMENTED;
146 : }
147 :
148 : /* End of implementation class template. */
149 : #endif
150 :
151 :
152 : /* starting interface: nsIRDFXMLSink */
153 : #define NS_IRDFXMLSINK_IID_STR "eb1a5d31-ab33-11d2-8ec6-00805f29f370"
154 :
155 : #define NS_IRDFXMLSINK_IID \
156 : {0xeb1a5d31, 0xab33, 0x11d2, \
157 : { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
158 :
159 0 : class NS_NO_VTABLE nsIRDFXMLSink : public nsISupports {
160 : public:
161 :
162 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINK_IID)
163 :
164 : /* attribute boolean readOnly; */
165 : NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
166 : NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;
167 :
168 : /* void beginLoad (); */
169 : NS_IMETHOD BeginLoad(void) = 0;
170 :
171 : /* void interrupt (); */
172 : NS_IMETHOD Interrupt(void) = 0;
173 :
174 : /* void resume (); */
175 : NS_IMETHOD Resume(void) = 0;
176 :
177 : /* void endLoad (); */
178 : NS_IMETHOD EndLoad(void) = 0;
179 :
180 : /* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
181 : NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) = 0;
182 :
183 : /* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
184 : NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;
185 :
186 : /* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
187 : NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;
188 :
189 : };
190 :
191 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSink, NS_IRDFXMLSINK_IID)
192 :
193 : /* Use this macro when declaring classes that implement this interface. */
194 : #define NS_DECL_NSIRDFXMLSINK \
195 : NS_IMETHOD GetReadOnly(bool *aReadOnly) override; \
196 : NS_IMETHOD SetReadOnly(bool aReadOnly) override; \
197 : NS_IMETHOD BeginLoad(void) override; \
198 : NS_IMETHOD Interrupt(void) override; \
199 : NS_IMETHOD Resume(void) override; \
200 : NS_IMETHOD EndLoad(void) override; \
201 : NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) override; \
202 : NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override; \
203 : NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override;
204 :
205 : /* Use this macro when declaring the members of this interface when the
206 : class doesn't implement the interface. This is useful for forwarding. */
207 : #define NS_DECL_NON_VIRTUAL_NSIRDFXMLSINK \
208 : nsresult GetReadOnly(bool *aReadOnly); \
209 : nsresult SetReadOnly(bool aReadOnly); \
210 : nsresult BeginLoad(void); \
211 : nsresult Interrupt(void); \
212 : nsresult Resume(void); \
213 : nsresult EndLoad(void); \
214 : nsresult AddNameSpace(nsIAtom *aPrefix, const nsString & aURI); \
215 : nsresult AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver); \
216 : nsresult RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver);
217 :
218 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
219 : #define NS_FORWARD_NSIRDFXMLSINK(_to) \
220 : NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return _to GetReadOnly(aReadOnly); } \
221 : NS_IMETHOD SetReadOnly(bool aReadOnly) override { return _to SetReadOnly(aReadOnly); } \
222 : NS_IMETHOD BeginLoad(void) override { return _to BeginLoad(); } \
223 : NS_IMETHOD Interrupt(void) override { return _to Interrupt(); } \
224 : NS_IMETHOD Resume(void) override { return _to Resume(); } \
225 : NS_IMETHOD EndLoad(void) override { return _to EndLoad(); } \
226 : NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) override { return _to AddNameSpace(aPrefix, aURI); } \
227 : NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return _to AddXMLSinkObserver(aObserver); } \
228 : NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return _to RemoveXMLSinkObserver(aObserver); }
229 :
230 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
231 : #define NS_FORWARD_SAFE_NSIRDFXMLSINK(_to) \
232 : NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
233 : NS_IMETHOD SetReadOnly(bool aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
234 : NS_IMETHOD BeginLoad(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginLoad(); } \
235 : NS_IMETHOD Interrupt(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Interrupt(); } \
236 : NS_IMETHOD Resume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \
237 : NS_IMETHOD EndLoad(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndLoad(); } \
238 : NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNameSpace(aPrefix, aURI); } \
239 : NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddXMLSinkObserver(aObserver); } \
240 : NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveXMLSinkObserver(aObserver); }
241 :
242 : #if 0
243 : /* Use the code below as a template for the implementation class for this interface. */
244 :
245 : /* Header file */
246 : class nsRDFXMLSink : public nsIRDFXMLSink
247 : {
248 : public:
249 : NS_DECL_ISUPPORTS
250 : NS_DECL_NSIRDFXMLSINK
251 :
252 : nsRDFXMLSink();
253 :
254 : private:
255 : ~nsRDFXMLSink();
256 :
257 : protected:
258 : /* additional members */
259 : };
260 :
261 : /* Implementation file */
262 : NS_IMPL_ISUPPORTS(nsRDFXMLSink, nsIRDFXMLSink)
263 :
264 : nsRDFXMLSink::nsRDFXMLSink()
265 : {
266 : /* member initializers and constructor code */
267 : }
268 :
269 : nsRDFXMLSink::~nsRDFXMLSink()
270 : {
271 : /* destructor code */
272 : }
273 :
274 : /* attribute boolean readOnly; */
275 : NS_IMETHODIMP nsRDFXMLSink::GetReadOnly(bool *aReadOnly)
276 : {
277 : return NS_ERROR_NOT_IMPLEMENTED;
278 : }
279 : NS_IMETHODIMP nsRDFXMLSink::SetReadOnly(bool aReadOnly)
280 : {
281 : return NS_ERROR_NOT_IMPLEMENTED;
282 : }
283 :
284 : /* void beginLoad (); */
285 : NS_IMETHODIMP nsRDFXMLSink::BeginLoad()
286 : {
287 : return NS_ERROR_NOT_IMPLEMENTED;
288 : }
289 :
290 : /* void interrupt (); */
291 : NS_IMETHODIMP nsRDFXMLSink::Interrupt()
292 : {
293 : return NS_ERROR_NOT_IMPLEMENTED;
294 : }
295 :
296 : /* void resume (); */
297 : NS_IMETHODIMP nsRDFXMLSink::Resume()
298 : {
299 : return NS_ERROR_NOT_IMPLEMENTED;
300 : }
301 :
302 : /* void endLoad (); */
303 : NS_IMETHODIMP nsRDFXMLSink::EndLoad()
304 : {
305 : return NS_ERROR_NOT_IMPLEMENTED;
306 : }
307 :
308 : /* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
309 : NS_IMETHODIMP nsRDFXMLSink::AddNameSpace(nsIAtom *aPrefix, const nsString & aURI)
310 : {
311 : return NS_ERROR_NOT_IMPLEMENTED;
312 : }
313 :
314 : /* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
315 : NS_IMETHODIMP nsRDFXMLSink::AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
316 : {
317 : return NS_ERROR_NOT_IMPLEMENTED;
318 : }
319 :
320 : /* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
321 : NS_IMETHODIMP nsRDFXMLSink::RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
322 : {
323 : return NS_ERROR_NOT_IMPLEMENTED;
324 : }
325 :
326 : /* End of implementation class template. */
327 : #endif
328 :
329 :
330 : #endif /* __gen_nsIRDFXMLSink_h__ */
|