1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/js/xpconnect/tests/idl/xpctest_attributes.idl
3 : */
4 :
5 : #ifndef __gen_xpctest_attributes_h__
6 : #define __gen_xpctest_attributes_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: nsIXPCTestObjectReadOnly */
19 : #define NS_IXPCTESTOBJECTREADONLY_IID_STR "29e950a0-0134-44bc-b947-5e0ee95c8f7e"
20 :
21 : #define NS_IXPCTESTOBJECTREADONLY_IID \
22 : {0x29e950a0, 0x0134, 0x44bc, \
23 : { 0xb9, 0x47, 0x5e, 0x0e, 0xe9, 0x5c, 0x8f, 0x7e }}
24 :
25 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXPCTestObjectReadOnly : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCTESTOBJECTREADONLY_IID)
29 :
30 : /* readonly attribute string strReadOnly; */
31 : NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly) = 0;
32 :
33 : /* readonly attribute boolean boolReadOnly; */
34 : NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly) = 0;
35 :
36 : /* readonly attribute short shortReadOnly; */
37 : NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly) = 0;
38 :
39 : /* readonly attribute long longReadOnly; */
40 : NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly) = 0;
41 :
42 : /* readonly attribute float floatReadOnly; */
43 : NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly) = 0;
44 :
45 : /* readonly attribute char charReadOnly; */
46 : NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCTestObjectReadOnly, NS_IXPCTESTOBJECTREADONLY_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSIXPCTESTOBJECTREADONLY \
54 : NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly); \
55 : NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly); \
56 : NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly); \
57 : NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly); \
58 : NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly); \
59 : NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSIXPCTESTOBJECTREADONLY(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly) { return _to GetStrReadOnly(aStrReadOnly); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly) { return _to GetBoolReadOnly(aBoolReadOnly); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly) { return _to GetShortReadOnly(aShortReadOnly); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly) { return _to GetLongReadOnly(aLongReadOnly); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly) { return _to GetFloatReadOnly(aFloatReadOnly); } \
68 : NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly) { return _to GetCharReadOnly(aCharReadOnly); }
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71 : #define NS_FORWARD_SAFE_NSIXPCTESTOBJECTREADONLY(_to) \
72 : NS_SCRIPTABLE NS_IMETHOD GetStrReadOnly(char * *aStrReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrReadOnly(aStrReadOnly); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetBoolReadOnly(bool *aBoolReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolReadOnly(aBoolReadOnly); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetShortReadOnly(PRInt16 *aShortReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShortReadOnly(aShortReadOnly); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetLongReadOnly(PRInt32 *aLongReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongReadOnly(aLongReadOnly); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetFloatReadOnly(float *aFloatReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatReadOnly(aFloatReadOnly); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetCharReadOnly(char *aCharReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharReadOnly(aCharReadOnly); }
78 :
79 : #if 0
80 : /* Use the code below as a template for the implementation class for this interface. */
81 :
82 : /* Header file */
83 : class nsXPCTestObjectReadOnly : public nsIXPCTestObjectReadOnly
84 : {
85 : public:
86 : NS_DECL_ISUPPORTS
87 : NS_DECL_NSIXPCTESTOBJECTREADONLY
88 :
89 : nsXPCTestObjectReadOnly();
90 :
91 : private:
92 : ~nsXPCTestObjectReadOnly();
93 :
94 : protected:
95 : /* additional members */
96 : };
97 :
98 : /* Implementation file */
99 : NS_IMPL_ISUPPORTS1(nsXPCTestObjectReadOnly, nsIXPCTestObjectReadOnly)
100 :
101 : nsXPCTestObjectReadOnly::nsXPCTestObjectReadOnly()
102 : {
103 : /* member initializers and constructor code */
104 : }
105 :
106 : nsXPCTestObjectReadOnly::~nsXPCTestObjectReadOnly()
107 : {
108 : /* destructor code */
109 : }
110 :
111 : /* readonly attribute string strReadOnly; */
112 : NS_IMETHODIMP nsXPCTestObjectReadOnly::GetStrReadOnly(char * *aStrReadOnly)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* readonly attribute boolean boolReadOnly; */
118 : NS_IMETHODIMP nsXPCTestObjectReadOnly::GetBoolReadOnly(bool *aBoolReadOnly)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* readonly attribute short shortReadOnly; */
124 : NS_IMETHODIMP nsXPCTestObjectReadOnly::GetShortReadOnly(PRInt16 *aShortReadOnly)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* readonly attribute long longReadOnly; */
130 : NS_IMETHODIMP nsXPCTestObjectReadOnly::GetLongReadOnly(PRInt32 *aLongReadOnly)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* readonly attribute float floatReadOnly; */
136 : NS_IMETHODIMP nsXPCTestObjectReadOnly::GetFloatReadOnly(float *aFloatReadOnly)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* readonly attribute char charReadOnly; */
142 : NS_IMETHODIMP nsXPCTestObjectReadOnly::GetCharReadOnly(char *aCharReadOnly)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* End of implementation class template. */
148 : #endif
149 :
150 :
151 : /* starting interface: nsIXPCTestObjectReadWrite */
152 : #define NS_IXPCTESTOBJECTREADWRITE_IID_STR "492609a7-2582-436b-b0ef-92e29bb9e143"
153 :
154 : #define NS_IXPCTESTOBJECTREADWRITE_IID \
155 : {0x492609a7, 0x2582, 0x436b, \
156 : { 0xb0, 0xef, 0x92, 0xe2, 0x9b, 0xb9, 0xe1, 0x43 }}
157 :
158 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXPCTestObjectReadWrite : public nsISupports {
159 : public:
160 :
161 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCTESTOBJECTREADWRITE_IID)
162 :
163 : /* attribute string stringProperty; */
164 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty) = 0;
165 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty) = 0;
166 :
167 : /* attribute boolean booleanProperty; */
168 : NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty) = 0;
169 : NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty) = 0;
170 :
171 : /* attribute short shortProperty; */
172 : NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty) = 0;
173 : NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty) = 0;
174 :
175 : /* attribute long longProperty; */
176 : NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty) = 0;
177 : NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty) = 0;
178 :
179 : /* attribute float floatProperty; */
180 : NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty) = 0;
181 : NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty) = 0;
182 :
183 : /* attribute char charProperty; */
184 : NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty) = 0;
185 : NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty) = 0;
186 :
187 : };
188 :
189 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCTestObjectReadWrite, NS_IXPCTESTOBJECTREADWRITE_IID)
190 :
191 : /* Use this macro when declaring classes that implement this interface. */
192 : #define NS_DECL_NSIXPCTESTOBJECTREADWRITE \
193 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty); \
194 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty); \
195 : NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty); \
196 : NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty); \
197 : NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty); \
198 : NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty); \
199 : NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty); \
200 : NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty); \
201 : NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty); \
202 : NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty); \
203 : NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty); \
204 : NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty);
205 :
206 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
207 : #define NS_FORWARD_NSIXPCTESTOBJECTREADWRITE(_to) \
208 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty) { return _to GetStringProperty(aStringProperty); } \
209 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty) { return _to SetStringProperty(aStringProperty); } \
210 : NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty) { return _to GetBooleanProperty(aBooleanProperty); } \
211 : NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty) { return _to SetBooleanProperty(aBooleanProperty); } \
212 : NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty) { return _to GetShortProperty(aShortProperty); } \
213 : NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty) { return _to SetShortProperty(aShortProperty); } \
214 : NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty) { return _to GetLongProperty(aLongProperty); } \
215 : NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty) { return _to SetLongProperty(aLongProperty); } \
216 : NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty) { return _to GetFloatProperty(aFloatProperty); } \
217 : NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty) { return _to SetFloatProperty(aFloatProperty); } \
218 : NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty) { return _to GetCharProperty(aCharProperty); } \
219 : NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty) { return _to SetCharProperty(aCharProperty); }
220 :
221 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
222 : #define NS_FORWARD_SAFE_NSIXPCTESTOBJECTREADWRITE(_to) \
223 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(char * *aStringProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringProperty(aStringProperty); } \
224 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * aStringProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(aStringProperty); } \
225 : NS_SCRIPTABLE NS_IMETHOD GetBooleanProperty(bool *aBooleanProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanProperty(aBooleanProperty); } \
226 : NS_SCRIPTABLE NS_IMETHOD SetBooleanProperty(bool aBooleanProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanProperty(aBooleanProperty); } \
227 : NS_SCRIPTABLE NS_IMETHOD GetShortProperty(PRInt16 *aShortProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShortProperty(aShortProperty); } \
228 : NS_SCRIPTABLE NS_IMETHOD SetShortProperty(PRInt16 aShortProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShortProperty(aShortProperty); } \
229 : NS_SCRIPTABLE NS_IMETHOD GetLongProperty(PRInt32 *aLongProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongProperty(aLongProperty); } \
230 : NS_SCRIPTABLE NS_IMETHOD SetLongProperty(PRInt32 aLongProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLongProperty(aLongProperty); } \
231 : NS_SCRIPTABLE NS_IMETHOD GetFloatProperty(float *aFloatProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatProperty(aFloatProperty); } \
232 : NS_SCRIPTABLE NS_IMETHOD SetFloatProperty(float aFloatProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloatProperty(aFloatProperty); } \
233 : NS_SCRIPTABLE NS_IMETHOD GetCharProperty(char *aCharProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharProperty(aCharProperty); } \
234 : NS_SCRIPTABLE NS_IMETHOD SetCharProperty(char aCharProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharProperty(aCharProperty); }
235 :
236 : #if 0
237 : /* Use the code below as a template for the implementation class for this interface. */
238 :
239 : /* Header file */
240 : class nsXPCTestObjectReadWrite : public nsIXPCTestObjectReadWrite
241 : {
242 : public:
243 : NS_DECL_ISUPPORTS
244 : NS_DECL_NSIXPCTESTOBJECTREADWRITE
245 :
246 : nsXPCTestObjectReadWrite();
247 :
248 : private:
249 : ~nsXPCTestObjectReadWrite();
250 :
251 : protected:
252 : /* additional members */
253 : };
254 :
255 : /* Implementation file */
256 : NS_IMPL_ISUPPORTS1(nsXPCTestObjectReadWrite, nsIXPCTestObjectReadWrite)
257 :
258 : nsXPCTestObjectReadWrite::nsXPCTestObjectReadWrite()
259 : {
260 : /* member initializers and constructor code */
261 : }
262 :
263 : nsXPCTestObjectReadWrite::~nsXPCTestObjectReadWrite()
264 : {
265 : /* destructor code */
266 : }
267 :
268 : /* attribute string stringProperty; */
269 : NS_IMETHODIMP nsXPCTestObjectReadWrite::GetStringProperty(char * *aStringProperty)
270 : {
271 : return NS_ERROR_NOT_IMPLEMENTED;
272 : }
273 : NS_IMETHODIMP nsXPCTestObjectReadWrite::SetStringProperty(const char * aStringProperty)
274 : {
275 : return NS_ERROR_NOT_IMPLEMENTED;
276 : }
277 :
278 : /* attribute boolean booleanProperty; */
279 : NS_IMETHODIMP nsXPCTestObjectReadWrite::GetBooleanProperty(bool *aBooleanProperty)
280 : {
281 : return NS_ERROR_NOT_IMPLEMENTED;
282 : }
283 : NS_IMETHODIMP nsXPCTestObjectReadWrite::SetBooleanProperty(bool aBooleanProperty)
284 : {
285 : return NS_ERROR_NOT_IMPLEMENTED;
286 : }
287 :
288 : /* attribute short shortProperty; */
289 : NS_IMETHODIMP nsXPCTestObjectReadWrite::GetShortProperty(PRInt16 *aShortProperty)
290 : {
291 : return NS_ERROR_NOT_IMPLEMENTED;
292 : }
293 : NS_IMETHODIMP nsXPCTestObjectReadWrite::SetShortProperty(PRInt16 aShortProperty)
294 : {
295 : return NS_ERROR_NOT_IMPLEMENTED;
296 : }
297 :
298 : /* attribute long longProperty; */
299 : NS_IMETHODIMP nsXPCTestObjectReadWrite::GetLongProperty(PRInt32 *aLongProperty)
300 : {
301 : return NS_ERROR_NOT_IMPLEMENTED;
302 : }
303 : NS_IMETHODIMP nsXPCTestObjectReadWrite::SetLongProperty(PRInt32 aLongProperty)
304 : {
305 : return NS_ERROR_NOT_IMPLEMENTED;
306 : }
307 :
308 : /* attribute float floatProperty; */
309 : NS_IMETHODIMP nsXPCTestObjectReadWrite::GetFloatProperty(float *aFloatProperty)
310 : {
311 : return NS_ERROR_NOT_IMPLEMENTED;
312 : }
313 : NS_IMETHODIMP nsXPCTestObjectReadWrite::SetFloatProperty(float aFloatProperty)
314 : {
315 : return NS_ERROR_NOT_IMPLEMENTED;
316 : }
317 :
318 : /* attribute char charProperty; */
319 : NS_IMETHODIMP nsXPCTestObjectReadWrite::GetCharProperty(char *aCharProperty)
320 : {
321 : return NS_ERROR_NOT_IMPLEMENTED;
322 : }
323 : NS_IMETHODIMP nsXPCTestObjectReadWrite::SetCharProperty(char aCharProperty)
324 : {
325 : return NS_ERROR_NOT_IMPLEMENTED;
326 : }
327 :
328 : /* End of implementation class template. */
329 : #endif
330 :
331 :
332 : #endif /* __gen_xpctest_attributes_h__ */
|