nsISupportsPrimitives
The following are a group of interfaces that provide nsISupports wrappers for single primitive pieces of data. The individual interfaces all derive from the nsISupportsPrimitives parent. All of them are scriptable.
Primitive base interface.
Note: The first three are pointer types and do data copying using nsIMemory. Be careful!
const unsigned short nsISupportsPrimitives::TYPE_ID = 1
const unsigned short nsISupportsPrimitives::TYPE_CSTRING =2
const unsigned short nsISupportsPrimitives::TYPE_STRING = 3
const unsigned short nsISupportsPrimitives::TYPE_PRBOOL = 4
const unsigned short nsISupportsPrimitives::TYPE_PRUINT8 = 5
const unsigned short nsISupportsPrimitives::TYPE_PRUINT16 = 6
const unsigned short nsISupportsPrimitives::TYPE_PRUINT32 = 7
const unsigned short nsISupportsPrimitives::TYPE_PRUINT64 = 8
const unsigned short nsISupportsPrimitives::TYPE_PRTIME = 9
const unsigned short nsISupportsPrimitives::TYPE_CHAR = 10
const unsigned short nsISupportsPrimitives::TYPE_PRINT16 = 11
const unsigned short nsISupportsPrimitives::TYPE_PRINT32 = 12
const unsigned short nsISupportsPrimitives::TYPE_PRINT64 = 13
const unsigned short nsISupportsPrimitives::TYPE_FLOAT = 14
const unsigned short nsISupportsPrimitives::TYPE_DOUBLE = 15
const unsigned short nsISupportsPrimitives::TYPE_VOID = 16
const unsigned short nsISupportsPrimitives::TYPE_INTERFACE_POINTER = 17
Values for type attribute below.
readonly attribute unsigned short nsISupportsPrimitives::type
Scriptable storage for nsID structures. This type is a pointer.
Method
string nsISupportsID::toString()
Attribute
attribute nsIDPtr nsISupportsID::data
Scriptable storage for ASCII strings. This type is a pointer.
Method
string nsISupportsCString::toString()
Attribute
attribute ACString nsISupportsCString::data
Scriptable storage for Unicode strings. This type is a pointer.
Method
wstring nsISupportsString::toString()
Attribute
attribute AString nsISupportsString::data
Scriptable storage for booleans. This type is a primitive and is passed by value.
Method
string nsISupportsPRBool::toString()
Attribute
attribute PRBool nsISupportsPRBool::data
Scriptable storage for 8-bit integers. This type is a primitive and is passed by value.
Method
string nsISupportsPRUint8::toString()
Attribute
attribute PRUint8 nsISupportsPRUint8::data
Scriptable storage for unsigned 16-bit integers. This type is a primitive and is passed by value.
Method
string nsISupportsPRUint16::toString()
Attribute
attribute PRUint16 nsISupportsPRUint16::data
Scriptable storage for unsigned 32-bit integers. This type is a primitive and is passed by value.
Method
string nsISupportsPRUint32::toString()
Attribute
attribute PRUint32 nsISupportsPRUint32::data
Scriptable storage for unsigned 64-bit integers. This type is a primitive and is passed by value.
Method
string nsISupportsPRUint64::toString()
Attribute
attribute PRUint64 nsISupportsPRUint64::data
Scriptable storage for NSPR date/time values. This type is a primitive and is passed by value.
Method
string nsISupportsPRTime::toString()
Attribute
attribute PRTime nsISupportsPRTime::data
Scriptable storage for single character values. This type is a primitive and is passed by value.
Method
string nsISupportsChar::toString()
Attribute
attribute char nsISupportsChar::data
Scriptable storage for 16-bit integers. This type is a primitive and is passed by value.
Method
string nsISupportsPRInt16::toString()
Attribute
attribute PRInt16 nsISupportsPRInt16::data
Scriptable storage for 32-bit integers. This type is a primitive and is passed by value.
Method
string nsISupportsPRInt32::toString()
Attribute
attribute PRInt32 nsISupportsPRInt32::data
Scriptable storage for 64-bit integers. This type is a primitive and is passed by value.
Method
string nsISupportsPRInt64::toString()
Attribute
attribute PRInt64 nsISupportsPRInt64::data
Scriptable storage for floating point numbers. This type is a primitive and is passed by value.
Method
string nsISupportsFloat::toString()
Attribute
attribute float nsISupportsFloat::data
Scriptable storage for doubles. This type is a primitive and is passed by value.
Method
string nsISupportsDouble::toString()
Attribute
attribute double nsISupportsDouble::data
Scriptable storage for generic pointers.
Method
string nsISupportsVoid::toString()
Attribute
[no script]attribute voidPtr nsISupportsVoid::data
nsISupportsInterfacePointer
Scriptable storage for other XPCOM objects.
Method
string nsISupportsInterfacePointer::toString()
Attributes
attribute nsISupports nsISupportsInterfacePointer::data
attribute nsIDPtr nsISupportsInterfacePointer::dataIID