1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/nsISupportsPrimitives.idl
3 : */
4 :
5 : #ifndef __gen_nsISupportsPrimitives_h__
6 : #define __gen_nsISupportsPrimitives_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 :
18 : /* starting interface: nsISupportsPrimitive */
19 : #define NS_ISUPPORTSPRIMITIVE_IID_STR "d0d4b136-1dd1-11b2-9371-f0727ef827c0"
20 :
21 : #define NS_ISUPPORTSPRIMITIVE_IID \
22 : {0xd0d4b136, 0x1dd1, 0x11b2, \
23 : { 0x93, 0x71, 0xf0, 0x72, 0x7e, 0xf8, 0x27, 0xc0 }}
24 :
25 246688 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPrimitive : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRIMITIVE_IID)
29 :
30 : enum {
31 : TYPE_ID = 1U,
32 : TYPE_CSTRING = 2U,
33 : TYPE_STRING = 3U,
34 : TYPE_PRBOOL = 4U,
35 : TYPE_PRUINT8 = 5U,
36 : TYPE_PRUINT16 = 6U,
37 : TYPE_PRUINT32 = 7U,
38 : TYPE_PRUINT64 = 8U,
39 : TYPE_PRTIME = 9U,
40 : TYPE_CHAR = 10U,
41 : TYPE_PRINT16 = 11U,
42 : TYPE_PRINT32 = 12U,
43 : TYPE_PRINT64 = 13U,
44 : TYPE_FLOAT = 14U,
45 : TYPE_DOUBLE = 15U,
46 : TYPE_VOID = 16U,
47 : TYPE_INTERFACE_POINTER = 17U
48 : };
49 :
50 : /* readonly attribute unsigned short type; */
51 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) = 0;
52 :
53 : };
54 :
55 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPrimitive, NS_ISUPPORTSPRIMITIVE_IID)
56 :
57 : /* Use this macro when declaring classes that implement this interface. */
58 : #define NS_DECL_NSISUPPORTSPRIMITIVE \
59 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSISUPPORTSPRIMITIVE(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSISUPPORTSPRIMITIVE(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); }
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 nsSupportsPrimitive : public nsISupportsPrimitive
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSISUPPORTSPRIMITIVE
78 :
79 : nsSupportsPrimitive();
80 :
81 : private:
82 : ~nsSupportsPrimitive();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsSupportsPrimitive, nsISupportsPrimitive)
90 :
91 : nsSupportsPrimitive::nsSupportsPrimitive()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsSupportsPrimitive::~nsSupportsPrimitive()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* readonly attribute unsigned short type; */
102 : NS_IMETHODIMP nsSupportsPrimitive::GetType(PRUint16 *aType)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : /* starting interface: nsISupportsID */
112 : #define NS_ISUPPORTSID_IID_STR "d18290a0-4a1c-11d3-9890-006008962422"
113 :
114 : #define NS_ISUPPORTSID_IID \
115 : {0xd18290a0, 0x4a1c, 0x11d3, \
116 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
117 :
118 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsID : public nsISupportsPrimitive {
119 : public:
120 :
121 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSID_IID)
122 :
123 : /* attribute nsIDPtr data; */
124 : NS_SCRIPTABLE NS_IMETHOD GetData(nsID **aData) = 0;
125 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsID *aData) = 0;
126 :
127 : /* string toString (); */
128 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
129 :
130 : };
131 :
132 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsID, NS_ISUPPORTSID_IID)
133 :
134 : /* Use this macro when declaring classes that implement this interface. */
135 : #define NS_DECL_NSISUPPORTSID \
136 : NS_SCRIPTABLE NS_IMETHOD GetData(nsID **aData); \
137 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsID *aData); \
138 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
139 :
140 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
141 : #define NS_FORWARD_NSISUPPORTSID(_to) \
142 : NS_SCRIPTABLE NS_IMETHOD GetData(nsID **aData) { return _to GetData(aData); } \
143 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsID *aData) { return _to SetData(aData); } \
144 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
145 :
146 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
147 : #define NS_FORWARD_SAFE_NSISUPPORTSID(_to) \
148 : NS_SCRIPTABLE NS_IMETHOD GetData(nsID **aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
149 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsID *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
150 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
151 :
152 : #if 0
153 : /* Use the code below as a template for the implementation class for this interface. */
154 :
155 : /* Header file */
156 : class nsSupportsID : public nsISupportsID
157 : {
158 : public:
159 : NS_DECL_ISUPPORTS
160 : NS_DECL_NSISUPPORTSID
161 :
162 : nsSupportsID();
163 :
164 : private:
165 : ~nsSupportsID();
166 :
167 : protected:
168 : /* additional members */
169 : };
170 :
171 : /* Implementation file */
172 : NS_IMPL_ISUPPORTS1(nsSupportsID, nsISupportsID)
173 :
174 : nsSupportsID::nsSupportsID()
175 : {
176 : /* member initializers and constructor code */
177 : }
178 :
179 : nsSupportsID::~nsSupportsID()
180 : {
181 : /* destructor code */
182 : }
183 :
184 : /* attribute nsIDPtr data; */
185 : NS_IMETHODIMP nsSupportsID::GetData(nsID **aData)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 : NS_IMETHODIMP nsSupportsID::SetData(const nsID *aData)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 :
194 : /* string toString (); */
195 : NS_IMETHODIMP nsSupportsID::ToString(char * *_retval NS_OUTPARAM)
196 : {
197 : return NS_ERROR_NOT_IMPLEMENTED;
198 : }
199 :
200 : /* End of implementation class template. */
201 : #endif
202 :
203 :
204 : /* starting interface: nsISupportsCString */
205 : #define NS_ISUPPORTSCSTRING_IID_STR "d65ff270-4a1c-11d3-9890-006008962422"
206 :
207 : #define NS_ISUPPORTSCSTRING_IID \
208 : {0xd65ff270, 0x4a1c, 0x11d3, \
209 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
210 :
211 209549 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsCString : public nsISupportsPrimitive {
212 : public:
213 :
214 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSCSTRING_IID)
215 :
216 : /* attribute ACString data; */
217 : NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData) = 0;
218 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData) = 0;
219 :
220 : /* string toString (); */
221 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
222 :
223 : };
224 :
225 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsCString, NS_ISUPPORTSCSTRING_IID)
226 :
227 : /* Use this macro when declaring classes that implement this interface. */
228 : #define NS_DECL_NSISUPPORTSCSTRING \
229 : NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData); \
230 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData); \
231 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
232 :
233 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
234 : #define NS_FORWARD_NSISUPPORTSCSTRING(_to) \
235 : NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData) { return _to GetData(aData); } \
236 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData) { return _to SetData(aData); } \
237 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
238 :
239 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
240 : #define NS_FORWARD_SAFE_NSISUPPORTSCSTRING(_to) \
241 : NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
242 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
243 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
244 :
245 : #if 0
246 : /* Use the code below as a template for the implementation class for this interface. */
247 :
248 : /* Header file */
249 : class nsSupportsCString : public nsISupportsCString
250 : {
251 : public:
252 : NS_DECL_ISUPPORTS
253 : NS_DECL_NSISUPPORTSCSTRING
254 :
255 : nsSupportsCString();
256 :
257 : private:
258 : ~nsSupportsCString();
259 :
260 : protected:
261 : /* additional members */
262 : };
263 :
264 : /* Implementation file */
265 : NS_IMPL_ISUPPORTS1(nsSupportsCString, nsISupportsCString)
266 :
267 : nsSupportsCString::nsSupportsCString()
268 : {
269 : /* member initializers and constructor code */
270 : }
271 :
272 : nsSupportsCString::~nsSupportsCString()
273 : {
274 : /* destructor code */
275 : }
276 :
277 : /* attribute ACString data; */
278 : NS_IMETHODIMP nsSupportsCString::GetData(nsACString & aData)
279 : {
280 : return NS_ERROR_NOT_IMPLEMENTED;
281 : }
282 : NS_IMETHODIMP nsSupportsCString::SetData(const nsACString & aData)
283 : {
284 : return NS_ERROR_NOT_IMPLEMENTED;
285 : }
286 :
287 : /* string toString (); */
288 : NS_IMETHODIMP nsSupportsCString::ToString(char * *_retval NS_OUTPARAM)
289 : {
290 : return NS_ERROR_NOT_IMPLEMENTED;
291 : }
292 :
293 : /* End of implementation class template. */
294 : #endif
295 :
296 :
297 : /* starting interface: nsISupportsString */
298 : #define NS_ISUPPORTSSTRING_IID_STR "d79dc970-4a1c-11d3-9890-006008962422"
299 :
300 : #define NS_ISUPPORTSSTRING_IID \
301 : {0xd79dc970, 0x4a1c, 0x11d3, \
302 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
303 :
304 36606 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsString : public nsISupportsPrimitive {
305 : public:
306 :
307 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSSTRING_IID)
308 :
309 : /* attribute AString data; */
310 : NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) = 0;
311 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) = 0;
312 :
313 : /* wstring toString (); */
314 : NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar * *_retval NS_OUTPARAM) = 0;
315 :
316 : };
317 :
318 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsString, NS_ISUPPORTSSTRING_IID)
319 :
320 : /* Use this macro when declaring classes that implement this interface. */
321 : #define NS_DECL_NSISUPPORTSSTRING \
322 : NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData); \
323 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData); \
324 : NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar * *_retval NS_OUTPARAM);
325 :
326 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
327 : #define NS_FORWARD_NSISUPPORTSSTRING(_to) \
328 : NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
329 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } \
330 : NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
331 :
332 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
333 : #define NS_FORWARD_SAFE_NSISUPPORTSSTRING(_to) \
334 : NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
335 : NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
336 : NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
337 :
338 : #if 0
339 : /* Use the code below as a template for the implementation class for this interface. */
340 :
341 : /* Header file */
342 : class nsSupportsString : public nsISupportsString
343 : {
344 : public:
345 : NS_DECL_ISUPPORTS
346 : NS_DECL_NSISUPPORTSSTRING
347 :
348 : nsSupportsString();
349 :
350 : private:
351 : ~nsSupportsString();
352 :
353 : protected:
354 : /* additional members */
355 : };
356 :
357 : /* Implementation file */
358 : NS_IMPL_ISUPPORTS1(nsSupportsString, nsISupportsString)
359 :
360 : nsSupportsString::nsSupportsString()
361 : {
362 : /* member initializers and constructor code */
363 : }
364 :
365 : nsSupportsString::~nsSupportsString()
366 : {
367 : /* destructor code */
368 : }
369 :
370 : /* attribute AString data; */
371 : NS_IMETHODIMP nsSupportsString::GetData(nsAString & aData)
372 : {
373 : return NS_ERROR_NOT_IMPLEMENTED;
374 : }
375 : NS_IMETHODIMP nsSupportsString::SetData(const nsAString & aData)
376 : {
377 : return NS_ERROR_NOT_IMPLEMENTED;
378 : }
379 :
380 : /* wstring toString (); */
381 : NS_IMETHODIMP nsSupportsString::ToString(PRUnichar * *_retval NS_OUTPARAM)
382 : {
383 : return NS_ERROR_NOT_IMPLEMENTED;
384 : }
385 :
386 : /* End of implementation class template. */
387 : #endif
388 :
389 :
390 : /* starting interface: nsISupportsPRBool */
391 : #define NS_ISUPPORTSPRBOOL_IID_STR "ddc3b490-4a1c-11d3-9890-006008962422"
392 :
393 : #define NS_ISUPPORTSPRBOOL_IID \
394 : {0xddc3b490, 0x4a1c, 0x11d3, \
395 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
396 :
397 474 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRBool : public nsISupportsPrimitive {
398 : public:
399 :
400 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRBOOL_IID)
401 :
402 : /* attribute boolean data; */
403 : NS_SCRIPTABLE NS_IMETHOD GetData(bool *aData) = 0;
404 : NS_SCRIPTABLE NS_IMETHOD SetData(bool aData) = 0;
405 :
406 : /* string toString (); */
407 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
408 :
409 : };
410 :
411 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRBool, NS_ISUPPORTSPRBOOL_IID)
412 :
413 : /* Use this macro when declaring classes that implement this interface. */
414 : #define NS_DECL_NSISUPPORTSPRBOOL \
415 : NS_SCRIPTABLE NS_IMETHOD GetData(bool *aData); \
416 : NS_SCRIPTABLE NS_IMETHOD SetData(bool aData); \
417 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
418 :
419 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
420 : #define NS_FORWARD_NSISUPPORTSPRBOOL(_to) \
421 : NS_SCRIPTABLE NS_IMETHOD GetData(bool *aData) { return _to GetData(aData); } \
422 : NS_SCRIPTABLE NS_IMETHOD SetData(bool aData) { return _to SetData(aData); } \
423 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
424 :
425 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
426 : #define NS_FORWARD_SAFE_NSISUPPORTSPRBOOL(_to) \
427 : NS_SCRIPTABLE NS_IMETHOD GetData(bool *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
428 : NS_SCRIPTABLE NS_IMETHOD SetData(bool aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
429 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
430 :
431 : #if 0
432 : /* Use the code below as a template for the implementation class for this interface. */
433 :
434 : /* Header file */
435 : class nsSupportsPRBool : public nsISupportsPRBool
436 : {
437 : public:
438 : NS_DECL_ISUPPORTS
439 : NS_DECL_NSISUPPORTSPRBOOL
440 :
441 : nsSupportsPRBool();
442 :
443 : private:
444 : ~nsSupportsPRBool();
445 :
446 : protected:
447 : /* additional members */
448 : };
449 :
450 : /* Implementation file */
451 : NS_IMPL_ISUPPORTS1(nsSupportsPRBool, nsISupportsPRBool)
452 :
453 : nsSupportsPRBool::nsSupportsPRBool()
454 : {
455 : /* member initializers and constructor code */
456 : }
457 :
458 : nsSupportsPRBool::~nsSupportsPRBool()
459 : {
460 : /* destructor code */
461 : }
462 :
463 : /* attribute boolean data; */
464 : NS_IMETHODIMP nsSupportsPRBool::GetData(bool *aData)
465 : {
466 : return NS_ERROR_NOT_IMPLEMENTED;
467 : }
468 : NS_IMETHODIMP nsSupportsPRBool::SetData(bool aData)
469 : {
470 : return NS_ERROR_NOT_IMPLEMENTED;
471 : }
472 :
473 : /* string toString (); */
474 : NS_IMETHODIMP nsSupportsPRBool::ToString(char * *_retval NS_OUTPARAM)
475 : {
476 : return NS_ERROR_NOT_IMPLEMENTED;
477 : }
478 :
479 : /* End of implementation class template. */
480 : #endif
481 :
482 :
483 : /* starting interface: nsISupportsPRUint8 */
484 : #define NS_ISUPPORTSPRUINT8_IID_STR "dec2e4e0-4a1c-11d3-9890-006008962422"
485 :
486 : #define NS_ISUPPORTSPRUINT8_IID \
487 : {0xdec2e4e0, 0x4a1c, 0x11d3, \
488 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
489 :
490 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint8 : public nsISupportsPrimitive {
491 : public:
492 :
493 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT8_IID)
494 :
495 : /* attribute PRUint8 data; */
496 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData) = 0;
497 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData) = 0;
498 :
499 : /* string toString (); */
500 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
501 :
502 : };
503 :
504 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint8, NS_ISUPPORTSPRUINT8_IID)
505 :
506 : /* Use this macro when declaring classes that implement this interface. */
507 : #define NS_DECL_NSISUPPORTSPRUINT8 \
508 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData); \
509 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData); \
510 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
511 :
512 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
513 : #define NS_FORWARD_NSISUPPORTSPRUINT8(_to) \
514 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData) { return _to GetData(aData); } \
515 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData) { return _to SetData(aData); } \
516 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
517 :
518 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
519 : #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT8(_to) \
520 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
521 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
522 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
523 :
524 : #if 0
525 : /* Use the code below as a template for the implementation class for this interface. */
526 :
527 : /* Header file */
528 : class nsSupportsPRUint8 : public nsISupportsPRUint8
529 : {
530 : public:
531 : NS_DECL_ISUPPORTS
532 : NS_DECL_NSISUPPORTSPRUINT8
533 :
534 : nsSupportsPRUint8();
535 :
536 : private:
537 : ~nsSupportsPRUint8();
538 :
539 : protected:
540 : /* additional members */
541 : };
542 :
543 : /* Implementation file */
544 : NS_IMPL_ISUPPORTS1(nsSupportsPRUint8, nsISupportsPRUint8)
545 :
546 : nsSupportsPRUint8::nsSupportsPRUint8()
547 : {
548 : /* member initializers and constructor code */
549 : }
550 :
551 : nsSupportsPRUint8::~nsSupportsPRUint8()
552 : {
553 : /* destructor code */
554 : }
555 :
556 : /* attribute PRUint8 data; */
557 : NS_IMETHODIMP nsSupportsPRUint8::GetData(PRUint8 *aData)
558 : {
559 : return NS_ERROR_NOT_IMPLEMENTED;
560 : }
561 : NS_IMETHODIMP nsSupportsPRUint8::SetData(PRUint8 aData)
562 : {
563 : return NS_ERROR_NOT_IMPLEMENTED;
564 : }
565 :
566 : /* string toString (); */
567 : NS_IMETHODIMP nsSupportsPRUint8::ToString(char * *_retval NS_OUTPARAM)
568 : {
569 : return NS_ERROR_NOT_IMPLEMENTED;
570 : }
571 :
572 : /* End of implementation class template. */
573 : #endif
574 :
575 :
576 : /* starting interface: nsISupportsPRUint16 */
577 : #define NS_ISUPPORTSPRUINT16_IID_STR "dfacb090-4a1c-11d3-9890-006008962422"
578 :
579 : #define NS_ISUPPORTSPRUINT16_IID \
580 : {0xdfacb090, 0x4a1c, 0x11d3, \
581 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
582 :
583 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint16 : public nsISupportsPrimitive {
584 : public:
585 :
586 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT16_IID)
587 :
588 : /* attribute PRUint16 data; */
589 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData) = 0;
590 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData) = 0;
591 :
592 : /* string toString (); */
593 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
594 :
595 : };
596 :
597 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint16, NS_ISUPPORTSPRUINT16_IID)
598 :
599 : /* Use this macro when declaring classes that implement this interface. */
600 : #define NS_DECL_NSISUPPORTSPRUINT16 \
601 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData); \
602 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData); \
603 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
604 :
605 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
606 : #define NS_FORWARD_NSISUPPORTSPRUINT16(_to) \
607 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData) { return _to GetData(aData); } \
608 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData) { return _to SetData(aData); } \
609 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
610 :
611 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
612 : #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT16(_to) \
613 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
614 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
615 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
616 :
617 : #if 0
618 : /* Use the code below as a template for the implementation class for this interface. */
619 :
620 : /* Header file */
621 : class nsSupportsPRUint16 : public nsISupportsPRUint16
622 : {
623 : public:
624 : NS_DECL_ISUPPORTS
625 : NS_DECL_NSISUPPORTSPRUINT16
626 :
627 : nsSupportsPRUint16();
628 :
629 : private:
630 : ~nsSupportsPRUint16();
631 :
632 : protected:
633 : /* additional members */
634 : };
635 :
636 : /* Implementation file */
637 : NS_IMPL_ISUPPORTS1(nsSupportsPRUint16, nsISupportsPRUint16)
638 :
639 : nsSupportsPRUint16::nsSupportsPRUint16()
640 : {
641 : /* member initializers and constructor code */
642 : }
643 :
644 : nsSupportsPRUint16::~nsSupportsPRUint16()
645 : {
646 : /* destructor code */
647 : }
648 :
649 : /* attribute PRUint16 data; */
650 : NS_IMETHODIMP nsSupportsPRUint16::GetData(PRUint16 *aData)
651 : {
652 : return NS_ERROR_NOT_IMPLEMENTED;
653 : }
654 : NS_IMETHODIMP nsSupportsPRUint16::SetData(PRUint16 aData)
655 : {
656 : return NS_ERROR_NOT_IMPLEMENTED;
657 : }
658 :
659 : /* string toString (); */
660 : NS_IMETHODIMP nsSupportsPRUint16::ToString(char * *_retval NS_OUTPARAM)
661 : {
662 : return NS_ERROR_NOT_IMPLEMENTED;
663 : }
664 :
665 : /* End of implementation class template. */
666 : #endif
667 :
668 :
669 : /* starting interface: nsISupportsPRUint32 */
670 : #define NS_ISUPPORTSPRUINT32_IID_STR "e01dc470-4a1c-11d3-9890-006008962422"
671 :
672 : #define NS_ISUPPORTSPRUINT32_IID \
673 : {0xe01dc470, 0x4a1c, 0x11d3, \
674 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
675 :
676 19 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint32 : public nsISupportsPrimitive {
677 : public:
678 :
679 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT32_IID)
680 :
681 : /* attribute PRUint32 data; */
682 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData) = 0;
683 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData) = 0;
684 :
685 : /* string toString (); */
686 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
687 :
688 : };
689 :
690 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint32, NS_ISUPPORTSPRUINT32_IID)
691 :
692 : /* Use this macro when declaring classes that implement this interface. */
693 : #define NS_DECL_NSISUPPORTSPRUINT32 \
694 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData); \
695 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData); \
696 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
697 :
698 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
699 : #define NS_FORWARD_NSISUPPORTSPRUINT32(_to) \
700 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData) { return _to GetData(aData); } \
701 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData) { return _to SetData(aData); } \
702 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
703 :
704 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
705 : #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT32(_to) \
706 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
707 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
708 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
709 :
710 : #if 0
711 : /* Use the code below as a template for the implementation class for this interface. */
712 :
713 : /* Header file */
714 : class nsSupportsPRUint32 : public nsISupportsPRUint32
715 : {
716 : public:
717 : NS_DECL_ISUPPORTS
718 : NS_DECL_NSISUPPORTSPRUINT32
719 :
720 : nsSupportsPRUint32();
721 :
722 : private:
723 : ~nsSupportsPRUint32();
724 :
725 : protected:
726 : /* additional members */
727 : };
728 :
729 : /* Implementation file */
730 : NS_IMPL_ISUPPORTS1(nsSupportsPRUint32, nsISupportsPRUint32)
731 :
732 : nsSupportsPRUint32::nsSupportsPRUint32()
733 : {
734 : /* member initializers and constructor code */
735 : }
736 :
737 : nsSupportsPRUint32::~nsSupportsPRUint32()
738 : {
739 : /* destructor code */
740 : }
741 :
742 : /* attribute PRUint32 data; */
743 : NS_IMETHODIMP nsSupportsPRUint32::GetData(PRUint32 *aData)
744 : {
745 : return NS_ERROR_NOT_IMPLEMENTED;
746 : }
747 : NS_IMETHODIMP nsSupportsPRUint32::SetData(PRUint32 aData)
748 : {
749 : return NS_ERROR_NOT_IMPLEMENTED;
750 : }
751 :
752 : /* string toString (); */
753 : NS_IMETHODIMP nsSupportsPRUint32::ToString(char * *_retval NS_OUTPARAM)
754 : {
755 : return NS_ERROR_NOT_IMPLEMENTED;
756 : }
757 :
758 : /* End of implementation class template. */
759 : #endif
760 :
761 :
762 : /* starting interface: nsISupportsPRUint64 */
763 : #define NS_ISUPPORTSPRUINT64_IID_STR "e13567c0-4a1c-11d3-9890-006008962422"
764 :
765 : #define NS_ISUPPORTSPRUINT64_IID \
766 : {0xe13567c0, 0x4a1c, 0x11d3, \
767 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
768 :
769 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint64 : public nsISupportsPrimitive {
770 : public:
771 :
772 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT64_IID)
773 :
774 : /* attribute PRUint64 data; */
775 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData) = 0;
776 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData) = 0;
777 :
778 : /* string toString (); */
779 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
780 :
781 : };
782 :
783 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint64, NS_ISUPPORTSPRUINT64_IID)
784 :
785 : /* Use this macro when declaring classes that implement this interface. */
786 : #define NS_DECL_NSISUPPORTSPRUINT64 \
787 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData); \
788 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData); \
789 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
790 :
791 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
792 : #define NS_FORWARD_NSISUPPORTSPRUINT64(_to) \
793 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData) { return _to GetData(aData); } \
794 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData) { return _to SetData(aData); } \
795 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
796 :
797 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
798 : #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT64(_to) \
799 : NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
800 : NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
801 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
802 :
803 : #if 0
804 : /* Use the code below as a template for the implementation class for this interface. */
805 :
806 : /* Header file */
807 : class nsSupportsPRUint64 : public nsISupportsPRUint64
808 : {
809 : public:
810 : NS_DECL_ISUPPORTS
811 : NS_DECL_NSISUPPORTSPRUINT64
812 :
813 : nsSupportsPRUint64();
814 :
815 : private:
816 : ~nsSupportsPRUint64();
817 :
818 : protected:
819 : /* additional members */
820 : };
821 :
822 : /* Implementation file */
823 : NS_IMPL_ISUPPORTS1(nsSupportsPRUint64, nsISupportsPRUint64)
824 :
825 : nsSupportsPRUint64::nsSupportsPRUint64()
826 : {
827 : /* member initializers and constructor code */
828 : }
829 :
830 : nsSupportsPRUint64::~nsSupportsPRUint64()
831 : {
832 : /* destructor code */
833 : }
834 :
835 : /* attribute PRUint64 data; */
836 : NS_IMETHODIMP nsSupportsPRUint64::GetData(PRUint64 *aData)
837 : {
838 : return NS_ERROR_NOT_IMPLEMENTED;
839 : }
840 : NS_IMETHODIMP nsSupportsPRUint64::SetData(PRUint64 aData)
841 : {
842 : return NS_ERROR_NOT_IMPLEMENTED;
843 : }
844 :
845 : /* string toString (); */
846 : NS_IMETHODIMP nsSupportsPRUint64::ToString(char * *_retval NS_OUTPARAM)
847 : {
848 : return NS_ERROR_NOT_IMPLEMENTED;
849 : }
850 :
851 : /* End of implementation class template. */
852 : #endif
853 :
854 :
855 : /* starting interface: nsISupportsPRTime */
856 : #define NS_ISUPPORTSPRTIME_IID_STR "e2563630-4a1c-11d3-9890-006008962422"
857 :
858 : #define NS_ISUPPORTSPRTIME_IID \
859 : {0xe2563630, 0x4a1c, 0x11d3, \
860 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
861 :
862 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRTime : public nsISupportsPrimitive {
863 : public:
864 :
865 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRTIME_IID)
866 :
867 : /* attribute PRTime data; */
868 : NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData) = 0;
869 : NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData) = 0;
870 :
871 : /* string toString (); */
872 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
873 :
874 : };
875 :
876 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRTime, NS_ISUPPORTSPRTIME_IID)
877 :
878 : /* Use this macro when declaring classes that implement this interface. */
879 : #define NS_DECL_NSISUPPORTSPRTIME \
880 : NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData); \
881 : NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData); \
882 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
883 :
884 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
885 : #define NS_FORWARD_NSISUPPORTSPRTIME(_to) \
886 : NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData) { return _to GetData(aData); } \
887 : NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData) { return _to SetData(aData); } \
888 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
889 :
890 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
891 : #define NS_FORWARD_SAFE_NSISUPPORTSPRTIME(_to) \
892 : NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
893 : NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
894 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
895 :
896 : #if 0
897 : /* Use the code below as a template for the implementation class for this interface. */
898 :
899 : /* Header file */
900 : class nsSupportsPRTime : public nsISupportsPRTime
901 : {
902 : public:
903 : NS_DECL_ISUPPORTS
904 : NS_DECL_NSISUPPORTSPRTIME
905 :
906 : nsSupportsPRTime();
907 :
908 : private:
909 : ~nsSupportsPRTime();
910 :
911 : protected:
912 : /* additional members */
913 : };
914 :
915 : /* Implementation file */
916 : NS_IMPL_ISUPPORTS1(nsSupportsPRTime, nsISupportsPRTime)
917 :
918 : nsSupportsPRTime::nsSupportsPRTime()
919 : {
920 : /* member initializers and constructor code */
921 : }
922 :
923 : nsSupportsPRTime::~nsSupportsPRTime()
924 : {
925 : /* destructor code */
926 : }
927 :
928 : /* attribute PRTime data; */
929 : NS_IMETHODIMP nsSupportsPRTime::GetData(PRTime *aData)
930 : {
931 : return NS_ERROR_NOT_IMPLEMENTED;
932 : }
933 : NS_IMETHODIMP nsSupportsPRTime::SetData(PRTime aData)
934 : {
935 : return NS_ERROR_NOT_IMPLEMENTED;
936 : }
937 :
938 : /* string toString (); */
939 : NS_IMETHODIMP nsSupportsPRTime::ToString(char * *_retval NS_OUTPARAM)
940 : {
941 : return NS_ERROR_NOT_IMPLEMENTED;
942 : }
943 :
944 : /* End of implementation class template. */
945 : #endif
946 :
947 :
948 : /* starting interface: nsISupportsChar */
949 : #define NS_ISUPPORTSCHAR_IID_STR "e2b05e40-4a1c-11d3-9890-006008962422"
950 :
951 : #define NS_ISUPPORTSCHAR_IID \
952 : {0xe2b05e40, 0x4a1c, 0x11d3, \
953 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
954 :
955 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsChar : public nsISupportsPrimitive {
956 : public:
957 :
958 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSCHAR_IID)
959 :
960 : /* attribute char data; */
961 : NS_SCRIPTABLE NS_IMETHOD GetData(char *aData) = 0;
962 : NS_SCRIPTABLE NS_IMETHOD SetData(char aData) = 0;
963 :
964 : /* string toString (); */
965 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
966 :
967 : };
968 :
969 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsChar, NS_ISUPPORTSCHAR_IID)
970 :
971 : /* Use this macro when declaring classes that implement this interface. */
972 : #define NS_DECL_NSISUPPORTSCHAR \
973 : NS_SCRIPTABLE NS_IMETHOD GetData(char *aData); \
974 : NS_SCRIPTABLE NS_IMETHOD SetData(char aData); \
975 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
976 :
977 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
978 : #define NS_FORWARD_NSISUPPORTSCHAR(_to) \
979 : NS_SCRIPTABLE NS_IMETHOD GetData(char *aData) { return _to GetData(aData); } \
980 : NS_SCRIPTABLE NS_IMETHOD SetData(char aData) { return _to SetData(aData); } \
981 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
982 :
983 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
984 : #define NS_FORWARD_SAFE_NSISUPPORTSCHAR(_to) \
985 : NS_SCRIPTABLE NS_IMETHOD GetData(char *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
986 : NS_SCRIPTABLE NS_IMETHOD SetData(char aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
987 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
988 :
989 : #if 0
990 : /* Use the code below as a template for the implementation class for this interface. */
991 :
992 : /* Header file */
993 : class nsSupportsChar : public nsISupportsChar
994 : {
995 : public:
996 : NS_DECL_ISUPPORTS
997 : NS_DECL_NSISUPPORTSCHAR
998 :
999 : nsSupportsChar();
1000 :
1001 : private:
1002 : ~nsSupportsChar();
1003 :
1004 : protected:
1005 : /* additional members */
1006 : };
1007 :
1008 : /* Implementation file */
1009 : NS_IMPL_ISUPPORTS1(nsSupportsChar, nsISupportsChar)
1010 :
1011 : nsSupportsChar::nsSupportsChar()
1012 : {
1013 : /* member initializers and constructor code */
1014 : }
1015 :
1016 : nsSupportsChar::~nsSupportsChar()
1017 : {
1018 : /* destructor code */
1019 : }
1020 :
1021 : /* attribute char data; */
1022 : NS_IMETHODIMP nsSupportsChar::GetData(char *aData)
1023 : {
1024 : return NS_ERROR_NOT_IMPLEMENTED;
1025 : }
1026 : NS_IMETHODIMP nsSupportsChar::SetData(char aData)
1027 : {
1028 : return NS_ERROR_NOT_IMPLEMENTED;
1029 : }
1030 :
1031 : /* string toString (); */
1032 : NS_IMETHODIMP nsSupportsChar::ToString(char * *_retval NS_OUTPARAM)
1033 : {
1034 : return NS_ERROR_NOT_IMPLEMENTED;
1035 : }
1036 :
1037 : /* End of implementation class template. */
1038 : #endif
1039 :
1040 :
1041 : /* starting interface: nsISupportsPRInt16 */
1042 : #define NS_ISUPPORTSPRINT16_IID_STR "e30d94b0-4a1c-11d3-9890-006008962422"
1043 :
1044 : #define NS_ISUPPORTSPRINT16_IID \
1045 : {0xe30d94b0, 0x4a1c, 0x11d3, \
1046 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
1047 :
1048 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRInt16 : public nsISupportsPrimitive {
1049 : public:
1050 :
1051 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT16_IID)
1052 :
1053 : /* attribute PRInt16 data; */
1054 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData) = 0;
1055 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData) = 0;
1056 :
1057 : /* string toString (); */
1058 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
1059 :
1060 : };
1061 :
1062 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRInt16, NS_ISUPPORTSPRINT16_IID)
1063 :
1064 : /* Use this macro when declaring classes that implement this interface. */
1065 : #define NS_DECL_NSISUPPORTSPRINT16 \
1066 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData); \
1067 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData); \
1068 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
1069 :
1070 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1071 : #define NS_FORWARD_NSISUPPORTSPRINT16(_to) \
1072 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData) { return _to GetData(aData); } \
1073 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData) { return _to SetData(aData); } \
1074 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
1075 :
1076 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1077 : #define NS_FORWARD_SAFE_NSISUPPORTSPRINT16(_to) \
1078 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
1079 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
1080 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
1081 :
1082 : #if 0
1083 : /* Use the code below as a template for the implementation class for this interface. */
1084 :
1085 : /* Header file */
1086 : class nsSupportsPRInt16 : public nsISupportsPRInt16
1087 : {
1088 : public:
1089 : NS_DECL_ISUPPORTS
1090 : NS_DECL_NSISUPPORTSPRINT16
1091 :
1092 : nsSupportsPRInt16();
1093 :
1094 : private:
1095 : ~nsSupportsPRInt16();
1096 :
1097 : protected:
1098 : /* additional members */
1099 : };
1100 :
1101 : /* Implementation file */
1102 : NS_IMPL_ISUPPORTS1(nsSupportsPRInt16, nsISupportsPRInt16)
1103 :
1104 : nsSupportsPRInt16::nsSupportsPRInt16()
1105 : {
1106 : /* member initializers and constructor code */
1107 : }
1108 :
1109 : nsSupportsPRInt16::~nsSupportsPRInt16()
1110 : {
1111 : /* destructor code */
1112 : }
1113 :
1114 : /* attribute PRInt16 data; */
1115 : NS_IMETHODIMP nsSupportsPRInt16::GetData(PRInt16 *aData)
1116 : {
1117 : return NS_ERROR_NOT_IMPLEMENTED;
1118 : }
1119 : NS_IMETHODIMP nsSupportsPRInt16::SetData(PRInt16 aData)
1120 : {
1121 : return NS_ERROR_NOT_IMPLEMENTED;
1122 : }
1123 :
1124 : /* string toString (); */
1125 : NS_IMETHODIMP nsSupportsPRInt16::ToString(char * *_retval NS_OUTPARAM)
1126 : {
1127 : return NS_ERROR_NOT_IMPLEMENTED;
1128 : }
1129 :
1130 : /* End of implementation class template. */
1131 : #endif
1132 :
1133 :
1134 : /* starting interface: nsISupportsPRInt32 */
1135 : #define NS_ISUPPORTSPRINT32_IID_STR "e36c5250-4a1c-11d3-9890-006008962422"
1136 :
1137 : #define NS_ISUPPORTSPRINT32_IID \
1138 : {0xe36c5250, 0x4a1c, 0x11d3, \
1139 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
1140 :
1141 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRInt32 : public nsISupportsPrimitive {
1142 : public:
1143 :
1144 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT32_IID)
1145 :
1146 : /* attribute PRInt32 data; */
1147 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData) = 0;
1148 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData) = 0;
1149 :
1150 : /* string toString (); */
1151 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
1152 :
1153 : };
1154 :
1155 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRInt32, NS_ISUPPORTSPRINT32_IID)
1156 :
1157 : /* Use this macro when declaring classes that implement this interface. */
1158 : #define NS_DECL_NSISUPPORTSPRINT32 \
1159 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData); \
1160 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData); \
1161 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
1162 :
1163 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1164 : #define NS_FORWARD_NSISUPPORTSPRINT32(_to) \
1165 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData) { return _to GetData(aData); } \
1166 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData) { return _to SetData(aData); } \
1167 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
1168 :
1169 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1170 : #define NS_FORWARD_SAFE_NSISUPPORTSPRINT32(_to) \
1171 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
1172 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
1173 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
1174 :
1175 : #if 0
1176 : /* Use the code below as a template for the implementation class for this interface. */
1177 :
1178 : /* Header file */
1179 : class nsSupportsPRInt32 : public nsISupportsPRInt32
1180 : {
1181 : public:
1182 : NS_DECL_ISUPPORTS
1183 : NS_DECL_NSISUPPORTSPRINT32
1184 :
1185 : nsSupportsPRInt32();
1186 :
1187 : private:
1188 : ~nsSupportsPRInt32();
1189 :
1190 : protected:
1191 : /* additional members */
1192 : };
1193 :
1194 : /* Implementation file */
1195 : NS_IMPL_ISUPPORTS1(nsSupportsPRInt32, nsISupportsPRInt32)
1196 :
1197 : nsSupportsPRInt32::nsSupportsPRInt32()
1198 : {
1199 : /* member initializers and constructor code */
1200 : }
1201 :
1202 : nsSupportsPRInt32::~nsSupportsPRInt32()
1203 : {
1204 : /* destructor code */
1205 : }
1206 :
1207 : /* attribute PRInt32 data; */
1208 : NS_IMETHODIMP nsSupportsPRInt32::GetData(PRInt32 *aData)
1209 : {
1210 : return NS_ERROR_NOT_IMPLEMENTED;
1211 : }
1212 : NS_IMETHODIMP nsSupportsPRInt32::SetData(PRInt32 aData)
1213 : {
1214 : return NS_ERROR_NOT_IMPLEMENTED;
1215 : }
1216 :
1217 : /* string toString (); */
1218 : NS_IMETHODIMP nsSupportsPRInt32::ToString(char * *_retval NS_OUTPARAM)
1219 : {
1220 : return NS_ERROR_NOT_IMPLEMENTED;
1221 : }
1222 :
1223 : /* End of implementation class template. */
1224 : #endif
1225 :
1226 :
1227 : /* starting interface: nsISupportsPRInt64 */
1228 : #define NS_ISUPPORTSPRINT64_IID_STR "e3cb0ff0-4a1c-11d3-9890-006008962422"
1229 :
1230 : #define NS_ISUPPORTSPRINT64_IID \
1231 : {0xe3cb0ff0, 0x4a1c, 0x11d3, \
1232 : { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
1233 :
1234 33 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRInt64 : public nsISupportsPrimitive {
1235 : public:
1236 :
1237 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT64_IID)
1238 :
1239 : /* attribute PRInt64 data; */
1240 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData) = 0;
1241 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData) = 0;
1242 :
1243 : /* string toString (); */
1244 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
1245 :
1246 : };
1247 :
1248 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRInt64, NS_ISUPPORTSPRINT64_IID)
1249 :
1250 : /* Use this macro when declaring classes that implement this interface. */
1251 : #define NS_DECL_NSISUPPORTSPRINT64 \
1252 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData); \
1253 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData); \
1254 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
1255 :
1256 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1257 : #define NS_FORWARD_NSISUPPORTSPRINT64(_to) \
1258 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData) { return _to GetData(aData); } \
1259 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData) { return _to SetData(aData); } \
1260 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
1261 :
1262 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1263 : #define NS_FORWARD_SAFE_NSISUPPORTSPRINT64(_to) \
1264 : NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
1265 : NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
1266 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
1267 :
1268 : #if 0
1269 : /* Use the code below as a template for the implementation class for this interface. */
1270 :
1271 : /* Header file */
1272 : class nsSupportsPRInt64 : public nsISupportsPRInt64
1273 : {
1274 : public:
1275 : NS_DECL_ISUPPORTS
1276 : NS_DECL_NSISUPPORTSPRINT64
1277 :
1278 : nsSupportsPRInt64();
1279 :
1280 : private:
1281 : ~nsSupportsPRInt64();
1282 :
1283 : protected:
1284 : /* additional members */
1285 : };
1286 :
1287 : /* Implementation file */
1288 : NS_IMPL_ISUPPORTS1(nsSupportsPRInt64, nsISupportsPRInt64)
1289 :
1290 : nsSupportsPRInt64::nsSupportsPRInt64()
1291 : {
1292 : /* member initializers and constructor code */
1293 : }
1294 :
1295 : nsSupportsPRInt64::~nsSupportsPRInt64()
1296 : {
1297 : /* destructor code */
1298 : }
1299 :
1300 : /* attribute PRInt64 data; */
1301 : NS_IMETHODIMP nsSupportsPRInt64::GetData(PRInt64 *aData)
1302 : {
1303 : return NS_ERROR_NOT_IMPLEMENTED;
1304 : }
1305 : NS_IMETHODIMP nsSupportsPRInt64::SetData(PRInt64 aData)
1306 : {
1307 : return NS_ERROR_NOT_IMPLEMENTED;
1308 : }
1309 :
1310 : /* string toString (); */
1311 : NS_IMETHODIMP nsSupportsPRInt64::ToString(char * *_retval NS_OUTPARAM)
1312 : {
1313 : return NS_ERROR_NOT_IMPLEMENTED;
1314 : }
1315 :
1316 : /* End of implementation class template. */
1317 : #endif
1318 :
1319 :
1320 : /* starting interface: nsISupportsFloat */
1321 : #define NS_ISUPPORTSFLOAT_IID_STR "abeaa390-4ac0-11d3-baea-00805f8a5dd7"
1322 :
1323 : #define NS_ISUPPORTSFLOAT_IID \
1324 : {0xabeaa390, 0x4ac0, 0x11d3, \
1325 : { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
1326 :
1327 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsFloat : public nsISupportsPrimitive {
1328 : public:
1329 :
1330 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSFLOAT_IID)
1331 :
1332 : /* attribute float data; */
1333 : NS_SCRIPTABLE NS_IMETHOD GetData(float *aData) = 0;
1334 : NS_SCRIPTABLE NS_IMETHOD SetData(float aData) = 0;
1335 :
1336 : /* string toString (); */
1337 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
1338 :
1339 : };
1340 :
1341 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsFloat, NS_ISUPPORTSFLOAT_IID)
1342 :
1343 : /* Use this macro when declaring classes that implement this interface. */
1344 : #define NS_DECL_NSISUPPORTSFLOAT \
1345 : NS_SCRIPTABLE NS_IMETHOD GetData(float *aData); \
1346 : NS_SCRIPTABLE NS_IMETHOD SetData(float aData); \
1347 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
1348 :
1349 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1350 : #define NS_FORWARD_NSISUPPORTSFLOAT(_to) \
1351 : NS_SCRIPTABLE NS_IMETHOD GetData(float *aData) { return _to GetData(aData); } \
1352 : NS_SCRIPTABLE NS_IMETHOD SetData(float aData) { return _to SetData(aData); } \
1353 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
1354 :
1355 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1356 : #define NS_FORWARD_SAFE_NSISUPPORTSFLOAT(_to) \
1357 : NS_SCRIPTABLE NS_IMETHOD GetData(float *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
1358 : NS_SCRIPTABLE NS_IMETHOD SetData(float aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
1359 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
1360 :
1361 : #if 0
1362 : /* Use the code below as a template for the implementation class for this interface. */
1363 :
1364 : /* Header file */
1365 : class nsSupportsFloat : public nsISupportsFloat
1366 : {
1367 : public:
1368 : NS_DECL_ISUPPORTS
1369 : NS_DECL_NSISUPPORTSFLOAT
1370 :
1371 : nsSupportsFloat();
1372 :
1373 : private:
1374 : ~nsSupportsFloat();
1375 :
1376 : protected:
1377 : /* additional members */
1378 : };
1379 :
1380 : /* Implementation file */
1381 : NS_IMPL_ISUPPORTS1(nsSupportsFloat, nsISupportsFloat)
1382 :
1383 : nsSupportsFloat::nsSupportsFloat()
1384 : {
1385 : /* member initializers and constructor code */
1386 : }
1387 :
1388 : nsSupportsFloat::~nsSupportsFloat()
1389 : {
1390 : /* destructor code */
1391 : }
1392 :
1393 : /* attribute float data; */
1394 : NS_IMETHODIMP nsSupportsFloat::GetData(float *aData)
1395 : {
1396 : return NS_ERROR_NOT_IMPLEMENTED;
1397 : }
1398 : NS_IMETHODIMP nsSupportsFloat::SetData(float aData)
1399 : {
1400 : return NS_ERROR_NOT_IMPLEMENTED;
1401 : }
1402 :
1403 : /* string toString (); */
1404 : NS_IMETHODIMP nsSupportsFloat::ToString(char * *_retval NS_OUTPARAM)
1405 : {
1406 : return NS_ERROR_NOT_IMPLEMENTED;
1407 : }
1408 :
1409 : /* End of implementation class template. */
1410 : #endif
1411 :
1412 :
1413 : /* starting interface: nsISupportsDouble */
1414 : #define NS_ISUPPORTSDOUBLE_IID_STR "b32523a0-4ac0-11d3-baea-00805f8a5dd7"
1415 :
1416 : #define NS_ISUPPORTSDOUBLE_IID \
1417 : {0xb32523a0, 0x4ac0, 0x11d3, \
1418 : { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
1419 :
1420 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsDouble : public nsISupportsPrimitive {
1421 : public:
1422 :
1423 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSDOUBLE_IID)
1424 :
1425 : /* attribute double data; */
1426 : NS_SCRIPTABLE NS_IMETHOD GetData(double *aData) = 0;
1427 : NS_SCRIPTABLE NS_IMETHOD SetData(double aData) = 0;
1428 :
1429 : /* string toString (); */
1430 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
1431 :
1432 : };
1433 :
1434 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsDouble, NS_ISUPPORTSDOUBLE_IID)
1435 :
1436 : /* Use this macro when declaring classes that implement this interface. */
1437 : #define NS_DECL_NSISUPPORTSDOUBLE \
1438 : NS_SCRIPTABLE NS_IMETHOD GetData(double *aData); \
1439 : NS_SCRIPTABLE NS_IMETHOD SetData(double aData); \
1440 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
1441 :
1442 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1443 : #define NS_FORWARD_NSISUPPORTSDOUBLE(_to) \
1444 : NS_SCRIPTABLE NS_IMETHOD GetData(double *aData) { return _to GetData(aData); } \
1445 : NS_SCRIPTABLE NS_IMETHOD SetData(double aData) { return _to SetData(aData); } \
1446 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
1447 :
1448 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1449 : #define NS_FORWARD_SAFE_NSISUPPORTSDOUBLE(_to) \
1450 : NS_SCRIPTABLE NS_IMETHOD GetData(double *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
1451 : NS_SCRIPTABLE NS_IMETHOD SetData(double aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
1452 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
1453 :
1454 : #if 0
1455 : /* Use the code below as a template for the implementation class for this interface. */
1456 :
1457 : /* Header file */
1458 : class nsSupportsDouble : public nsISupportsDouble
1459 : {
1460 : public:
1461 : NS_DECL_ISUPPORTS
1462 : NS_DECL_NSISUPPORTSDOUBLE
1463 :
1464 : nsSupportsDouble();
1465 :
1466 : private:
1467 : ~nsSupportsDouble();
1468 :
1469 : protected:
1470 : /* additional members */
1471 : };
1472 :
1473 : /* Implementation file */
1474 : NS_IMPL_ISUPPORTS1(nsSupportsDouble, nsISupportsDouble)
1475 :
1476 : nsSupportsDouble::nsSupportsDouble()
1477 : {
1478 : /* member initializers and constructor code */
1479 : }
1480 :
1481 : nsSupportsDouble::~nsSupportsDouble()
1482 : {
1483 : /* destructor code */
1484 : }
1485 :
1486 : /* attribute double data; */
1487 : NS_IMETHODIMP nsSupportsDouble::GetData(double *aData)
1488 : {
1489 : return NS_ERROR_NOT_IMPLEMENTED;
1490 : }
1491 : NS_IMETHODIMP nsSupportsDouble::SetData(double aData)
1492 : {
1493 : return NS_ERROR_NOT_IMPLEMENTED;
1494 : }
1495 :
1496 : /* string toString (); */
1497 : NS_IMETHODIMP nsSupportsDouble::ToString(char * *_retval NS_OUTPARAM)
1498 : {
1499 : return NS_ERROR_NOT_IMPLEMENTED;
1500 : }
1501 :
1502 : /* End of implementation class template. */
1503 : #endif
1504 :
1505 :
1506 : /* starting interface: nsISupportsVoid */
1507 : #define NS_ISUPPORTSVOID_IID_STR "464484f0-568d-11d3-baf8-00805f8a5dd7"
1508 :
1509 : #define NS_ISUPPORTSVOID_IID \
1510 : {0x464484f0, 0x568d, 0x11d3, \
1511 : { 0xba, 0xf8, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
1512 :
1513 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsVoid : public nsISupportsPrimitive {
1514 : public:
1515 :
1516 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSVOID_IID)
1517 :
1518 : /* [noscript] attribute voidPtr data; */
1519 : NS_IMETHOD GetData(void **aData) = 0;
1520 : NS_IMETHOD SetData(void *aData) = 0;
1521 :
1522 : /* string toString (); */
1523 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
1524 :
1525 : };
1526 :
1527 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsVoid, NS_ISUPPORTSVOID_IID)
1528 :
1529 : /* Use this macro when declaring classes that implement this interface. */
1530 : #define NS_DECL_NSISUPPORTSVOID \
1531 : NS_IMETHOD GetData(void **aData); \
1532 : NS_IMETHOD SetData(void *aData); \
1533 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
1534 :
1535 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1536 : #define NS_FORWARD_NSISUPPORTSVOID(_to) \
1537 : NS_IMETHOD GetData(void **aData) { return _to GetData(aData); } \
1538 : NS_IMETHOD SetData(void *aData) { return _to SetData(aData); } \
1539 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
1540 :
1541 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1542 : #define NS_FORWARD_SAFE_NSISUPPORTSVOID(_to) \
1543 : NS_IMETHOD GetData(void **aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
1544 : NS_IMETHOD SetData(void *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
1545 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
1546 :
1547 : #if 0
1548 : /* Use the code below as a template for the implementation class for this interface. */
1549 :
1550 : /* Header file */
1551 : class nsSupportsVoid : public nsISupportsVoid
1552 : {
1553 : public:
1554 : NS_DECL_ISUPPORTS
1555 : NS_DECL_NSISUPPORTSVOID
1556 :
1557 : nsSupportsVoid();
1558 :
1559 : private:
1560 : ~nsSupportsVoid();
1561 :
1562 : protected:
1563 : /* additional members */
1564 : };
1565 :
1566 : /* Implementation file */
1567 : NS_IMPL_ISUPPORTS1(nsSupportsVoid, nsISupportsVoid)
1568 :
1569 : nsSupportsVoid::nsSupportsVoid()
1570 : {
1571 : /* member initializers and constructor code */
1572 : }
1573 :
1574 : nsSupportsVoid::~nsSupportsVoid()
1575 : {
1576 : /* destructor code */
1577 : }
1578 :
1579 : /* [noscript] attribute voidPtr data; */
1580 : NS_IMETHODIMP nsSupportsVoid::GetData(void **aData)
1581 : {
1582 : return NS_ERROR_NOT_IMPLEMENTED;
1583 : }
1584 : NS_IMETHODIMP nsSupportsVoid::SetData(void *aData)
1585 : {
1586 : return NS_ERROR_NOT_IMPLEMENTED;
1587 : }
1588 :
1589 : /* string toString (); */
1590 : NS_IMETHODIMP nsSupportsVoid::ToString(char * *_retval NS_OUTPARAM)
1591 : {
1592 : return NS_ERROR_NOT_IMPLEMENTED;
1593 : }
1594 :
1595 : /* End of implementation class template. */
1596 : #endif
1597 :
1598 :
1599 : /* starting interface: nsISupportsInterfacePointer */
1600 : #define NS_ISUPPORTSINTERFACEPOINTER_IID_STR "995ea724-1dd1-11b2-9211-c21bdd3e7ed0"
1601 :
1602 : #define NS_ISUPPORTSINTERFACEPOINTER_IID \
1603 : {0x995ea724, 0x1dd1, 0x11b2, \
1604 : { 0x92, 0x11, 0xc2, 0x1b, 0xdd, 0x3e, 0x7e, 0xd0 }}
1605 :
1606 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsInterfacePointer : public nsISupportsPrimitive {
1607 : public:
1608 :
1609 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSINTERFACEPOINTER_IID)
1610 :
1611 : /* attribute nsISupports data; */
1612 : NS_SCRIPTABLE NS_IMETHOD GetData(nsISupports * *aData) = 0;
1613 : NS_SCRIPTABLE NS_IMETHOD SetData(nsISupports *aData) = 0;
1614 :
1615 : /* attribute nsIDPtr dataIID; */
1616 : NS_SCRIPTABLE NS_IMETHOD GetDataIID(nsID **aDataIID) = 0;
1617 : NS_SCRIPTABLE NS_IMETHOD SetDataIID(const nsID *aDataIID) = 0;
1618 :
1619 : /* string toString (); */
1620 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) = 0;
1621 :
1622 : };
1623 :
1624 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsInterfacePointer, NS_ISUPPORTSINTERFACEPOINTER_IID)
1625 :
1626 : /* Use this macro when declaring classes that implement this interface. */
1627 : #define NS_DECL_NSISUPPORTSINTERFACEPOINTER \
1628 : NS_SCRIPTABLE NS_IMETHOD GetData(nsISupports * *aData); \
1629 : NS_SCRIPTABLE NS_IMETHOD SetData(nsISupports *aData); \
1630 : NS_SCRIPTABLE NS_IMETHOD GetDataIID(nsID **aDataIID); \
1631 : NS_SCRIPTABLE NS_IMETHOD SetDataIID(const nsID *aDataIID); \
1632 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM);
1633 :
1634 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1635 : #define NS_FORWARD_NSISUPPORTSINTERFACEPOINTER(_to) \
1636 : NS_SCRIPTABLE NS_IMETHOD GetData(nsISupports * *aData) { return _to GetData(aData); } \
1637 : NS_SCRIPTABLE NS_IMETHOD SetData(nsISupports *aData) { return _to SetData(aData); } \
1638 : NS_SCRIPTABLE NS_IMETHOD GetDataIID(nsID **aDataIID) { return _to GetDataIID(aDataIID); } \
1639 : NS_SCRIPTABLE NS_IMETHOD SetDataIID(const nsID *aDataIID) { return _to SetDataIID(aDataIID); } \
1640 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return _to ToString(_retval); }
1641 :
1642 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1643 : #define NS_FORWARD_SAFE_NSISUPPORTSINTERFACEPOINTER(_to) \
1644 : NS_SCRIPTABLE NS_IMETHOD GetData(nsISupports * *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
1645 : NS_SCRIPTABLE NS_IMETHOD SetData(nsISupports *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
1646 : NS_SCRIPTABLE NS_IMETHOD GetDataIID(nsID **aDataIID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataIID(aDataIID); } \
1647 : NS_SCRIPTABLE NS_IMETHOD SetDataIID(const nsID *aDataIID) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataIID(aDataIID); } \
1648 : NS_SCRIPTABLE NS_IMETHOD ToString(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
1649 :
1650 : #if 0
1651 : /* Use the code below as a template for the implementation class for this interface. */
1652 :
1653 : /* Header file */
1654 : class nsSupportsInterfacePointer : public nsISupportsInterfacePointer
1655 : {
1656 : public:
1657 : NS_DECL_ISUPPORTS
1658 : NS_DECL_NSISUPPORTSINTERFACEPOINTER
1659 :
1660 : nsSupportsInterfacePointer();
1661 :
1662 : private:
1663 : ~nsSupportsInterfacePointer();
1664 :
1665 : protected:
1666 : /* additional members */
1667 : };
1668 :
1669 : /* Implementation file */
1670 : NS_IMPL_ISUPPORTS1(nsSupportsInterfacePointer, nsISupportsInterfacePointer)
1671 :
1672 : nsSupportsInterfacePointer::nsSupportsInterfacePointer()
1673 : {
1674 : /* member initializers and constructor code */
1675 : }
1676 :
1677 : nsSupportsInterfacePointer::~nsSupportsInterfacePointer()
1678 : {
1679 : /* destructor code */
1680 : }
1681 :
1682 : /* attribute nsISupports data; */
1683 : NS_IMETHODIMP nsSupportsInterfacePointer::GetData(nsISupports * *aData)
1684 : {
1685 : return NS_ERROR_NOT_IMPLEMENTED;
1686 : }
1687 : NS_IMETHODIMP nsSupportsInterfacePointer::SetData(nsISupports *aData)
1688 : {
1689 : return NS_ERROR_NOT_IMPLEMENTED;
1690 : }
1691 :
1692 : /* attribute nsIDPtr dataIID; */
1693 : NS_IMETHODIMP nsSupportsInterfacePointer::GetDataIID(nsID **aDataIID)
1694 : {
1695 : return NS_ERROR_NOT_IMPLEMENTED;
1696 : }
1697 : NS_IMETHODIMP nsSupportsInterfacePointer::SetDataIID(const nsID *aDataIID)
1698 : {
1699 : return NS_ERROR_NOT_IMPLEMENTED;
1700 : }
1701 :
1702 : /* string toString (); */
1703 : NS_IMETHODIMP nsSupportsInterfacePointer::ToString(char * *_retval NS_OUTPARAM)
1704 : {
1705 : return NS_ERROR_NOT_IMPLEMENTED;
1706 : }
1707 :
1708 : /* End of implementation class template. */
1709 : #endif
1710 :
1711 :
1712 : #endif /* __gen_nsISupportsPrimitives_h__ */
|