1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/rdf/base/idl/nsIRDFLiteral.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFLiteral_h__
6 : #define __gen_nsIRDFLiteral_h__
7 :
8 :
9 : #ifndef __gen_nsIRDFNode_h__
10 : #include "nsIRDFNode.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 : #include "nscore.h" // for PRUnichar
18 :
19 : /* starting interface: nsIRDFLiteral */
20 : #define NS_IRDFLITERAL_IID_STR "e0c493d2-9542-11d2-8eb8-00805f29f370"
21 :
22 : #define NS_IRDFLITERAL_IID \
23 : {0xe0c493d2, 0x9542, 0x11d2, \
24 : { 0x8e, 0xb8, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
25 :
26 9344 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFLiteral : public nsIRDFNode {
27 : public:
28 :
29 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFLITERAL_IID)
30 :
31 : /* readonly attribute wstring Value; */
32 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue) = 0;
33 :
34 : /* [noscript] void GetValueConst ([shared] out wstring aConstValue); */
35 : NS_IMETHOD GetValueConst(const PRUnichar * *aConstValue NS_OUTPARAM) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFLiteral, NS_IRDFLITERAL_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIRDFLITERAL \
43 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue); \
44 : NS_IMETHOD GetValueConst(const PRUnichar * *aConstValue NS_OUTPARAM);
45 :
46 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
47 : #define NS_FORWARD_NSIRDFLITERAL(_to) \
48 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue) { return _to GetValue(aValue); } \
49 : NS_IMETHOD GetValueConst(const PRUnichar * *aConstValue NS_OUTPARAM) { return _to GetValueConst(aConstValue); }
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
52 : #define NS_FORWARD_SAFE_NSIRDFLITERAL(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
54 : NS_IMETHOD GetValueConst(const PRUnichar * *aConstValue NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueConst(aConstValue); }
55 :
56 : #if 0
57 : /* Use the code below as a template for the implementation class for this interface. */
58 :
59 : /* Header file */
60 : class nsRDFLiteral : public nsIRDFLiteral
61 : {
62 : public:
63 : NS_DECL_ISUPPORTS
64 : NS_DECL_NSIRDFLITERAL
65 :
66 : nsRDFLiteral();
67 :
68 : private:
69 : ~nsRDFLiteral();
70 :
71 : protected:
72 : /* additional members */
73 : };
74 :
75 : /* Implementation file */
76 : NS_IMPL_ISUPPORTS1(nsRDFLiteral, nsIRDFLiteral)
77 :
78 : nsRDFLiteral::nsRDFLiteral()
79 : {
80 : /* member initializers and constructor code */
81 : }
82 :
83 : nsRDFLiteral::~nsRDFLiteral()
84 : {
85 : /* destructor code */
86 : }
87 :
88 : /* readonly attribute wstring Value; */
89 : NS_IMETHODIMP nsRDFLiteral::GetValue(PRUnichar * *aValue)
90 : {
91 : return NS_ERROR_NOT_IMPLEMENTED;
92 : }
93 :
94 : /* [noscript] void GetValueConst ([shared] out wstring aConstValue); */
95 : NS_IMETHODIMP nsRDFLiteral::GetValueConst(const PRUnichar * *aConstValue NS_OUTPARAM)
96 : {
97 : return NS_ERROR_NOT_IMPLEMENTED;
98 : }
99 :
100 : /* End of implementation class template. */
101 : #endif
102 :
103 :
104 : /* starting interface: nsIRDFDate */
105 : #define NS_IRDFDATE_IID_STR "e13a24e1-c77a-11d2-80be-006097b76b8e"
106 :
107 : #define NS_IRDFDATE_IID \
108 : {0xe13a24e1, 0xc77a, 0x11d2, \
109 : { 0x80, 0xbe, 0x00, 0x60, 0x97, 0xb7, 0x6b, 0x8e }}
110 :
111 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFDate : public nsIRDFNode {
112 : public:
113 :
114 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFDATE_IID)
115 :
116 : /* readonly attribute long long Value; */
117 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt64 *aValue) = 0;
118 :
119 : };
120 :
121 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFDate, NS_IRDFDATE_IID)
122 :
123 : /* Use this macro when declaring classes that implement this interface. */
124 : #define NS_DECL_NSIRDFDATE \
125 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt64 *aValue);
126 :
127 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
128 : #define NS_FORWARD_NSIRDFDATE(_to) \
129 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt64 *aValue) { return _to GetValue(aValue); }
130 :
131 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
132 : #define NS_FORWARD_SAFE_NSIRDFDATE(_to) \
133 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt64 *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); }
134 :
135 : #if 0
136 : /* Use the code below as a template for the implementation class for this interface. */
137 :
138 : /* Header file */
139 : class nsRDFDate : public nsIRDFDate
140 : {
141 : public:
142 : NS_DECL_ISUPPORTS
143 : NS_DECL_NSIRDFDATE
144 :
145 : nsRDFDate();
146 :
147 : private:
148 : ~nsRDFDate();
149 :
150 : protected:
151 : /* additional members */
152 : };
153 :
154 : /* Implementation file */
155 : NS_IMPL_ISUPPORTS1(nsRDFDate, nsIRDFDate)
156 :
157 : nsRDFDate::nsRDFDate()
158 : {
159 : /* member initializers and constructor code */
160 : }
161 :
162 : nsRDFDate::~nsRDFDate()
163 : {
164 : /* destructor code */
165 : }
166 :
167 : /* readonly attribute long long Value; */
168 : NS_IMETHODIMP nsRDFDate::GetValue(PRInt64 *aValue)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* End of implementation class template. */
174 : #endif
175 :
176 :
177 : /* starting interface: nsIRDFInt */
178 : #define NS_IRDFINT_IID_STR "e13a24e3-c77a-11d2-80be-006097b76b8e"
179 :
180 : #define NS_IRDFINT_IID \
181 : {0xe13a24e3, 0xc77a, 0x11d2, \
182 : { 0x80, 0xbe, 0x00, 0x60, 0x97, 0xb7, 0x6b, 0x8e }}
183 :
184 8 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFInt : public nsIRDFNode {
185 : public:
186 :
187 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFINT_IID)
188 :
189 : /* readonly attribute long Value; */
190 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt32 *aValue) = 0;
191 :
192 : };
193 :
194 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFInt, NS_IRDFINT_IID)
195 :
196 : /* Use this macro when declaring classes that implement this interface. */
197 : #define NS_DECL_NSIRDFINT \
198 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt32 *aValue);
199 :
200 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
201 : #define NS_FORWARD_NSIRDFINT(_to) \
202 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt32 *aValue) { return _to GetValue(aValue); }
203 :
204 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
205 : #define NS_FORWARD_SAFE_NSIRDFINT(_to) \
206 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRInt32 *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); }
207 :
208 : #if 0
209 : /* Use the code below as a template for the implementation class for this interface. */
210 :
211 : /* Header file */
212 : class nsRDFInt : public nsIRDFInt
213 : {
214 : public:
215 : NS_DECL_ISUPPORTS
216 : NS_DECL_NSIRDFINT
217 :
218 : nsRDFInt();
219 :
220 : private:
221 : ~nsRDFInt();
222 :
223 : protected:
224 : /* additional members */
225 : };
226 :
227 : /* Implementation file */
228 : NS_IMPL_ISUPPORTS1(nsRDFInt, nsIRDFInt)
229 :
230 : nsRDFInt::nsRDFInt()
231 : {
232 : /* member initializers and constructor code */
233 : }
234 :
235 : nsRDFInt::~nsRDFInt()
236 : {
237 : /* destructor code */
238 : }
239 :
240 : /* readonly attribute long Value; */
241 : NS_IMETHODIMP nsRDFInt::GetValue(PRInt32 *aValue)
242 : {
243 : return NS_ERROR_NOT_IMPLEMENTED;
244 : }
245 :
246 : /* End of implementation class template. */
247 : #endif
248 :
249 :
250 : /* starting interface: nsIRDFBlob */
251 : #define NS_IRDFBLOB_IID_STR "237f85a2-1dd2-11b2-94af-8122582fc45e"
252 :
253 : #define NS_IRDFBLOB_IID \
254 : {0x237f85a2, 0x1dd2, 0x11b2, \
255 : { 0x94, 0xaf, 0x81, 0x22, 0x58, 0x2f, 0xc4, 0x5e }}
256 :
257 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFBlob : public nsIRDFNode {
258 : public:
259 :
260 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFBLOB_IID)
261 :
262 : /* [noscript] readonly attribute const_octet_ptr value; */
263 : NS_IMETHOD GetValue(const PRUint8 **aValue) = 0;
264 :
265 : /* readonly attribute long length; */
266 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
267 :
268 : };
269 :
270 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFBlob, NS_IRDFBLOB_IID)
271 :
272 : /* Use this macro when declaring classes that implement this interface. */
273 : #define NS_DECL_NSIRDFBLOB \
274 : NS_IMETHOD GetValue(const PRUint8 **aValue); \
275 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength);
276 :
277 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
278 : #define NS_FORWARD_NSIRDFBLOB(_to) \
279 : NS_IMETHOD GetValue(const PRUint8 **aValue) { return _to GetValue(aValue); } \
280 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); }
281 :
282 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
283 : #define NS_FORWARD_SAFE_NSIRDFBLOB(_to) \
284 : NS_IMETHOD GetValue(const PRUint8 **aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
285 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); }
286 :
287 : #if 0
288 : /* Use the code below as a template for the implementation class for this interface. */
289 :
290 : /* Header file */
291 : class nsRDFBlob : public nsIRDFBlob
292 : {
293 : public:
294 : NS_DECL_ISUPPORTS
295 : NS_DECL_NSIRDFBLOB
296 :
297 : nsRDFBlob();
298 :
299 : private:
300 : ~nsRDFBlob();
301 :
302 : protected:
303 : /* additional members */
304 : };
305 :
306 : /* Implementation file */
307 : NS_IMPL_ISUPPORTS1(nsRDFBlob, nsIRDFBlob)
308 :
309 : nsRDFBlob::nsRDFBlob()
310 : {
311 : /* member initializers and constructor code */
312 : }
313 :
314 : nsRDFBlob::~nsRDFBlob()
315 : {
316 : /* destructor code */
317 : }
318 :
319 : /* [noscript] readonly attribute const_octet_ptr value; */
320 : NS_IMETHODIMP nsRDFBlob::GetValue(const PRUint8 **aValue)
321 : {
322 : return NS_ERROR_NOT_IMPLEMENTED;
323 : }
324 :
325 : /* readonly attribute long length; */
326 : NS_IMETHODIMP nsRDFBlob::GetLength(PRInt32 *aLength)
327 : {
328 : return NS_ERROR_NOT_IMPLEMENTED;
329 : }
330 :
331 : /* End of implementation class template. */
332 : #endif
333 :
334 :
335 : #endif /* __gen_nsIRDFLiteral_h__ */
|