You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

Embedding Gecko API


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.

nsISupportsPrimitives

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
nsISupportsID

Scriptable storage for nsID structures. This type is a pointer.

Method

string nsISupportsID::toString()

Attribute

attribute nsIDPtr nsISupportsID::data
nsISupportsCString

Scriptable storage for ASCII strings. This type is a pointer.

Method

string nsISupportsCString::toString()

Attribute

attribute ACString nsISupportsCString::data
nsISupportsString

Scriptable storage for Unicode strings. This type is a pointer.

Method

wstring nsISupportsString::toString()

Attribute

attribute AString nsISupportsString::data
nsISupportsPRBool

Scriptable storage for booleans. This type is a primitive and is passed by value.

Method

string nsISupportsPRBool::toString()

Attribute

attribute PRBool nsISupportsPRBool::data
nsISupportsPRUint8

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
nsISupportsPRUint16

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
nsISupportsPRUint32

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
nsISupportsPRUint64

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
nsISupportsPRTime

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
nsISupportsChar

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
nsISupportsPRInt16

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
nsISupportsPRInt32

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
nsISupportsPRInt64

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
nsISupportsFloat

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
nsISupportsDouble

Scriptable storage for doubles. This type is a primitive and is passed by value.

Method

string nsISupportsDouble::toString()

Attribute

attribute double nsISupportsDouble::data
nsISupportsVoid

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

Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX