PageRenderTime 58ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsISupportsPrimitives.h

http://firefox-mac-pdf.googlecode.com/
C Header | 1823 lines | 1016 code | 436 blank | 371 comment | 0 complexity | 2101cde0f11787299027e18be8118be7 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/xpcom/ds/nsISupportsPrimitives.idl
  3. */
  4. #ifndef __gen_nsISupportsPrimitives_h__
  5. #define __gen_nsISupportsPrimitives_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsISupportsPrimitive */
  14. #define NS_ISUPPORTSPRIMITIVE_IID_STR "d0d4b136-1dd1-11b2-9371-f0727ef827c0"
  15. #define NS_ISUPPORTSPRIMITIVE_IID \
  16. {0xd0d4b136, 0x1dd1, 0x11b2, \
  17. { 0x93, 0x71, 0xf0, 0x72, 0x7e, 0xf8, 0x27, 0xc0 }}
  18. /**
  19. * Primitive base interface.
  20. *
  21. * These first three are pointer types and do data copying
  22. * using the nsIMemory. Be careful!
  23. *
  24. * @status FROZEN
  25. */
  26. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPrimitive : public nsISupports {
  27. public:
  28. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRIMITIVE_IID)
  29. enum { TYPE_ID = 1U };
  30. enum { TYPE_CSTRING = 2U };
  31. enum { TYPE_STRING = 3U };
  32. enum { TYPE_PRBOOL = 4U };
  33. enum { TYPE_PRUINT8 = 5U };
  34. enum { TYPE_PRUINT16 = 6U };
  35. enum { TYPE_PRUINT32 = 7U };
  36. enum { TYPE_PRUINT64 = 8U };
  37. enum { TYPE_PRTIME = 9U };
  38. enum { TYPE_CHAR = 10U };
  39. enum { TYPE_PRINT16 = 11U };
  40. enum { TYPE_PRINT32 = 12U };
  41. enum { TYPE_PRINT64 = 13U };
  42. enum { TYPE_FLOAT = 14U };
  43. enum { TYPE_DOUBLE = 15U };
  44. enum { TYPE_VOID = 16U };
  45. enum { TYPE_INTERFACE_POINTER = 17U };
  46. /* readonly attribute unsigned short type; */
  47. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) = 0;
  48. };
  49. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPrimitive, NS_ISUPPORTSPRIMITIVE_IID)
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSISUPPORTSPRIMITIVE \
  52. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType);
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSISUPPORTSPRIMITIVE(_to) \
  55. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); }
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSISUPPORTSPRIMITIVE(_to) \
  58. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); }
  59. #if 0
  60. /* Use the code below as a template for the implementation class for this interface. */
  61. /* Header file */
  62. class nsSupportsPrimitive : public nsISupportsPrimitive
  63. {
  64. public:
  65. NS_DECL_ISUPPORTS
  66. NS_DECL_NSISUPPORTSPRIMITIVE
  67. nsSupportsPrimitive();
  68. private:
  69. ~nsSupportsPrimitive();
  70. protected:
  71. /* additional members */
  72. };
  73. /* Implementation file */
  74. NS_IMPL_ISUPPORTS1(nsSupportsPrimitive, nsISupportsPrimitive)
  75. nsSupportsPrimitive::nsSupportsPrimitive()
  76. {
  77. /* member initializers and constructor code */
  78. }
  79. nsSupportsPrimitive::~nsSupportsPrimitive()
  80. {
  81. /* destructor code */
  82. }
  83. /* readonly attribute unsigned short type; */
  84. NS_IMETHODIMP nsSupportsPrimitive::GetType(PRUint16 *aType)
  85. {
  86. return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88. /* End of implementation class template. */
  89. #endif
  90. /* starting interface: nsISupportsID */
  91. #define NS_ISUPPORTSID_IID_STR "d18290a0-4a1c-11d3-9890-006008962422"
  92. #define NS_ISUPPORTSID_IID \
  93. {0xd18290a0, 0x4a1c, 0x11d3, \
  94. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  95. /**
  96. * Scriptable storage for nsID structures
  97. *
  98. * @status FROZEN
  99. */
  100. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsID : public nsISupportsPrimitive {
  101. public:
  102. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSID_IID)
  103. /* attribute nsIDPtr data; */
  104. NS_SCRIPTABLE NS_IMETHOD GetData(nsID * *aData) = 0;
  105. NS_SCRIPTABLE NS_IMETHOD SetData(const nsID * aData) = 0;
  106. /* string toString (); */
  107. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  108. };
  109. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsID, NS_ISUPPORTSID_IID)
  110. /* Use this macro when declaring classes that implement this interface. */
  111. #define NS_DECL_NSISUPPORTSID \
  112. NS_SCRIPTABLE NS_IMETHOD GetData(nsID * *aData); \
  113. NS_SCRIPTABLE NS_IMETHOD SetData(const nsID * aData); \
  114. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  115. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  116. #define NS_FORWARD_NSISUPPORTSID(_to) \
  117. NS_SCRIPTABLE NS_IMETHOD GetData(nsID * *aData) { return _to GetData(aData); } \
  118. NS_SCRIPTABLE NS_IMETHOD SetData(const nsID * aData) { return _to SetData(aData); } \
  119. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  120. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  121. #define NS_FORWARD_SAFE_NSISUPPORTSID(_to) \
  122. NS_SCRIPTABLE NS_IMETHOD GetData(nsID * *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  123. NS_SCRIPTABLE NS_IMETHOD SetData(const nsID * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  124. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  125. #if 0
  126. /* Use the code below as a template for the implementation class for this interface. */
  127. /* Header file */
  128. class nsSupportsID : public nsISupportsID
  129. {
  130. public:
  131. NS_DECL_ISUPPORTS
  132. NS_DECL_NSISUPPORTSID
  133. nsSupportsID();
  134. private:
  135. ~nsSupportsID();
  136. protected:
  137. /* additional members */
  138. };
  139. /* Implementation file */
  140. NS_IMPL_ISUPPORTS1(nsSupportsID, nsISupportsID)
  141. nsSupportsID::nsSupportsID()
  142. {
  143. /* member initializers and constructor code */
  144. }
  145. nsSupportsID::~nsSupportsID()
  146. {
  147. /* destructor code */
  148. }
  149. /* attribute nsIDPtr data; */
  150. NS_IMETHODIMP nsSupportsID::GetData(nsID * *aData)
  151. {
  152. return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. NS_IMETHODIMP nsSupportsID::SetData(const nsID * aData)
  155. {
  156. return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158. /* string toString (); */
  159. NS_IMETHODIMP nsSupportsID::ToString(char **_retval)
  160. {
  161. return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163. /* End of implementation class template. */
  164. #endif
  165. /* starting interface: nsISupportsCString */
  166. #define NS_ISUPPORTSCSTRING_IID_STR "d65ff270-4a1c-11d3-9890-006008962422"
  167. #define NS_ISUPPORTSCSTRING_IID \
  168. {0xd65ff270, 0x4a1c, 0x11d3, \
  169. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  170. /**
  171. * Scriptable storage for ASCII strings
  172. *
  173. * @status FROZEN
  174. */
  175. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsCString : public nsISupportsPrimitive {
  176. public:
  177. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSCSTRING_IID)
  178. /* attribute ACString data; */
  179. NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData) = 0;
  180. NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData) = 0;
  181. /* string toString (); */
  182. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  183. };
  184. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsCString, NS_ISUPPORTSCSTRING_IID)
  185. /* Use this macro when declaring classes that implement this interface. */
  186. #define NS_DECL_NSISUPPORTSCSTRING \
  187. NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData); \
  188. NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData); \
  189. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  190. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  191. #define NS_FORWARD_NSISUPPORTSCSTRING(_to) \
  192. NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData) { return _to GetData(aData); } \
  193. NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData) { return _to SetData(aData); } \
  194. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  195. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  196. #define NS_FORWARD_SAFE_NSISUPPORTSCSTRING(_to) \
  197. NS_SCRIPTABLE NS_IMETHOD GetData(nsACString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  198. NS_SCRIPTABLE NS_IMETHOD SetData(const nsACString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  199. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  200. #if 0
  201. /* Use the code below as a template for the implementation class for this interface. */
  202. /* Header file */
  203. class nsSupportsCString : public nsISupportsCString
  204. {
  205. public:
  206. NS_DECL_ISUPPORTS
  207. NS_DECL_NSISUPPORTSCSTRING
  208. nsSupportsCString();
  209. private:
  210. ~nsSupportsCString();
  211. protected:
  212. /* additional members */
  213. };
  214. /* Implementation file */
  215. NS_IMPL_ISUPPORTS1(nsSupportsCString, nsISupportsCString)
  216. nsSupportsCString::nsSupportsCString()
  217. {
  218. /* member initializers and constructor code */
  219. }
  220. nsSupportsCString::~nsSupportsCString()
  221. {
  222. /* destructor code */
  223. }
  224. /* attribute ACString data; */
  225. NS_IMETHODIMP nsSupportsCString::GetData(nsACString & aData)
  226. {
  227. return NS_ERROR_NOT_IMPLEMENTED;
  228. }
  229. NS_IMETHODIMP nsSupportsCString::SetData(const nsACString & aData)
  230. {
  231. return NS_ERROR_NOT_IMPLEMENTED;
  232. }
  233. /* string toString (); */
  234. NS_IMETHODIMP nsSupportsCString::ToString(char **_retval)
  235. {
  236. return NS_ERROR_NOT_IMPLEMENTED;
  237. }
  238. /* End of implementation class template. */
  239. #endif
  240. /* starting interface: nsISupportsString */
  241. #define NS_ISUPPORTSSTRING_IID_STR "d79dc970-4a1c-11d3-9890-006008962422"
  242. #define NS_ISUPPORTSSTRING_IID \
  243. {0xd79dc970, 0x4a1c, 0x11d3, \
  244. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  245. /**
  246. * Scriptable storage for Unicode strings
  247. *
  248. * @status FROZEN
  249. */
  250. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsString : public nsISupportsPrimitive {
  251. public:
  252. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSSTRING_IID)
  253. /* attribute AString data; */
  254. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) = 0;
  255. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) = 0;
  256. /* wstring toString (); */
  257. NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar **_retval) = 0;
  258. };
  259. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsString, NS_ISUPPORTSSTRING_IID)
  260. /* Use this macro when declaring classes that implement this interface. */
  261. #define NS_DECL_NSISUPPORTSSTRING \
  262. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData); \
  263. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData); \
  264. NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar **_retval);
  265. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  266. #define NS_FORWARD_NSISUPPORTSSTRING(_to) \
  267. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
  268. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } \
  269. NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar **_retval) { return _to ToString(_retval); }
  270. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  271. #define NS_FORWARD_SAFE_NSISUPPORTSSTRING(_to) \
  272. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  273. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  274. NS_SCRIPTABLE NS_IMETHOD ToString(PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  275. #if 0
  276. /* Use the code below as a template for the implementation class for this interface. */
  277. /* Header file */
  278. class nsSupportsString : public nsISupportsString
  279. {
  280. public:
  281. NS_DECL_ISUPPORTS
  282. NS_DECL_NSISUPPORTSSTRING
  283. nsSupportsString();
  284. private:
  285. ~nsSupportsString();
  286. protected:
  287. /* additional members */
  288. };
  289. /* Implementation file */
  290. NS_IMPL_ISUPPORTS1(nsSupportsString, nsISupportsString)
  291. nsSupportsString::nsSupportsString()
  292. {
  293. /* member initializers and constructor code */
  294. }
  295. nsSupportsString::~nsSupportsString()
  296. {
  297. /* destructor code */
  298. }
  299. /* attribute AString data; */
  300. NS_IMETHODIMP nsSupportsString::GetData(nsAString & aData)
  301. {
  302. return NS_ERROR_NOT_IMPLEMENTED;
  303. }
  304. NS_IMETHODIMP nsSupportsString::SetData(const nsAString & aData)
  305. {
  306. return NS_ERROR_NOT_IMPLEMENTED;
  307. }
  308. /* wstring toString (); */
  309. NS_IMETHODIMP nsSupportsString::ToString(PRUnichar **_retval)
  310. {
  311. return NS_ERROR_NOT_IMPLEMENTED;
  312. }
  313. /* End of implementation class template. */
  314. #endif
  315. /* starting interface: nsISupportsPRBool */
  316. #define NS_ISUPPORTSPRBOOL_IID_STR "ddc3b490-4a1c-11d3-9890-006008962422"
  317. #define NS_ISUPPORTSPRBOOL_IID \
  318. {0xddc3b490, 0x4a1c, 0x11d3, \
  319. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  320. /**
  321. * The rest are truly primitive and are passed by value
  322. */
  323. /**
  324. * Scriptable storage for booleans
  325. *
  326. * @status FROZEN
  327. */
  328. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRBool : public nsISupportsPrimitive {
  329. public:
  330. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRBOOL_IID)
  331. /* attribute PRBool data; */
  332. NS_SCRIPTABLE NS_IMETHOD GetData(PRBool *aData) = 0;
  333. NS_SCRIPTABLE NS_IMETHOD SetData(PRBool aData) = 0;
  334. /* string toString (); */
  335. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  336. };
  337. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRBool, NS_ISUPPORTSPRBOOL_IID)
  338. /* Use this macro when declaring classes that implement this interface. */
  339. #define NS_DECL_NSISUPPORTSPRBOOL \
  340. NS_SCRIPTABLE NS_IMETHOD GetData(PRBool *aData); \
  341. NS_SCRIPTABLE NS_IMETHOD SetData(PRBool aData); \
  342. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  343. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  344. #define NS_FORWARD_NSISUPPORTSPRBOOL(_to) \
  345. NS_SCRIPTABLE NS_IMETHOD GetData(PRBool *aData) { return _to GetData(aData); } \
  346. NS_SCRIPTABLE NS_IMETHOD SetData(PRBool aData) { return _to SetData(aData); } \
  347. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  348. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  349. #define NS_FORWARD_SAFE_NSISUPPORTSPRBOOL(_to) \
  350. NS_SCRIPTABLE NS_IMETHOD GetData(PRBool *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  351. NS_SCRIPTABLE NS_IMETHOD SetData(PRBool aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  352. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  353. #if 0
  354. /* Use the code below as a template for the implementation class for this interface. */
  355. /* Header file */
  356. class nsSupportsPRBool : public nsISupportsPRBool
  357. {
  358. public:
  359. NS_DECL_ISUPPORTS
  360. NS_DECL_NSISUPPORTSPRBOOL
  361. nsSupportsPRBool();
  362. private:
  363. ~nsSupportsPRBool();
  364. protected:
  365. /* additional members */
  366. };
  367. /* Implementation file */
  368. NS_IMPL_ISUPPORTS1(nsSupportsPRBool, nsISupportsPRBool)
  369. nsSupportsPRBool::nsSupportsPRBool()
  370. {
  371. /* member initializers and constructor code */
  372. }
  373. nsSupportsPRBool::~nsSupportsPRBool()
  374. {
  375. /* destructor code */
  376. }
  377. /* attribute PRBool data; */
  378. NS_IMETHODIMP nsSupportsPRBool::GetData(PRBool *aData)
  379. {
  380. return NS_ERROR_NOT_IMPLEMENTED;
  381. }
  382. NS_IMETHODIMP nsSupportsPRBool::SetData(PRBool aData)
  383. {
  384. return NS_ERROR_NOT_IMPLEMENTED;
  385. }
  386. /* string toString (); */
  387. NS_IMETHODIMP nsSupportsPRBool::ToString(char **_retval)
  388. {
  389. return NS_ERROR_NOT_IMPLEMENTED;
  390. }
  391. /* End of implementation class template. */
  392. #endif
  393. /* starting interface: nsISupportsPRUint8 */
  394. #define NS_ISUPPORTSPRUINT8_IID_STR "dec2e4e0-4a1c-11d3-9890-006008962422"
  395. #define NS_ISUPPORTSPRUINT8_IID \
  396. {0xdec2e4e0, 0x4a1c, 0x11d3, \
  397. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  398. /**
  399. * Scriptable storage for 8-bit integers
  400. *
  401. * @status FROZEN
  402. */
  403. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint8 : public nsISupportsPrimitive {
  404. public:
  405. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT8_IID)
  406. /* attribute PRUint8 data; */
  407. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData) = 0;
  408. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData) = 0;
  409. /* string toString (); */
  410. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  411. };
  412. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint8, NS_ISUPPORTSPRUINT8_IID)
  413. /* Use this macro when declaring classes that implement this interface. */
  414. #define NS_DECL_NSISUPPORTSPRUINT8 \
  415. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData); \
  416. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData); \
  417. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  418. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  419. #define NS_FORWARD_NSISUPPORTSPRUINT8(_to) \
  420. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData) { return _to GetData(aData); } \
  421. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData) { return _to SetData(aData); } \
  422. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  423. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  424. #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT8(_to) \
  425. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint8 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  426. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint8 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  427. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  428. #if 0
  429. /* Use the code below as a template for the implementation class for this interface. */
  430. /* Header file */
  431. class nsSupportsPRUint8 : public nsISupportsPRUint8
  432. {
  433. public:
  434. NS_DECL_ISUPPORTS
  435. NS_DECL_NSISUPPORTSPRUINT8
  436. nsSupportsPRUint8();
  437. private:
  438. ~nsSupportsPRUint8();
  439. protected:
  440. /* additional members */
  441. };
  442. /* Implementation file */
  443. NS_IMPL_ISUPPORTS1(nsSupportsPRUint8, nsISupportsPRUint8)
  444. nsSupportsPRUint8::nsSupportsPRUint8()
  445. {
  446. /* member initializers and constructor code */
  447. }
  448. nsSupportsPRUint8::~nsSupportsPRUint8()
  449. {
  450. /* destructor code */
  451. }
  452. /* attribute PRUint8 data; */
  453. NS_IMETHODIMP nsSupportsPRUint8::GetData(PRUint8 *aData)
  454. {
  455. return NS_ERROR_NOT_IMPLEMENTED;
  456. }
  457. NS_IMETHODIMP nsSupportsPRUint8::SetData(PRUint8 aData)
  458. {
  459. return NS_ERROR_NOT_IMPLEMENTED;
  460. }
  461. /* string toString (); */
  462. NS_IMETHODIMP nsSupportsPRUint8::ToString(char **_retval)
  463. {
  464. return NS_ERROR_NOT_IMPLEMENTED;
  465. }
  466. /* End of implementation class template. */
  467. #endif
  468. /* starting interface: nsISupportsPRUint16 */
  469. #define NS_ISUPPORTSPRUINT16_IID_STR "dfacb090-4a1c-11d3-9890-006008962422"
  470. #define NS_ISUPPORTSPRUINT16_IID \
  471. {0xdfacb090, 0x4a1c, 0x11d3, \
  472. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  473. /**
  474. * Scriptable storage for unsigned 16-bit integers
  475. *
  476. * @status FROZEN
  477. */
  478. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint16 : public nsISupportsPrimitive {
  479. public:
  480. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT16_IID)
  481. /* attribute PRUint16 data; */
  482. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData) = 0;
  483. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData) = 0;
  484. /* string toString (); */
  485. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  486. };
  487. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint16, NS_ISUPPORTSPRUINT16_IID)
  488. /* Use this macro when declaring classes that implement this interface. */
  489. #define NS_DECL_NSISUPPORTSPRUINT16 \
  490. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData); \
  491. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData); \
  492. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  493. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  494. #define NS_FORWARD_NSISUPPORTSPRUINT16(_to) \
  495. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData) { return _to GetData(aData); } \
  496. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData) { return _to SetData(aData); } \
  497. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  498. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  499. #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT16(_to) \
  500. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint16 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  501. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint16 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  502. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  503. #if 0
  504. /* Use the code below as a template for the implementation class for this interface. */
  505. /* Header file */
  506. class nsSupportsPRUint16 : public nsISupportsPRUint16
  507. {
  508. public:
  509. NS_DECL_ISUPPORTS
  510. NS_DECL_NSISUPPORTSPRUINT16
  511. nsSupportsPRUint16();
  512. private:
  513. ~nsSupportsPRUint16();
  514. protected:
  515. /* additional members */
  516. };
  517. /* Implementation file */
  518. NS_IMPL_ISUPPORTS1(nsSupportsPRUint16, nsISupportsPRUint16)
  519. nsSupportsPRUint16::nsSupportsPRUint16()
  520. {
  521. /* member initializers and constructor code */
  522. }
  523. nsSupportsPRUint16::~nsSupportsPRUint16()
  524. {
  525. /* destructor code */
  526. }
  527. /* attribute PRUint16 data; */
  528. NS_IMETHODIMP nsSupportsPRUint16::GetData(PRUint16 *aData)
  529. {
  530. return NS_ERROR_NOT_IMPLEMENTED;
  531. }
  532. NS_IMETHODIMP nsSupportsPRUint16::SetData(PRUint16 aData)
  533. {
  534. return NS_ERROR_NOT_IMPLEMENTED;
  535. }
  536. /* string toString (); */
  537. NS_IMETHODIMP nsSupportsPRUint16::ToString(char **_retval)
  538. {
  539. return NS_ERROR_NOT_IMPLEMENTED;
  540. }
  541. /* End of implementation class template. */
  542. #endif
  543. /* starting interface: nsISupportsPRUint32 */
  544. #define NS_ISUPPORTSPRUINT32_IID_STR "e01dc470-4a1c-11d3-9890-006008962422"
  545. #define NS_ISUPPORTSPRUINT32_IID \
  546. {0xe01dc470, 0x4a1c, 0x11d3, \
  547. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  548. /**
  549. * Scriptable storage for unsigned 32-bit integers
  550. *
  551. * @status FROZEN
  552. */
  553. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint32 : public nsISupportsPrimitive {
  554. public:
  555. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT32_IID)
  556. /* attribute PRUint32 data; */
  557. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData) = 0;
  558. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData) = 0;
  559. /* string toString (); */
  560. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  561. };
  562. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint32, NS_ISUPPORTSPRUINT32_IID)
  563. /* Use this macro when declaring classes that implement this interface. */
  564. #define NS_DECL_NSISUPPORTSPRUINT32 \
  565. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData); \
  566. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData); \
  567. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  568. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  569. #define NS_FORWARD_NSISUPPORTSPRUINT32(_to) \
  570. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData) { return _to GetData(aData); } \
  571. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData) { return _to SetData(aData); } \
  572. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  573. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  574. #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT32(_to) \
  575. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint32 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  576. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint32 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  577. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  578. #if 0
  579. /* Use the code below as a template for the implementation class for this interface. */
  580. /* Header file */
  581. class nsSupportsPRUint32 : public nsISupportsPRUint32
  582. {
  583. public:
  584. NS_DECL_ISUPPORTS
  585. NS_DECL_NSISUPPORTSPRUINT32
  586. nsSupportsPRUint32();
  587. private:
  588. ~nsSupportsPRUint32();
  589. protected:
  590. /* additional members */
  591. };
  592. /* Implementation file */
  593. NS_IMPL_ISUPPORTS1(nsSupportsPRUint32, nsISupportsPRUint32)
  594. nsSupportsPRUint32::nsSupportsPRUint32()
  595. {
  596. /* member initializers and constructor code */
  597. }
  598. nsSupportsPRUint32::~nsSupportsPRUint32()
  599. {
  600. /* destructor code */
  601. }
  602. /* attribute PRUint32 data; */
  603. NS_IMETHODIMP nsSupportsPRUint32::GetData(PRUint32 *aData)
  604. {
  605. return NS_ERROR_NOT_IMPLEMENTED;
  606. }
  607. NS_IMETHODIMP nsSupportsPRUint32::SetData(PRUint32 aData)
  608. {
  609. return NS_ERROR_NOT_IMPLEMENTED;
  610. }
  611. /* string toString (); */
  612. NS_IMETHODIMP nsSupportsPRUint32::ToString(char **_retval)
  613. {
  614. return NS_ERROR_NOT_IMPLEMENTED;
  615. }
  616. /* End of implementation class template. */
  617. #endif
  618. /* starting interface: nsISupportsPRUint64 */
  619. #define NS_ISUPPORTSPRUINT64_IID_STR "e13567c0-4a1c-11d3-9890-006008962422"
  620. #define NS_ISUPPORTSPRUINT64_IID \
  621. {0xe13567c0, 0x4a1c, 0x11d3, \
  622. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  623. /**
  624. * Scriptable storage for 64-bit integers
  625. *
  626. * @status FROZEN
  627. */
  628. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRUint64 : public nsISupportsPrimitive {
  629. public:
  630. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT64_IID)
  631. /* attribute PRUint64 data; */
  632. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData) = 0;
  633. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData) = 0;
  634. /* string toString (); */
  635. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  636. };
  637. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRUint64, NS_ISUPPORTSPRUINT64_IID)
  638. /* Use this macro when declaring classes that implement this interface. */
  639. #define NS_DECL_NSISUPPORTSPRUINT64 \
  640. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData); \
  641. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData); \
  642. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  643. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  644. #define NS_FORWARD_NSISUPPORTSPRUINT64(_to) \
  645. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData) { return _to GetData(aData); } \
  646. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData) { return _to SetData(aData); } \
  647. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  648. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  649. #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT64(_to) \
  650. NS_SCRIPTABLE NS_IMETHOD GetData(PRUint64 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  651. NS_SCRIPTABLE NS_IMETHOD SetData(PRUint64 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  652. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  653. #if 0
  654. /* Use the code below as a template for the implementation class for this interface. */
  655. /* Header file */
  656. class nsSupportsPRUint64 : public nsISupportsPRUint64
  657. {
  658. public:
  659. NS_DECL_ISUPPORTS
  660. NS_DECL_NSISUPPORTSPRUINT64
  661. nsSupportsPRUint64();
  662. private:
  663. ~nsSupportsPRUint64();
  664. protected:
  665. /* additional members */
  666. };
  667. /* Implementation file */
  668. NS_IMPL_ISUPPORTS1(nsSupportsPRUint64, nsISupportsPRUint64)
  669. nsSupportsPRUint64::nsSupportsPRUint64()
  670. {
  671. /* member initializers and constructor code */
  672. }
  673. nsSupportsPRUint64::~nsSupportsPRUint64()
  674. {
  675. /* destructor code */
  676. }
  677. /* attribute PRUint64 data; */
  678. NS_IMETHODIMP nsSupportsPRUint64::GetData(PRUint64 *aData)
  679. {
  680. return NS_ERROR_NOT_IMPLEMENTED;
  681. }
  682. NS_IMETHODIMP nsSupportsPRUint64::SetData(PRUint64 aData)
  683. {
  684. return NS_ERROR_NOT_IMPLEMENTED;
  685. }
  686. /* string toString (); */
  687. NS_IMETHODIMP nsSupportsPRUint64::ToString(char **_retval)
  688. {
  689. return NS_ERROR_NOT_IMPLEMENTED;
  690. }
  691. /* End of implementation class template. */
  692. #endif
  693. /* starting interface: nsISupportsPRTime */
  694. #define NS_ISUPPORTSPRTIME_IID_STR "e2563630-4a1c-11d3-9890-006008962422"
  695. #define NS_ISUPPORTSPRTIME_IID \
  696. {0xe2563630, 0x4a1c, 0x11d3, \
  697. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  698. /**
  699. * Scriptable storage for NSPR date/time values
  700. *
  701. * @status FROZEN
  702. */
  703. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRTime : public nsISupportsPrimitive {
  704. public:
  705. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRTIME_IID)
  706. /* attribute PRTime data; */
  707. NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData) = 0;
  708. NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData) = 0;
  709. /* string toString (); */
  710. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  711. };
  712. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRTime, NS_ISUPPORTSPRTIME_IID)
  713. /* Use this macro when declaring classes that implement this interface. */
  714. #define NS_DECL_NSISUPPORTSPRTIME \
  715. NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData); \
  716. NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData); \
  717. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  718. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  719. #define NS_FORWARD_NSISUPPORTSPRTIME(_to) \
  720. NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData) { return _to GetData(aData); } \
  721. NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData) { return _to SetData(aData); } \
  722. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  723. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  724. #define NS_FORWARD_SAFE_NSISUPPORTSPRTIME(_to) \
  725. NS_SCRIPTABLE NS_IMETHOD GetData(PRTime *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  726. NS_SCRIPTABLE NS_IMETHOD SetData(PRTime aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  727. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  728. #if 0
  729. /* Use the code below as a template for the implementation class for this interface. */
  730. /* Header file */
  731. class nsSupportsPRTime : public nsISupportsPRTime
  732. {
  733. public:
  734. NS_DECL_ISUPPORTS
  735. NS_DECL_NSISUPPORTSPRTIME
  736. nsSupportsPRTime();
  737. private:
  738. ~nsSupportsPRTime();
  739. protected:
  740. /* additional members */
  741. };
  742. /* Implementation file */
  743. NS_IMPL_ISUPPORTS1(nsSupportsPRTime, nsISupportsPRTime)
  744. nsSupportsPRTime::nsSupportsPRTime()
  745. {
  746. /* member initializers and constructor code */
  747. }
  748. nsSupportsPRTime::~nsSupportsPRTime()
  749. {
  750. /* destructor code */
  751. }
  752. /* attribute PRTime data; */
  753. NS_IMETHODIMP nsSupportsPRTime::GetData(PRTime *aData)
  754. {
  755. return NS_ERROR_NOT_IMPLEMENTED;
  756. }
  757. NS_IMETHODIMP nsSupportsPRTime::SetData(PRTime aData)
  758. {
  759. return NS_ERROR_NOT_IMPLEMENTED;
  760. }
  761. /* string toString (); */
  762. NS_IMETHODIMP nsSupportsPRTime::ToString(char **_retval)
  763. {
  764. return NS_ERROR_NOT_IMPLEMENTED;
  765. }
  766. /* End of implementation class template. */
  767. #endif
  768. /* starting interface: nsISupportsChar */
  769. #define NS_ISUPPORTSCHAR_IID_STR "e2b05e40-4a1c-11d3-9890-006008962422"
  770. #define NS_ISUPPORTSCHAR_IID \
  771. {0xe2b05e40, 0x4a1c, 0x11d3, \
  772. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  773. /**
  774. * Scriptable storage for single character values
  775. * (often used to store an ASCII character)
  776. *
  777. * @status FROZEN
  778. */
  779. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsChar : public nsISupportsPrimitive {
  780. public:
  781. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSCHAR_IID)
  782. /* attribute char data; */
  783. NS_SCRIPTABLE NS_IMETHOD GetData(char *aData) = 0;
  784. NS_SCRIPTABLE NS_IMETHOD SetData(char aData) = 0;
  785. /* string toString (); */
  786. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  787. };
  788. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsChar, NS_ISUPPORTSCHAR_IID)
  789. /* Use this macro when declaring classes that implement this interface. */
  790. #define NS_DECL_NSISUPPORTSCHAR \
  791. NS_SCRIPTABLE NS_IMETHOD GetData(char *aData); \
  792. NS_SCRIPTABLE NS_IMETHOD SetData(char aData); \
  793. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  794. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  795. #define NS_FORWARD_NSISUPPORTSCHAR(_to) \
  796. NS_SCRIPTABLE NS_IMETHOD GetData(char *aData) { return _to GetData(aData); } \
  797. NS_SCRIPTABLE NS_IMETHOD SetData(char aData) { return _to SetData(aData); } \
  798. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  799. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  800. #define NS_FORWARD_SAFE_NSISUPPORTSCHAR(_to) \
  801. NS_SCRIPTABLE NS_IMETHOD GetData(char *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  802. NS_SCRIPTABLE NS_IMETHOD SetData(char aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  803. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  804. #if 0
  805. /* Use the code below as a template for the implementation class for this interface. */
  806. /* Header file */
  807. class nsSupportsChar : public nsISupportsChar
  808. {
  809. public:
  810. NS_DECL_ISUPPORTS
  811. NS_DECL_NSISUPPORTSCHAR
  812. nsSupportsChar();
  813. private:
  814. ~nsSupportsChar();
  815. protected:
  816. /* additional members */
  817. };
  818. /* Implementation file */
  819. NS_IMPL_ISUPPORTS1(nsSupportsChar, nsISupportsChar)
  820. nsSupportsChar::nsSupportsChar()
  821. {
  822. /* member initializers and constructor code */
  823. }
  824. nsSupportsChar::~nsSupportsChar()
  825. {
  826. /* destructor code */
  827. }
  828. /* attribute char data; */
  829. NS_IMETHODIMP nsSupportsChar::GetData(char *aData)
  830. {
  831. return NS_ERROR_NOT_IMPLEMENTED;
  832. }
  833. NS_IMETHODIMP nsSupportsChar::SetData(char aData)
  834. {
  835. return NS_ERROR_NOT_IMPLEMENTED;
  836. }
  837. /* string toString (); */
  838. NS_IMETHODIMP nsSupportsChar::ToString(char **_retval)
  839. {
  840. return NS_ERROR_NOT_IMPLEMENTED;
  841. }
  842. /* End of implementation class template. */
  843. #endif
  844. /* starting interface: nsISupportsPRInt16 */
  845. #define NS_ISUPPORTSPRINT16_IID_STR "e30d94b0-4a1c-11d3-9890-006008962422"
  846. #define NS_ISUPPORTSPRINT16_IID \
  847. {0xe30d94b0, 0x4a1c, 0x11d3, \
  848. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  849. /**
  850. * Scriptable storage for 16-bit integers
  851. *
  852. * @status FROZEN
  853. */
  854. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRInt16 : public nsISupportsPrimitive {
  855. public:
  856. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT16_IID)
  857. /* attribute PRInt16 data; */
  858. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData) = 0;
  859. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData) = 0;
  860. /* string toString (); */
  861. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  862. };
  863. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRInt16, NS_ISUPPORTSPRINT16_IID)
  864. /* Use this macro when declaring classes that implement this interface. */
  865. #define NS_DECL_NSISUPPORTSPRINT16 \
  866. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData); \
  867. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData); \
  868. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  869. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  870. #define NS_FORWARD_NSISUPPORTSPRINT16(_to) \
  871. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData) { return _to GetData(aData); } \
  872. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData) { return _to SetData(aData); } \
  873. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  874. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  875. #define NS_FORWARD_SAFE_NSISUPPORTSPRINT16(_to) \
  876. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt16 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  877. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt16 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  878. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  879. #if 0
  880. /* Use the code below as a template for the implementation class for this interface. */
  881. /* Header file */
  882. class nsSupportsPRInt16 : public nsISupportsPRInt16
  883. {
  884. public:
  885. NS_DECL_ISUPPORTS
  886. NS_DECL_NSISUPPORTSPRINT16
  887. nsSupportsPRInt16();
  888. private:
  889. ~nsSupportsPRInt16();
  890. protected:
  891. /* additional members */
  892. };
  893. /* Implementation file */
  894. NS_IMPL_ISUPPORTS1(nsSupportsPRInt16, nsISupportsPRInt16)
  895. nsSupportsPRInt16::nsSupportsPRInt16()
  896. {
  897. /* member initializers and constructor code */
  898. }
  899. nsSupportsPRInt16::~nsSupportsPRInt16()
  900. {
  901. /* destructor code */
  902. }
  903. /* attribute PRInt16 data; */
  904. NS_IMETHODIMP nsSupportsPRInt16::GetData(PRInt16 *aData)
  905. {
  906. return NS_ERROR_NOT_IMPLEMENTED;
  907. }
  908. NS_IMETHODIMP nsSupportsPRInt16::SetData(PRInt16 aData)
  909. {
  910. return NS_ERROR_NOT_IMPLEMENTED;
  911. }
  912. /* string toString (); */
  913. NS_IMETHODIMP nsSupportsPRInt16::ToString(char **_retval)
  914. {
  915. return NS_ERROR_NOT_IMPLEMENTED;
  916. }
  917. /* End of implementation class template. */
  918. #endif
  919. /* starting interface: nsISupportsPRInt32 */
  920. #define NS_ISUPPORTSPRINT32_IID_STR "e36c5250-4a1c-11d3-9890-006008962422"
  921. #define NS_ISUPPORTSPRINT32_IID \
  922. {0xe36c5250, 0x4a1c, 0x11d3, \
  923. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  924. /**
  925. * Scriptable storage for 32-bit integers
  926. *
  927. * @status FROZEN
  928. */
  929. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRInt32 : public nsISupportsPrimitive {
  930. public:
  931. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT32_IID)
  932. /* attribute PRInt32 data; */
  933. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData) = 0;
  934. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData) = 0;
  935. /* string toString (); */
  936. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  937. };
  938. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRInt32, NS_ISUPPORTSPRINT32_IID)
  939. /* Use this macro when declaring classes that implement this interface. */
  940. #define NS_DECL_NSISUPPORTSPRINT32 \
  941. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData); \
  942. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData); \
  943. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  944. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  945. #define NS_FORWARD_NSISUPPORTSPRINT32(_to) \
  946. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData) { return _to GetData(aData); } \
  947. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData) { return _to SetData(aData); } \
  948. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  949. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  950. #define NS_FORWARD_SAFE_NSISUPPORTSPRINT32(_to) \
  951. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt32 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  952. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt32 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  953. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  954. #if 0
  955. /* Use the code below as a template for the implementation class for this interface. */
  956. /* Header file */
  957. class nsSupportsPRInt32 : public nsISupportsPRInt32
  958. {
  959. public:
  960. NS_DECL_ISUPPORTS
  961. NS_DECL_NSISUPPORTSPRINT32
  962. nsSupportsPRInt32();
  963. private:
  964. ~nsSupportsPRInt32();
  965. protected:
  966. /* additional members */
  967. };
  968. /* Implementation file */
  969. NS_IMPL_ISUPPORTS1(nsSupportsPRInt32, nsISupportsPRInt32)
  970. nsSupportsPRInt32::nsSupportsPRInt32()
  971. {
  972. /* member initializers and constructor code */
  973. }
  974. nsSupportsPRInt32::~nsSupportsPRInt32()
  975. {
  976. /* destructor code */
  977. }
  978. /* attribute PRInt32 data; */
  979. NS_IMETHODIMP nsSupportsPRInt32::GetData(PRInt32 *aData)
  980. {
  981. return NS_ERROR_NOT_IMPLEMENTED;
  982. }
  983. NS_IMETHODIMP nsSupportsPRInt32::SetData(PRInt32 aData)
  984. {
  985. return NS_ERROR_NOT_IMPLEMENTED;
  986. }
  987. /* string toString (); */
  988. NS_IMETHODIMP nsSupportsPRInt32::ToString(char **_retval)
  989. {
  990. return NS_ERROR_NOT_IMPLEMENTED;
  991. }
  992. /* End of implementation class template. */
  993. #endif
  994. /* starting interface: nsISupportsPRInt64 */
  995. #define NS_ISUPPORTSPRINT64_IID_STR "e3cb0ff0-4a1c-11d3-9890-006008962422"
  996. #define NS_ISUPPORTSPRINT64_IID \
  997. {0xe3cb0ff0, 0x4a1c, 0x11d3, \
  998. { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  999. /**
  1000. * Scriptable storage for 64-bit integers
  1001. *
  1002. * @status FROZEN
  1003. */
  1004. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPRInt64 : public nsISupportsPrimitive {
  1005. public:
  1006. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT64_IID)
  1007. /* attribute PRInt64 data; */
  1008. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData) = 0;
  1009. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData) = 0;
  1010. /* string toString (); */
  1011. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  1012. };
  1013. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPRInt64, NS_ISUPPORTSPRINT64_IID)
  1014. /* Use this macro when declaring classes that implement this interface. */
  1015. #define NS_DECL_NSISUPPORTSPRINT64 \
  1016. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData); \
  1017. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData); \
  1018. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  1019. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  1020. #define NS_FORWARD_NSISUPPORTSPRINT64(_to) \
  1021. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData) { return _to GetData(aData); } \
  1022. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData) { return _to SetData(aData); } \
  1023. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  1024. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  1025. #define NS_FORWARD_SAFE_NSISUPPORTSPRINT64(_to) \
  1026. NS_SCRIPTABLE NS_IMETHOD GetData(PRInt64 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  1027. NS_SCRIPTABLE NS_IMETHOD SetData(PRInt64 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  1028. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  1029. #if 0
  1030. /* Use the code below as a template for the implementation class for this interface. */
  1031. /* Header file */
  1032. class nsSupportsPRInt64 : public nsISupportsPRInt64
  1033. {
  1034. public:
  1035. NS_DECL_ISUPPORTS
  1036. NS_DECL_NSISUPPORTSPRINT64
  1037. nsSupportsPRInt64();
  1038. private:
  1039. ~nsSupportsPRInt64();
  1040. protected:
  1041. /* additional members */
  1042. };
  1043. /* Implementation file */
  1044. NS_IMPL_ISUPPORTS1(nsSupportsPRInt64, nsISupportsPRInt64)
  1045. nsSupportsPRInt64::nsSupportsPRInt64()
  1046. {
  1047. /* member initializers and constructor code */
  1048. }
  1049. nsSupportsPRInt64::~nsSupportsPRInt64()
  1050. {
  1051. /* destructor code */
  1052. }
  1053. /* attribute PRInt64 data; */
  1054. NS_IMETHODIMP nsSupportsPRInt64::GetData(PRInt64 *aData)
  1055. {
  1056. return NS_ERROR_NOT_IMPLEMENTED;
  1057. }
  1058. NS_IMETHODIMP nsSupportsPRInt64::SetData(PRInt64 aData)
  1059. {
  1060. return NS_ERROR_NOT_IMPLEMENTED;
  1061. }
  1062. /* string toString (); */
  1063. NS_IMETHODIMP nsSupportsPRInt64::ToString(char **_retval)
  1064. {
  1065. return NS_ERROR_NOT_IMPLEMENTED;
  1066. }
  1067. /* End of implementation class template. */
  1068. #endif
  1069. /* starting interface: nsISupportsFloat */
  1070. #define NS_ISUPPORTSFLOAT_IID_STR "abeaa390-4ac0-11d3-baea-00805f8a5dd7"
  1071. #define NS_ISUPPORTSFLOAT_IID \
  1072. {0xabeaa390, 0x4ac0, 0x11d3, \
  1073. { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
  1074. /**
  1075. * Scriptable storage for floating point numbers
  1076. *
  1077. * @status FROZEN
  1078. */
  1079. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsFloat : public nsISupportsPrimitive {
  1080. public:
  1081. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSFLOAT_IID)
  1082. /* attribute float data; */
  1083. NS_SCRIPTABLE NS_IMETHOD GetData(float *aData) = 0;
  1084. NS_SCRIPTABLE NS_IMETHOD SetData(float aData) = 0;
  1085. /* string toString (); */
  1086. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  1087. };
  1088. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsFloat, NS_ISUPPORTSFLOAT_IID)
  1089. /* Use this macro when declaring classes that implement this interface. */
  1090. #define NS_DECL_NSISUPPORTSFLOAT \
  1091. NS_SCRIPTABLE NS_IMETHOD GetData(float *aData); \
  1092. NS_SCRIPTABLE NS_IMETHOD SetData(float aData); \
  1093. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  1094. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  1095. #define NS_FORWARD_NSISUPPORTSFLOAT(_to) \
  1096. NS_SCRIPTABLE NS_IMETHOD GetData(float *aData) { return _to GetData(aData); } \
  1097. NS_SCRIPTABLE NS_IMETHOD SetData(float aData) { return _to SetData(aData); } \
  1098. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  1099. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  1100. #define NS_FORWARD_SAFE_NSISUPPORTSFLOAT(_to) \
  1101. NS_SCRIPTABLE NS_IMETHOD GetData(float *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  1102. NS_SCRIPTABLE NS_IMETHOD SetData(float aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  1103. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  1104. #if 0
  1105. /* Use the code below as a template for the implementation class for this interface. */
  1106. /* Header file */
  1107. class nsSupportsFloat : public nsISupportsFloat
  1108. {
  1109. public:
  1110. NS_DECL_ISUPPORTS
  1111. NS_DECL_NSISUPPORTSFLOAT
  1112. nsSupportsFloat();
  1113. private:
  1114. ~nsSupportsFloat();
  1115. protected:
  1116. /* additional members */
  1117. };
  1118. /* Implementation file */
  1119. NS_IMPL_ISUPPORTS1(nsSupportsFloat, nsISupportsFloat)
  1120. nsSupportsFloat::nsSupportsFloat()
  1121. {
  1122. /* member initializers and constructor code */
  1123. }
  1124. nsSupportsFloat::~nsSupportsFloat()
  1125. {
  1126. /* destructor code */
  1127. }
  1128. /* attribute float data; */
  1129. NS_IMETHODIMP nsSupportsFloat::GetData(float *aData)
  1130. {
  1131. return NS_ERROR_NOT_IMPLEMENTED;
  1132. }
  1133. NS_IMETHODIMP nsSupportsFloat::SetData(float aData)
  1134. {
  1135. return NS_ERROR_NOT_IMPLEMENTED;
  1136. }
  1137. /* string toString (); */
  1138. NS_IMETHODIMP nsSupportsFloat::ToString(char **_retval)
  1139. {
  1140. return NS_ERROR_NOT_IMPLEMENTED;
  1141. }
  1142. /* End of implementation class template. */
  1143. #endif
  1144. /* starting interface: nsISupportsDouble */
  1145. #define NS_ISUPPORTSDOUBLE_IID_STR "b32523a0-4ac0-11d3-baea-00805f8a5dd7"
  1146. #define NS_ISUPPORTSDOUBLE_IID \
  1147. {0xb32523a0, 0x4ac0, 0x11d3, \
  1148. { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
  1149. /**
  1150. * Scriptable storage for doubles
  1151. *
  1152. * @status FROZEN
  1153. */
  1154. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsDouble : public nsISupportsPrimitive {
  1155. public:
  1156. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSDOUBLE_IID)
  1157. /* attribute double data; */
  1158. NS_SCRIPTABLE NS_IMETHOD GetData(double *aData) = 0;
  1159. NS_SCRIPTABLE NS_IMETHOD SetData(double aData) = 0;
  1160. /* string toString (); */
  1161. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  1162. };
  1163. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsDouble, NS_ISUPPORTSDOUBLE_IID)
  1164. /* Use this macro when declaring classes that implement this interface. */
  1165. #define NS_DECL_NSISUPPORTSDOUBLE \
  1166. NS_SCRIPTABLE NS_IMETHOD GetData(double *aData); \
  1167. NS_SCRIPTABLE NS_IMETHOD SetData(double aData); \
  1168. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  1169. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  1170. #define NS_FORWARD_NSISUPPORTSDOUBLE(_to) \
  1171. NS_SCRIPTABLE NS_IMETHOD GetData(double *aData) { return _to GetData(aData); } \
  1172. NS_SCRIPTABLE NS_IMETHOD SetData(double aData) { return _to SetData(aData); } \
  1173. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  1174. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  1175. #define NS_FORWARD_SAFE_NSISUPPORTSDOUBLE(_to) \
  1176. NS_SCRIPTABLE NS_IMETHOD GetData(double *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  1177. NS_SCRIPTABLE NS_IMETHOD SetData(double aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  1178. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  1179. #if 0
  1180. /* Use the code below as a template for the implementation class for this interface. */
  1181. /* Header file */
  1182. class nsSupportsDouble : public nsISupportsDouble
  1183. {
  1184. public:
  1185. NS_DECL_ISUPPORTS
  1186. NS_DECL_NSISUPPORTSDOUBLE
  1187. nsSupportsDouble();
  1188. private:
  1189. ~nsSupportsDouble();
  1190. protected:
  1191. /* additional members */
  1192. };
  1193. /* Implementation file */
  1194. NS_IMPL_ISUPPORTS1(nsSupportsDouble, nsISupportsDouble)
  1195. nsSupportsDouble::nsSupportsDouble()
  1196. {
  1197. /* member initializers and constructor code */
  1198. }
  1199. nsSupportsDouble::~nsSupportsDouble()
  1200. {
  1201. /* destructor code */
  1202. }
  1203. /* attribute double data; */
  1204. NS_IMETHODIMP nsSupportsDouble::GetData(double *aData)
  1205. {
  1206. return NS_ERROR_NOT_IMPLEMENTED;
  1207. }
  1208. NS_IMETHODIMP nsSupportsDouble::SetData(double aData)
  1209. {
  1210. return NS_ERROR_NOT_IMPLEMENTED;
  1211. }
  1212. /* string toString (); */
  1213. NS_IMETHODIMP nsSupportsDouble::ToString(char **_retval)
  1214. {
  1215. return NS_ERROR_NOT_IMPLEMENTED;
  1216. }
  1217. /* End of implementation class template. */
  1218. #endif
  1219. /* starting interface: nsISupportsVoid */
  1220. #define NS_ISUPPORTSVOID_IID_STR "464484f0-568d-11d3-baf8-00805f8a5dd7"
  1221. #define NS_ISUPPORTSVOID_IID \
  1222. {0x464484f0, 0x568d, 0x11d3, \
  1223. { 0xba, 0xf8, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
  1224. /**
  1225. * Scriptable storage for generic pointers
  1226. *
  1227. * @status FROZEN
  1228. */
  1229. class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsVoid : public nsISupportsPrimitive {
  1230. public:
  1231. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSVOID_IID)
  1232. /* [noscript] attribute voidPtr data; */
  1233. NS_IMETHOD GetData(void * *aData) = 0;
  1234. NS_IMETHOD SetData(void * aData) = 0;
  1235. /* string toString (); */
  1236. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) = 0;
  1237. };
  1238. NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsVoid, NS_ISUPPORTSVOID_IID)
  1239. /* Use this macro when declaring classes that implement this interface. */
  1240. #define NS_DECL_NSISUPPORTSVOID \
  1241. NS_IMETHOD GetData(void * *aData); \
  1242. NS_IMETHOD SetData(void * aData); \
  1243. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval);
  1244. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  1245. #define NS_FORWARD_NSISUPPORTSVOID(_to) \
  1246. NS_IMETHOD GetData(void * *aData) { return _to GetData(aData); } \
  1247. NS_IMETHOD SetData(void * aData) { return _to SetData(aData); } \
  1248. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
  1249. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  1250. #define NS_FORWARD_SAFE_NSISUPPORTSVOID(_to) \
  1251. NS_IMETHOD GetData(void * *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  1252. NS_IMETHOD SetData(void * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
  1253. NS_SCRIPTABLE NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
  1254. #if 0
  1255. /* Use the code below as a template for the implementation class for this interface. */
  1256. /* Header file */
  1257. class nsSupportsVoid : public nsISupportsVoid
  1258. {
  1259. public:
  1260. NS_DECL_ISUPPORTS
  1261. NS_DECL_NSISUPPORTSVOID
  1262. nsSupportsVoid();
  1263. private:
  1264. ~nsSupportsVoid();
  1265. protected:
  1266. /* additional members */
  1267. };
  1268. /* Implementation file */
  1269. NS_IMPL_ISUPPORTS1(nsSupportsVoid, nsISupportsVoid)
  1270. nsSupportsVoid::nsSupportsVoid()
  1271. {
  1272. /* member initializers and constructor code */
  1273. }
  1274. nsSupportsVoid::~nsSupportsVoid()
  1275. {
  1276. /* destructor code */
  1277. }
  1278. /* [noscript] attriā€¦

Large files files are truncated, but you can click here to view the full file