Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsIVariant Interface Reference

import "nsIVariant.idl";

Inheritance diagram for nsIVariant:

nsISupports nsIWritableVariant nsVariant

List of all members.

Detailed Description

XPConnect has magic to transparently convert between nsIVariant and JS types. We mark the interface [scriptable] so that JS can use methods that refer to this interface. But we mark all the methods and attributes [noscript] since any nsIVariant object will be automatically converted to a JS type anyway.

Definition at line 90 of file nsIVariant.idl.

Public Member Functions

ACString getAsACString ()
nsresult getAsArray (out PRUint16 type, out nsIID iid, out PRUint32 count, out voidPtr ptr)
AString getAsAString ()
AUTF8String getAsAUTF8String ()
PRBool getAsBool ()
char getAsChar ()
DOMString getAsDOMString ()
double getAsDouble ()
float getAsFloat ()
nsresult getAsID (out nsID retval)
PRInt16 getAsInt16 ()
PRInt32 getAsInt32 ()
PRInt64 getAsInt64 ()
PRUint8 getAsInt8 ()
void getAsInterface (out nsIIDPtr iid,[iid_is(iid), retval] out nsQIResult iface)
nsISupports getAsISupports ()
string getAsString ()
void getAsStringWithSize (out PRUint32 size,[size_is(size), retval] out string str)
PRUint16 getAsUint16 ()
PRUint32 getAsUint32 ()
PRUint64 getAsUint64 ()
PRUint8 getAsUint8 ()
wchar getAsWChar ()
wstring getAsWString ()
void getAsWStringWithSize (out PRUint32 size,[size_is(size), retval] out wstring str)
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

readonly attribute PRUint16 dataType

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index