Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsITestVariant Interface Reference

import "xpctest.idl";

Inheritance diagram for nsITestVariant:
Inheritance graph
[legend]
Collaboration diagram for nsITestVariant:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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 268 of file xpctest.idl.


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.

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

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

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 interface was generated from the following file: