import "nsIVariant.idl";
Inheritance diagram for nsIVariant:

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.
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 |
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
1.4.4