12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787 |
- /*
- * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/xpcom/ds/nsISupportsPrimitives.idl
- */
- #ifndef __gen_nsISupportsPrimitives_h__
- #define __gen_nsISupportsPrimitives_h__
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
- /* For IDL files that don't want to include root IDL files. */
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- /* starting interface: nsISupportsPrimitive */
- #define NS_ISUPPORTSPRIMITIVE_IID_STR "d0d4b136-1dd1-11b2-9371-f0727ef827c0"
- #define NS_ISUPPORTSPRIMITIVE_IID \
- {0xd0d4b136, 0x1dd1, 0x11b2, \
- { 0x93, 0x71, 0xf0, 0x72, 0x7e, 0xf8, 0x27, 0xc0 }}
- /**
- * Primitive base interface.
- *
- * These first three are pointer types and do data copying
- * using the nsIMemory. Be careful!
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPrimitive : public nsISupports {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRIMITIVE_IID)
- enum { TYPE_ID = 1U };
- enum { TYPE_CSTRING = 2U };
- enum { TYPE_STRING = 3U };
- enum { TYPE_PRBOOL = 4U };
- enum { TYPE_PRUINT8 = 5U };
- enum { TYPE_PRUINT16 = 6U };
- enum { TYPE_PRUINT32 = 7U };
- enum { TYPE_PRUINT64 = 8U };
- enum { TYPE_PRTIME = 9U };
- enum { TYPE_CHAR = 10U };
- enum { TYPE_PRINT16 = 11U };
- enum { TYPE_PRINT32 = 12U };
- enum { TYPE_PRINT64 = 13U };
- enum { TYPE_FLOAT = 14U };
- enum { TYPE_DOUBLE = 15U };
- enum { TYPE_VOID = 16U };
- enum { TYPE_INTERFACE_POINTER = 17U };
- /* readonly attribute unsigned short type; */
- NS_IMETHOD GetType(PRUint16 *aType) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRIMITIVE \
- NS_IMETHOD GetType(PRUint16 *aType);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRIMITIVE(_to) \
- NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRIMITIVE(_to) \
- NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPrimitive : public nsISupportsPrimitive
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRIMITIVE
- nsSupportsPrimitive();
- private:
- ~nsSupportsPrimitive();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPrimitive, nsISupportsPrimitive)
- nsSupportsPrimitive::nsSupportsPrimitive()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPrimitive::~nsSupportsPrimitive()
- {
- /* destructor code */
- }
- /* readonly attribute unsigned short type; */
- NS_IMETHODIMP nsSupportsPrimitive::GetType(PRUint16 *aType)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsID */
- #define NS_ISUPPORTSID_IID_STR "d18290a0-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSID_IID \
- {0xd18290a0, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for nsID structures
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsID : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSID_IID)
- /* attribute nsIDPtr data; */
- NS_IMETHOD GetData(nsID * *aData) = 0;
- NS_IMETHOD SetData(const nsID * aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSID \
- NS_IMETHOD GetData(nsID * *aData); \
- NS_IMETHOD SetData(const nsID * aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSID(_to) \
- NS_IMETHOD GetData(nsID * *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(const nsID * aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSID(_to) \
- NS_IMETHOD GetData(nsID * *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(const nsID * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsID : public nsISupportsID
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSID
- nsSupportsID();
- private:
- ~nsSupportsID();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsID, nsISupportsID)
- nsSupportsID::nsSupportsID()
- {
- /* member initializers and constructor code */
- }
- nsSupportsID::~nsSupportsID()
- {
- /* destructor code */
- }
- /* attribute nsIDPtr data; */
- NS_IMETHODIMP nsSupportsID::GetData(nsID * *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsID::SetData(const nsID * aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsID::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsCString */
- #define NS_ISUPPORTSCSTRING_IID_STR "d65ff270-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSCSTRING_IID \
- {0xd65ff270, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for ASCII strings
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsCString : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSCSTRING_IID)
- /* attribute ACString data; */
- NS_IMETHOD GetData(nsACString & aData) = 0;
- NS_IMETHOD SetData(const nsACString & aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSCSTRING \
- NS_IMETHOD GetData(nsACString & aData); \
- NS_IMETHOD SetData(const nsACString & aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSCSTRING(_to) \
- NS_IMETHOD GetData(nsACString & aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(const nsACString & aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSCSTRING(_to) \
- NS_IMETHOD GetData(nsACString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(const nsACString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsCString : public nsISupportsCString
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSCSTRING
- nsSupportsCString();
- private:
- ~nsSupportsCString();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsCString, nsISupportsCString)
- nsSupportsCString::nsSupportsCString()
- {
- /* member initializers and constructor code */
- }
- nsSupportsCString::~nsSupportsCString()
- {
- /* destructor code */
- }
- /* attribute ACString data; */
- NS_IMETHODIMP nsSupportsCString::GetData(nsACString & aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsCString::SetData(const nsACString & aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsCString::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsString */
- #define NS_ISUPPORTSSTRING_IID_STR "d79dc970-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSSTRING_IID \
- {0xd79dc970, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for Unicode strings
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsString : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSSTRING_IID)
- /* attribute AString data; */
- NS_IMETHOD GetData(nsAString & aData) = 0;
- NS_IMETHOD SetData(const nsAString & aData) = 0;
- /* wstring toString (); */
- NS_IMETHOD ToString(PRUnichar **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSSTRING \
- NS_IMETHOD GetData(nsAString & aData); \
- NS_IMETHOD SetData(const nsAString & aData); \
- NS_IMETHOD ToString(PRUnichar **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSSTRING(_to) \
- NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(PRUnichar **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSSTRING(_to) \
- NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsString : public nsISupportsString
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSSTRING
- nsSupportsString();
- private:
- ~nsSupportsString();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsString, nsISupportsString)
- nsSupportsString::nsSupportsString()
- {
- /* member initializers and constructor code */
- }
- nsSupportsString::~nsSupportsString()
- {
- /* destructor code */
- }
- /* attribute AString data; */
- NS_IMETHODIMP nsSupportsString::GetData(nsAString & aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsString::SetData(const nsAString & aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* wstring toString (); */
- NS_IMETHODIMP nsSupportsString::ToString(PRUnichar **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRBool */
- #define NS_ISUPPORTSPRBOOL_IID_STR "ddc3b490-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRBOOL_IID \
- {0xddc3b490, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * The rest are truly primitive and are passed by value
- */
- /**
- * Scriptable storage for booleans
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRBool : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRBOOL_IID)
- /* attribute PRBool data; */
- NS_IMETHOD GetData(PRBool *aData) = 0;
- NS_IMETHOD SetData(PRBool aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRBOOL \
- NS_IMETHOD GetData(PRBool *aData); \
- NS_IMETHOD SetData(PRBool aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRBOOL(_to) \
- NS_IMETHOD GetData(PRBool *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRBool aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRBOOL(_to) \
- NS_IMETHOD GetData(PRBool *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRBool aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRBool : public nsISupportsPRBool
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRBOOL
- nsSupportsPRBool();
- private:
- ~nsSupportsPRBool();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRBool, nsISupportsPRBool)
- nsSupportsPRBool::nsSupportsPRBool()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRBool::~nsSupportsPRBool()
- {
- /* destructor code */
- }
- /* attribute PRBool data; */
- NS_IMETHODIMP nsSupportsPRBool::GetData(PRBool *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRBool::SetData(PRBool aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRBool::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRUint8 */
- #define NS_ISUPPORTSPRUINT8_IID_STR "dec2e4e0-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRUINT8_IID \
- {0xdec2e4e0, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for 8-bit integers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRUint8 : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT8_IID)
- /* attribute PRUint8 data; */
- NS_IMETHOD GetData(PRUint8 *aData) = 0;
- NS_IMETHOD SetData(PRUint8 aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRUINT8 \
- NS_IMETHOD GetData(PRUint8 *aData); \
- NS_IMETHOD SetData(PRUint8 aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRUINT8(_to) \
- NS_IMETHOD GetData(PRUint8 *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRUint8 aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT8(_to) \
- NS_IMETHOD GetData(PRUint8 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRUint8 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRUint8 : public nsISupportsPRUint8
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRUINT8
- nsSupportsPRUint8();
- private:
- ~nsSupportsPRUint8();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRUint8, nsISupportsPRUint8)
- nsSupportsPRUint8::nsSupportsPRUint8()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRUint8::~nsSupportsPRUint8()
- {
- /* destructor code */
- }
- /* attribute PRUint8 data; */
- NS_IMETHODIMP nsSupportsPRUint8::GetData(PRUint8 *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRUint8::SetData(PRUint8 aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRUint8::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRUint16 */
- #define NS_ISUPPORTSPRUINT16_IID_STR "dfacb090-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRUINT16_IID \
- {0xdfacb090, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for unsigned 16-bit integers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRUint16 : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT16_IID)
- /* attribute PRUint16 data; */
- NS_IMETHOD GetData(PRUint16 *aData) = 0;
- NS_IMETHOD SetData(PRUint16 aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRUINT16 \
- NS_IMETHOD GetData(PRUint16 *aData); \
- NS_IMETHOD SetData(PRUint16 aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRUINT16(_to) \
- NS_IMETHOD GetData(PRUint16 *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRUint16 aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT16(_to) \
- NS_IMETHOD GetData(PRUint16 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRUint16 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRUint16 : public nsISupportsPRUint16
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRUINT16
- nsSupportsPRUint16();
- private:
- ~nsSupportsPRUint16();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRUint16, nsISupportsPRUint16)
- nsSupportsPRUint16::nsSupportsPRUint16()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRUint16::~nsSupportsPRUint16()
- {
- /* destructor code */
- }
- /* attribute PRUint16 data; */
- NS_IMETHODIMP nsSupportsPRUint16::GetData(PRUint16 *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRUint16::SetData(PRUint16 aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRUint16::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRUint32 */
- #define NS_ISUPPORTSPRUINT32_IID_STR "e01dc470-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRUINT32_IID \
- {0xe01dc470, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for unsigned 32-bit integers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRUint32 : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT32_IID)
- /* attribute PRUint32 data; */
- NS_IMETHOD GetData(PRUint32 *aData) = 0;
- NS_IMETHOD SetData(PRUint32 aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRUINT32 \
- NS_IMETHOD GetData(PRUint32 *aData); \
- NS_IMETHOD SetData(PRUint32 aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRUINT32(_to) \
- NS_IMETHOD GetData(PRUint32 *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRUint32 aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT32(_to) \
- NS_IMETHOD GetData(PRUint32 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRUint32 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRUint32 : public nsISupportsPRUint32
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRUINT32
- nsSupportsPRUint32();
- private:
- ~nsSupportsPRUint32();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRUint32, nsISupportsPRUint32)
- nsSupportsPRUint32::nsSupportsPRUint32()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRUint32::~nsSupportsPRUint32()
- {
- /* destructor code */
- }
- /* attribute PRUint32 data; */
- NS_IMETHODIMP nsSupportsPRUint32::GetData(PRUint32 *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRUint32::SetData(PRUint32 aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRUint32::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRUint64 */
- #define NS_ISUPPORTSPRUINT64_IID_STR "e13567c0-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRUINT64_IID \
- {0xe13567c0, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for 64-bit integers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRUint64 : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRUINT64_IID)
- /* attribute PRUint64 data; */
- NS_IMETHOD GetData(PRUint64 *aData) = 0;
- NS_IMETHOD SetData(PRUint64 aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRUINT64 \
- NS_IMETHOD GetData(PRUint64 *aData); \
- NS_IMETHOD SetData(PRUint64 aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRUINT64(_to) \
- NS_IMETHOD GetData(PRUint64 *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRUint64 aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRUINT64(_to) \
- NS_IMETHOD GetData(PRUint64 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRUint64 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRUint64 : public nsISupportsPRUint64
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRUINT64
- nsSupportsPRUint64();
- private:
- ~nsSupportsPRUint64();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRUint64, nsISupportsPRUint64)
- nsSupportsPRUint64::nsSupportsPRUint64()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRUint64::~nsSupportsPRUint64()
- {
- /* destructor code */
- }
- /* attribute PRUint64 data; */
- NS_IMETHODIMP nsSupportsPRUint64::GetData(PRUint64 *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRUint64::SetData(PRUint64 aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRUint64::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRTime */
- #define NS_ISUPPORTSPRTIME_IID_STR "e2563630-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRTIME_IID \
- {0xe2563630, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for NSPR date/time values
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRTime : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRTIME_IID)
- /* attribute PRTime data; */
- NS_IMETHOD GetData(PRTime *aData) = 0;
- NS_IMETHOD SetData(PRTime aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRTIME \
- NS_IMETHOD GetData(PRTime *aData); \
- NS_IMETHOD SetData(PRTime aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRTIME(_to) \
- NS_IMETHOD GetData(PRTime *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRTime aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRTIME(_to) \
- NS_IMETHOD GetData(PRTime *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRTime aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRTime : public nsISupportsPRTime
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRTIME
- nsSupportsPRTime();
- private:
- ~nsSupportsPRTime();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRTime, nsISupportsPRTime)
- nsSupportsPRTime::nsSupportsPRTime()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRTime::~nsSupportsPRTime()
- {
- /* destructor code */
- }
- /* attribute PRTime data; */
- NS_IMETHODIMP nsSupportsPRTime::GetData(PRTime *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRTime::SetData(PRTime aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRTime::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsChar */
- #define NS_ISUPPORTSCHAR_IID_STR "e2b05e40-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSCHAR_IID \
- {0xe2b05e40, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for single character values
- * (often used to store an ASCII character)
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsChar : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSCHAR_IID)
- /* attribute char data; */
- NS_IMETHOD GetData(char *aData) = 0;
- NS_IMETHOD SetData(char aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSCHAR \
- NS_IMETHOD GetData(char *aData); \
- NS_IMETHOD SetData(char aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSCHAR(_to) \
- NS_IMETHOD GetData(char *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(char aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSCHAR(_to) \
- NS_IMETHOD GetData(char *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(char aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsChar : public nsISupportsChar
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSCHAR
- nsSupportsChar();
- private:
- ~nsSupportsChar();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsChar, nsISupportsChar)
- nsSupportsChar::nsSupportsChar()
- {
- /* member initializers and constructor code */
- }
- nsSupportsChar::~nsSupportsChar()
- {
- /* destructor code */
- }
- /* attribute char data; */
- NS_IMETHODIMP nsSupportsChar::GetData(char *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsChar::SetData(char aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsChar::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRInt16 */
- #define NS_ISUPPORTSPRINT16_IID_STR "e30d94b0-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRINT16_IID \
- {0xe30d94b0, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for 16-bit integers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRInt16 : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT16_IID)
- /* attribute PRInt16 data; */
- NS_IMETHOD GetData(PRInt16 *aData) = 0;
- NS_IMETHOD SetData(PRInt16 aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRINT16 \
- NS_IMETHOD GetData(PRInt16 *aData); \
- NS_IMETHOD SetData(PRInt16 aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRINT16(_to) \
- NS_IMETHOD GetData(PRInt16 *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRInt16 aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRINT16(_to) \
- NS_IMETHOD GetData(PRInt16 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRInt16 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRInt16 : public nsISupportsPRInt16
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRINT16
- nsSupportsPRInt16();
- private:
- ~nsSupportsPRInt16();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRInt16, nsISupportsPRInt16)
- nsSupportsPRInt16::nsSupportsPRInt16()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRInt16::~nsSupportsPRInt16()
- {
- /* destructor code */
- }
- /* attribute PRInt16 data; */
- NS_IMETHODIMP nsSupportsPRInt16::GetData(PRInt16 *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRInt16::SetData(PRInt16 aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRInt16::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRInt32 */
- #define NS_ISUPPORTSPRINT32_IID_STR "e36c5250-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRINT32_IID \
- {0xe36c5250, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for 32-bit integers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRInt32 : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT32_IID)
- /* attribute PRInt32 data; */
- NS_IMETHOD GetData(PRInt32 *aData) = 0;
- NS_IMETHOD SetData(PRInt32 aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRINT32 \
- NS_IMETHOD GetData(PRInt32 *aData); \
- NS_IMETHOD SetData(PRInt32 aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRINT32(_to) \
- NS_IMETHOD GetData(PRInt32 *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRInt32 aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRINT32(_to) \
- NS_IMETHOD GetData(PRInt32 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRInt32 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRInt32 : public nsISupportsPRInt32
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRINT32
- nsSupportsPRInt32();
- private:
- ~nsSupportsPRInt32();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRInt32, nsISupportsPRInt32)
- nsSupportsPRInt32::nsSupportsPRInt32()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRInt32::~nsSupportsPRInt32()
- {
- /* destructor code */
- }
- /* attribute PRInt32 data; */
- NS_IMETHODIMP nsSupportsPRInt32::GetData(PRInt32 *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRInt32::SetData(PRInt32 aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRInt32::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsPRInt64 */
- #define NS_ISUPPORTSPRINT64_IID_STR "e3cb0ff0-4a1c-11d3-9890-006008962422"
- #define NS_ISUPPORTSPRINT64_IID \
- {0xe3cb0ff0, 0x4a1c, 0x11d3, \
- { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
- /**
- * Scriptable storage for 64-bit integers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsPRInt64 : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRINT64_IID)
- /* attribute PRInt64 data; */
- NS_IMETHOD GetData(PRInt64 *aData) = 0;
- NS_IMETHOD SetData(PRInt64 aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSPRINT64 \
- NS_IMETHOD GetData(PRInt64 *aData); \
- NS_IMETHOD SetData(PRInt64 aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSPRINT64(_to) \
- NS_IMETHOD GetData(PRInt64 *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(PRInt64 aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSPRINT64(_to) \
- NS_IMETHOD GetData(PRInt64 *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(PRInt64 aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsPRInt64 : public nsISupportsPRInt64
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSPRINT64
- nsSupportsPRInt64();
- private:
- ~nsSupportsPRInt64();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsPRInt64, nsISupportsPRInt64)
- nsSupportsPRInt64::nsSupportsPRInt64()
- {
- /* member initializers and constructor code */
- }
- nsSupportsPRInt64::~nsSupportsPRInt64()
- {
- /* destructor code */
- }
- /* attribute PRInt64 data; */
- NS_IMETHODIMP nsSupportsPRInt64::GetData(PRInt64 *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsPRInt64::SetData(PRInt64 aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsPRInt64::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsFloat */
- #define NS_ISUPPORTSFLOAT_IID_STR "abeaa390-4ac0-11d3-baea-00805f8a5dd7"
- #define NS_ISUPPORTSFLOAT_IID \
- {0xabeaa390, 0x4ac0, 0x11d3, \
- { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
- /**
- * Scriptable storage for floating point numbers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsFloat : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSFLOAT_IID)
- /* attribute float data; */
- NS_IMETHOD GetData(float *aData) = 0;
- NS_IMETHOD SetData(float aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSFLOAT \
- NS_IMETHOD GetData(float *aData); \
- NS_IMETHOD SetData(float aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSFLOAT(_to) \
- NS_IMETHOD GetData(float *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(float aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSFLOAT(_to) \
- NS_IMETHOD GetData(float *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(float aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsFloat : public nsISupportsFloat
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSFLOAT
- nsSupportsFloat();
- private:
- ~nsSupportsFloat();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsFloat, nsISupportsFloat)
- nsSupportsFloat::nsSupportsFloat()
- {
- /* member initializers and constructor code */
- }
- nsSupportsFloat::~nsSupportsFloat()
- {
- /* destructor code */
- }
- /* attribute float data; */
- NS_IMETHODIMP nsSupportsFloat::GetData(float *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsFloat::SetData(float aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsFloat::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsDouble */
- #define NS_ISUPPORTSDOUBLE_IID_STR "b32523a0-4ac0-11d3-baea-00805f8a5dd7"
- #define NS_ISUPPORTSDOUBLE_IID \
- {0xb32523a0, 0x4ac0, 0x11d3, \
- { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
- /**
- * Scriptable storage for doubles
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsDouble : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSDOUBLE_IID)
- /* attribute double data; */
- NS_IMETHOD GetData(double *aData) = 0;
- NS_IMETHOD SetData(double aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSDOUBLE \
- NS_IMETHOD GetData(double *aData); \
- NS_IMETHOD SetData(double aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSDOUBLE(_to) \
- NS_IMETHOD GetData(double *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(double aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSDOUBLE(_to) \
- NS_IMETHOD GetData(double *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(double aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsDouble : public nsISupportsDouble
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSDOUBLE
- nsSupportsDouble();
- private:
- ~nsSupportsDouble();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsDouble, nsISupportsDouble)
- nsSupportsDouble::nsSupportsDouble()
- {
- /* member initializers and constructor code */
- }
- nsSupportsDouble::~nsSupportsDouble()
- {
- /* destructor code */
- }
- /* attribute double data; */
- NS_IMETHODIMP nsSupportsDouble::GetData(double *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsDouble::SetData(double aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsDouble::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsVoid */
- #define NS_ISUPPORTSVOID_IID_STR "464484f0-568d-11d3-baf8-00805f8a5dd7"
- #define NS_ISUPPORTSVOID_IID \
- {0x464484f0, 0x568d, 0x11d3, \
- { 0xba, 0xf8, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
- /**
- * Scriptable storage for generic pointers
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsVoid : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSVOID_IID)
- /* [noscript] attribute voidPtr data; */
- NS_IMETHOD GetData(void * *aData) = 0;
- NS_IMETHOD SetData(void * aData) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSVOID \
- NS_IMETHOD GetData(void * *aData); \
- NS_IMETHOD SetData(void * aData); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSVOID(_to) \
- NS_IMETHOD GetData(void * *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(void * aData) { return _to SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSVOID(_to) \
- NS_IMETHOD GetData(void * *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(void * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsVoid : public nsISupportsVoid
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSVOID
- nsSupportsVoid();
- private:
- ~nsSupportsVoid();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsVoid, nsISupportsVoid)
- nsSupportsVoid::nsSupportsVoid()
- {
- /* member initializers and constructor code */
- }
- nsSupportsVoid::~nsSupportsVoid()
- {
- /* destructor code */
- }
- /* [noscript] attribute voidPtr data; */
- NS_IMETHODIMP nsSupportsVoid::GetData(void * *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsVoid::SetData(void * aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsVoid::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- /* starting interface: nsISupportsInterfacePointer */
- #define NS_ISUPPORTSINTERFACEPOINTER_IID_STR "995ea724-1dd1-11b2-9211-c21bdd3e7ed0"
- #define NS_ISUPPORTSINTERFACEPOINTER_IID \
- {0x995ea724, 0x1dd1, 0x11b2, \
- { 0x92, 0x11, 0xc2, 0x1b, 0xdd, 0x3e, 0x7e, 0xd0 }}
- /**
- * Scriptable storage for other XPCOM objects
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsISupportsInterfacePointer : public nsISupportsPrimitive {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTSINTERFACEPOINTER_IID)
- /* attribute nsISupports data; */
- NS_IMETHOD GetData(nsISupports * *aData) = 0;
- NS_IMETHOD SetData(nsISupports * aData) = 0;
- /* attribute nsIDPtr dataIID; */
- NS_IMETHOD GetDataIID(nsID * *aDataIID) = 0;
- NS_IMETHOD SetDataIID(const nsID * aDataIID) = 0;
- /* string toString (); */
- NS_IMETHOD ToString(char **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSISUPPORTSINTERFACEPOINTER \
- NS_IMETHOD GetData(nsISupports * *aData); \
- NS_IMETHOD SetData(nsISupports * aData); \
- NS_IMETHOD GetDataIID(nsID * *aDataIID); \
- NS_IMETHOD SetDataIID(const nsID * aDataIID); \
- NS_IMETHOD ToString(char **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSISUPPORTSINTERFACEPOINTER(_to) \
- NS_IMETHOD GetData(nsISupports * *aData) { return _to GetData(aData); } \
- NS_IMETHOD SetData(nsISupports * aData) { return _to SetData(aData); } \
- NS_IMETHOD GetDataIID(nsID * *aDataIID) { return _to GetDataIID(aDataIID); } \
- NS_IMETHOD SetDataIID(const nsID * aDataIID) { return _to SetDataIID(aDataIID); } \
- NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSISUPPORTSINTERFACEPOINTER(_to) \
- NS_IMETHOD GetData(nsISupports * *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
- NS_IMETHOD SetData(nsISupports * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
- NS_IMETHOD GetDataIID(nsID * *aDataIID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataIID(aDataIID); } \
- NS_IMETHOD SetDataIID(const nsID * aDataIID) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataIID(aDataIID); } \
- NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsSupportsInterfacePointer : public nsISupportsInterfacePointer
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSISUPPORTSINTERFACEPOINTER
- nsSupportsInterfacePointer();
- private:
- ~nsSupportsInterfacePointer();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsSupportsInterfacePointer, nsISupportsInterfacePointer)
- nsSupportsInterfacePointer::nsSupportsInterfacePointer()
- {
- /* member initializers and constructor code */
- }
- nsSupportsInterfacePointer::~nsSupportsInterfacePointer()
- {
- /* destructor code */
- }
- /* attribute nsISupports data; */
- NS_IMETHODIMP nsSupportsInterfacePointer::GetData(nsISupports * *aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsInterfacePointer::SetData(nsISupports * aData)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* attribute nsIDPtr dataIID; */
- NS_IMETHODIMP nsSupportsInterfacePointer::GetDataIID(nsID * *aDataIID)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsSupportsInterfacePointer::SetDataIID(const nsID * aDataIID)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string toString (); */
- NS_IMETHODIMP nsSupportsInterfacePointer::ToString(char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- #endif /* __gen_nsISupportsPrimitives_h__ */
|