2 * DO NOT EDIT. THIS FILE IS GENERATED FROM test.idl
9 #ifndef __gen_nsISupports_h__
10 #include "nsISupports.h"
13 /* For IDL files that don't want to include root IDL files. */
18 /* starting interface: testCallback */
19 #define TESTCALLBACK_IID_STR "75d2225d-0a67-4dbc-91de-78319594cce8"
21 #define TESTCALLBACK_IID \
22 {0x75d2225d, 0x0a67, 0x4dbc, \
23 { 0x91, 0xde, 0x78, 0x31, 0x95, 0x94, 0xcc, 0xe8 }}
25 class NS_NO_VTABLE testCallback
: public nsISupports
{
28 NS_DEFINE_STATIC_IID_ACCESSOR(TESTCALLBACK_IID
)
31 NS_IMETHOD
Call(void) = 0;
35 /* Use this macro when declaring classes that implement this interface. */
36 #define NS_DECL_TESTCALLBACK \
37 NS_IMETHOD Call(void);
39 /* Use this macro to declare functions that forward the behavior of this interface to another object. */
40 #define NS_FORWARD_TESTCALLBACK(_to) \
41 NS_IMETHOD Call(void) { return _to Call(); }
43 /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
44 #define NS_FORWARD_SAFE_TESTCALLBACK(_to) \
45 NS_IMETHOD Call(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Call(); }
48 /* Use the code below as a template for the implementation class for this interface. */
51 class _MYCLASS_
: public testCallback
59 /* additional members */
62 /* Implementation file */
63 NS_IMPL_ISUPPORTS1(_MYCLASS_
, testCallback
)
65 _MYCLASS_::_MYCLASS_()
67 /* member initializers and constructor code */
70 _MYCLASS_::~_MYCLASS_()
76 NS_IMETHODIMP
_MYCLASS_::Call()
78 return NS_ERROR_NOT_IMPLEMENTED
;
81 /* End of implementation class template. */
85 /* starting interface: test */
86 #define TEST_IID_STR "1afbcf6a-e23f-4e12-b191-4c0a76cd9cec"
89 {0x1afbcf6a, 0xe23f, 0x4e12, \
90 { 0xb1, 0x91, 0x4c, 0x0a, 0x76, 0xcd, 0x9c, 0xec }}
92 class NS_NO_VTABLE test
: public nsISupports
{
95 NS_DEFINE_STATIC_IID_ACCESSOR(TEST_IID
)
97 /* void say (in string sayIt); */
98 NS_IMETHOD
Say(const char *sayIt
) = 0;
100 /* void shout (in string shoutIt); */
101 NS_IMETHOD
Shout(const char *shoutIt
) = 0;
103 /* void poke (in string with); */
104 NS_IMETHOD
Poke(const char *with
) = 0;
106 /* PRInt32 add (in PRInt32 a, in PRInt32 b); */
107 NS_IMETHOD
Add(PRInt32 a
, PRInt32 b
, PRInt32
*_retval
) = 0;
109 /* string peek (); */
110 NS_IMETHOD
Peek(char **_retval
) = 0;
112 /* void callback (in testCallback cb); */
113 NS_IMETHOD
Callback(testCallback
*cb
) = 0;
115 /* attribute PRInt32 intProp; */
116 NS_IMETHOD
GetIntProp(PRInt32
*aIntProp
) = 0;
117 NS_IMETHOD
SetIntProp(PRInt32 aIntProp
) = 0;
119 /* readonly attribute PRInt32 roIntProp; */
120 NS_IMETHOD
GetRoIntProp(PRInt32
*aRoIntProp
) = 0;
124 /* Use this macro when declaring classes that implement this interface. */
125 #define NS_DECL_TEST \
126 NS_IMETHOD Say(const char *sayIt); \
127 NS_IMETHOD Shout(const char *shoutIt); \
128 NS_IMETHOD Poke(const char *with); \
129 NS_IMETHOD Add(PRInt32 a, PRInt32 b, PRInt32 *_retval); \
130 NS_IMETHOD Peek(char **_retval); \
131 NS_IMETHOD Callback(testCallback *cb); \
132 NS_IMETHOD GetIntProp(PRInt32 *aIntProp); \
133 NS_IMETHOD SetIntProp(PRInt32 aIntProp); \
134 NS_IMETHOD GetRoIntProp(PRInt32 *aRoIntProp);
136 /* Use this macro to declare functions that forward the behavior of this interface to another object. */
137 #define NS_FORWARD_TEST(_to) \
138 NS_IMETHOD Say(const char *sayIt) { return _to Say(sayIt); } \
139 NS_IMETHOD Shout(const char *shoutIt) { return _to Shout(shoutIt); } \
140 NS_IMETHOD Poke(const char *with) { return _to Poke(with); } \
141 NS_IMETHOD Add(PRInt32 a, PRInt32 b, PRInt32 *_retval) { return _to Add(a, b, _retval); } \
142 NS_IMETHOD Peek(char **_retval) { return _to Peek(_retval); } \
143 NS_IMETHOD Callback(testCallback *cb) { return _to Callback(cb); } \
144 NS_IMETHOD GetIntProp(PRInt32 *aIntProp) { return _to GetIntProp(aIntProp); } \
145 NS_IMETHOD SetIntProp(PRInt32 aIntProp) { return _to SetIntProp(aIntProp); } \
146 NS_IMETHOD GetRoIntProp(PRInt32 *aRoIntProp) { return _to GetRoIntProp(aRoIntProp); }
148 /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
149 #define NS_FORWARD_SAFE_TEST(_to) \
150 NS_IMETHOD Say(const char *sayIt) { return !_to ? NS_ERROR_NULL_POINTER : _to->Say(sayIt); } \
151 NS_IMETHOD Shout(const char *shoutIt) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shout(shoutIt); } \
152 NS_IMETHOD Poke(const char *with) { return !_to ? NS_ERROR_NULL_POINTER : _to->Poke(with); } \
153 NS_IMETHOD Add(PRInt32 a, PRInt32 b, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(a, b, _retval); } \
154 NS_IMETHOD Peek(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Peek(_retval); } \
155 NS_IMETHOD Callback(testCallback *cb) { return !_to ? NS_ERROR_NULL_POINTER : _to->Callback(cb); } \
156 NS_IMETHOD GetIntProp(PRInt32 *aIntProp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntProp(aIntProp); } \
157 NS_IMETHOD SetIntProp(PRInt32 aIntProp) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntProp(aIntProp); } \
158 NS_IMETHOD GetRoIntProp(PRInt32 *aRoIntProp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoIntProp(aRoIntProp); }
161 /* Use the code below as a template for the implementation class for this interface. */
164 class _MYCLASS_
: public test
171 virtual ~_MYCLASS_();
172 /* additional members */
175 /* Implementation file */
176 NS_IMPL_ISUPPORTS1(_MYCLASS_
, test
)
178 _MYCLASS_::_MYCLASS_()
180 /* member initializers and constructor code */
183 _MYCLASS_::~_MYCLASS_()
185 /* destructor code */
188 /* void say (in string sayIt); */
189 NS_IMETHODIMP
_MYCLASS_::Say(const char *sayIt
)
191 return NS_ERROR_NOT_IMPLEMENTED
;
194 /* void shout (in string shoutIt); */
195 NS_IMETHODIMP
_MYCLASS_::Shout(const char *shoutIt
)
197 return NS_ERROR_NOT_IMPLEMENTED
;
200 /* void poke (in string with); */
201 NS_IMETHODIMP
_MYCLASS_::Poke(const char *with
)
203 return NS_ERROR_NOT_IMPLEMENTED
;
206 /* PRInt32 add (in PRInt32 a, in PRInt32 b); */
207 NS_IMETHODIMP
_MYCLASS_::Add(PRInt32 a
, PRInt32 b
, PRInt32
*_retval
)
209 return NS_ERROR_NOT_IMPLEMENTED
;
212 /* string peek (); */
213 NS_IMETHODIMP
_MYCLASS_::Peek(char **_retval
)
215 return NS_ERROR_NOT_IMPLEMENTED
;
218 /* void callback (in testCallback cb); */
219 NS_IMETHODIMP
_MYCLASS_::Callback(testCallback
*cb
)
221 return NS_ERROR_NOT_IMPLEMENTED
;
224 /* attribute PRInt32 intProp; */
225 NS_IMETHODIMP
_MYCLASS_::GetIntProp(PRInt32
*aIntProp
)
227 return NS_ERROR_NOT_IMPLEMENTED
;
229 NS_IMETHODIMP
_MYCLASS_::SetIntProp(PRInt32 aIntProp
)
231 return NS_ERROR_NOT_IMPLEMENTED
;
234 /* readonly attribute PRInt32 roIntProp; */
235 NS_IMETHODIMP
_MYCLASS_::GetRoIntProp(PRInt32
*aRoIntProp
)
237 return NS_ERROR_NOT_IMPLEMENTED
;
240 /* End of implementation class template. */
244 /* starting interface: testString */
245 #define TESTSTRING_IID_STR "5a1f21a2-8aa3-4147-a808-1e1a422dcb76"
247 #define TESTSTRING_IID \
248 {0x5a1f21a2, 0x8aa3, 0x4147, \
249 { 0xa8, 0x08, 0x1e, 0x1a, 0x42, 0x2d, 0xcb, 0x76 }}
251 class NS_NO_VTABLE testString
: public nsISupports
{
254 NS_DEFINE_STATIC_IID_ACCESSOR(TESTSTRING_IID
)
256 /* void say (in string sayIt); */
257 NS_IMETHOD
Say(const char *sayIt
) = 0;
261 /* Use this macro when declaring classes that implement this interface. */
262 #define NS_DECL_TESTSTRING \
263 NS_IMETHOD Say(const char *sayIt);
265 /* Use this macro to declare functions that forward the behavior of this interface to another object. */
266 #define NS_FORWARD_TESTSTRING(_to) \
267 NS_IMETHOD Say(const char *sayIt) { return _to Say(sayIt); }
269 /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
270 #define NS_FORWARD_SAFE_TESTSTRING(_to) \
271 NS_IMETHOD Say(const char *sayIt) { return !_to ? NS_ERROR_NULL_POINTER : _to->Say(sayIt); }
274 /* Use the code below as a template for the implementation class for this interface. */
277 class _MYCLASS_
: public testString
284 virtual ~_MYCLASS_();
285 /* additional members */
288 /* Implementation file */
289 NS_IMPL_ISUPPORTS1(_MYCLASS_
, testString
)
291 _MYCLASS_::_MYCLASS_()
293 /* member initializers and constructor code */
296 _MYCLASS_::~_MYCLASS_()
298 /* destructor code */
301 /* void say (in string sayIt); */
302 NS_IMETHODIMP
_MYCLASS_::Say(const char *sayIt
)
304 return NS_ERROR_NOT_IMPLEMENTED
;
307 /* End of implementation class template. */
311 /* starting interface: testInt */
312 #define TESTINT_IID_STR "5a1f21a2-8aa3-4147-a808-1e1a422dcb77"
314 #define TESTINT_IID \
315 {0x5a1f21a2, 0x8aa3, 0x4147, \
316 { 0xa8, 0x08, 0x1e, 0x1a, 0x42, 0x2d, 0xcb, 0x77 }}
318 class NS_NO_VTABLE testInt
: public nsISupports
{
321 NS_DEFINE_STATIC_IID_ACCESSOR(TESTINT_IID
)
323 /* void add (in PRInt32 a, in PRInt32 b); */
324 NS_IMETHOD
Add(PRInt32 a
, PRInt32 b
) = 0;
328 /* Use this macro when declaring classes that implement this interface. */
329 #define NS_DECL_TESTINT \
330 NS_IMETHOD Add(PRInt32 a, PRInt32 b);
332 /* Use this macro to declare functions that forward the behavior of this interface to another object. */
333 #define NS_FORWARD_TESTINT(_to) \
334 NS_IMETHOD Add(PRInt32 a, PRInt32 b) { return _to Add(a, b); }
336 /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
337 #define NS_FORWARD_SAFE_TESTINT(_to) \
338 NS_IMETHOD Add(PRInt32 a, PRInt32 b) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(a, b); }
341 /* Use the code below as a template for the implementation class for this interface. */
344 class _MYCLASS_
: public testInt
351 virtual ~_MYCLASS_();
352 /* additional members */
355 /* Implementation file */
356 NS_IMPL_ISUPPORTS1(_MYCLASS_
, testInt
)
358 _MYCLASS_::_MYCLASS_()
360 /* member initializers and constructor code */
363 _MYCLASS_::~_MYCLASS_()
365 /* destructor code */
368 /* void add (in PRInt32 a, in PRInt32 b); */
369 NS_IMETHODIMP
_MYCLASS_::Add(PRInt32 a
, PRInt32 b
)
371 return NS_ERROR_NOT_IMPLEMENTED
;
374 /* End of implementation class template. */
378 #endif /* __gen_test_h__ */