📄 nsisupportsprimitives.h
字号:
};
/* 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();
virtual ~nsSupportsPRBool();
/* 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();
virtual ~nsSupportsPRUint8();
/* 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();
virtual ~nsSupportsPRUint16();
/* 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();
virtual ~nsSupportsPRUint32();
/* 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();
virtual ~nsSupportsPRUint64();
/* 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)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -