PageRenderTime 76ms CodeModel.GetById 39ms app.highlight 20ms RepoModel.GetById 1ms app.codeStats 1ms

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

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