Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIVariant Interface Reference

XPConnect has magic to transparently convert between nsIVariant and JS types. More...

import "nsIVariant.idl";

Inheritance diagram for nsIVariant:
Inheritance graph
Collaboration diagram for nsIVariant:
Collaboration graph

List of all members.

Public Member Functions

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

Public Attributes

readonly attribute PRUint16 dataType

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.

Member Function Documentation

nsresult nsIVariant::getAsArray ( out PRUint16  type,
out nsIID  iid,
out PRUint32  count,
out voidPtr  ptr 
void nsIVariant::getAsInterface ( out nsIIDPtr  iid,
[iid_is(iid), retval] out nsQIResult  iface 
nsISupports nsIVariant::getAsISupports ( )
void nsIVariant::getAsStringWithSize ( out PRUint32  size,
[size_is(size), retval] out string  str 
void nsIVariant::getAsWStringWithSize ( out PRUint32  size,
[size_is(size), retval] out wstring  str 

Member Data Documentation

Definition at line 92 of file nsIVariant.idl.

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