Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
nsVariant.h File Reference
#include "nsIVariant.h"
#include "nsStringFwd.h"
#include "xpt_struct.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsDiscriminatedUnion
 nsDiscriminatedUnion is a type that nsIVariant implementors may use to hold underlying data. More...
protocol  NS_COM
 A string set that takes up minimal size when there are 0 or 1 strings in the set. More...
union  nsDiscriminatedUnion.u
struct  nsDiscriminatedUnion.u.iface
struct  nsDiscriminatedUnion.u.array
struct  nsDiscriminatedUnion.u.str
struct  nsDiscriminatedUnion.u.wstr

Defines

#define nsAUTF8String   nsACString
 Map the nsAUTF8String, nsUTF8String classes to the nsACString and nsCString classes respectively for now.
#define nsUTF8String   nsCString
#define PromiseFlatUTF8String   PromiseFlatCString
#define NS_VARIANT_CID
 Users of nsIVariant should be using the contractID and not this CID.
#define NS_VARIANT_CLASSNAME   "Variant"

Class Documentation

struct nsDiscriminatedUnion

nsDiscriminatedUnion is a type that nsIVariant implementors may use to hold underlying data.

It has no methods. So, its use requires no linkage to the xpcom module.

Definition at line 61 of file nsVariant.h.

Class Members
PRUint16 mType
union nsDiscriminatedUnion u
union nsDiscriminatedUnion.u

Definition at line 63 of file nsVariant.h.

Class Members
u array
u iface
nsAString * mAStringValue
PRBool mBoolValue
char mCharValue
nsACString * mCStringValue
double mDoubleValue
float mFloatValue
nsIID mIDValue
PRInt16 mInt16Value
PRInt32 mInt32Value
PRInt64 mInt64Value
PRInt8 mInt8Value
PRUint16 mUint16Value
PRUint32 mUint32Value
PRUint64 mUint64Value
PRUint8 mUint8Value
nsAUTF8String * mUTF8StringValue
PRUnichar mWCharValue
u str
u wstr
struct nsDiscriminatedUnion.u.iface

Definition at line 81 of file nsVariant.h.

Class Members
nsIID mInterfaceID
nsISupports * mInterfaceValue
struct nsDiscriminatedUnion.u.array

Definition at line 85 of file nsVariant.h.

Class Members
PRUint32 mArrayCount
nsIID mArrayInterfaceID
PRUint16 mArrayType
void * mArrayValue
struct nsDiscriminatedUnion.u.str

Definition at line 91 of file nsVariant.h.

Class Members
PRUint32 mStringLength
char * mStringValue
struct nsDiscriminatedUnion.u.wstr

Definition at line 95 of file nsVariant.h.

Class Members
PRUint32 mWStringLength
PRUnichar * mWStringValue

Define Documentation

Value:
{ /* 0D6EA1D0-879C-11d5-90EF-0010A4E73D9A */ \
    0xd6ea1d0,                               \
    0x879c,                                  \
    0x11d5,                                  \
    {0x90, 0xef, 0x0, 0x10, 0xa4, 0xe7, 0x3d, 0x9a}}

Users of nsIVariant should be using the contractID and not this CID.

Definition at line 195 of file nsVariant.h.

#define NS_VARIANT_CLASSNAME   "Variant"

Definition at line 202 of file nsVariant.h.

#define nsAUTF8String   nsACString

Map the nsAUTF8String, nsUTF8String classes to the nsACString and nsCString classes respectively for now.

These defines need to be removed once Jag lands his nsUTF8String implementation.

Definition at line 51 of file nsVariant.h.

Definition at line 52 of file nsVariant.h.

Definition at line 53 of file nsVariant.h.