📄 nsisupportsprimitives.h
字号:
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM 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(); virtual ~nsSupportsPrimitive(); /* 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(); virtual ~nsSupportsID(); /* 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(); virtual ~nsSupportsCString(); /* 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(); virtual ~nsSupportsString(); /* 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;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -