Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsTestVariant Class Reference
Inheritance diagram for nsTestVariant:
Inheritance graph
[legend]
Collaboration diagram for nsTestVariant:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSITESTVARIANT 
nsTestVariant ()
virtual ~nsTestVariant ()
nsIVariant passThruVariant (in nsIVariant value)
 Just return the variant that was passed in.
PRUint16 returnVariantType (in nsIVariant value)
 Just return the type of the passed in variant.
nsIVariant copyVariant (in nsIVariant value)
 Construct and return a default xpcom variant instance using the value of the passed in variant.
nsIVariant copyVariantAsType (in nsIVariant value, in PRUint16 type)
 Construct and return a default xpcom variant instance using the value of the passed in variant.
nsIVariant copyVariantAsTypeTwice (in nsIVariant value, in PRUint16 type1, in PRUint16 type2)
 Construct a default xpcom variant instance using the value of the passed in variant.
nsIVariant getNamedProperty (in nsISupports aBag, in AString aName)
 Get a named property from object that will be QI'd to nsIPropertyBag.
nsISimpleEnumerator getEnumerator (in nsISupports aBag)
 Get a enumerator from object that will be QI'd to nsIPropertyBag.

Detailed Description

Definition at line 46 of file xpctest_variant.cpp.


Constructor & Destructor Documentation

Definition at line 58 of file xpctest_variant.cpp.

{
}

Definition at line 62 of file xpctest_variant.cpp.

{
}

Member Function Documentation

Construct and return a default xpcom variant instance using the value of the passed in variant.

Use the type of the passed in variant.

Construct and return a default xpcom variant instance using the value of the passed in variant.

Use the type as specified to get data from the passed in variant.

Construct a default xpcom variant instance using the value of the passed in variant.

Use the type as specified in type1 to get data from the passed in variant. Then construct and return a default xpcom variant based on that object using the type2. This allows for testing all the 'ConvertTo*' methods on the default xpcom variant class.

nsISimpleEnumerator nsITestVariant::getEnumerator ( in nsISupports  aBag) [inherited]

Get a enumerator from object that will be QI'd to nsIPropertyBag.

nsIVariant nsITestVariant::getNamedProperty ( in nsISupports  aBag,
in AString  aName 
) [inherited]

Get a named property from object that will be QI'd to nsIPropertyBag.

Just return the variant that was passed in.

Just return the type of the passed in variant.


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