API published in: S60 3rd Ed FP 2
Link against: servicehandler.lib
#include <aiwvariant.h>
The variant contains a data type and a value. This class is attached to TAiwGenericParam instance which holds the semantic type of the value.
Public Member Functions |
|
| TAiwVariant () | |
| Default constructor. |
|
| TAiwVariant (TInt32 aValue) | |
| Constructor from a value. |
|
| TAiwVariant (const TUid &aValue) | |
| Constructor from a value. |
|
| TAiwVariant (const TTime &aValue) | |
| Constructor from a value. |
|
| TAiwVariant (const TDesC &aValue) | |
| Constructor from a value. |
|
| TAiwVariant (const HBufC *aValue) | |
| Constructor from a value. |
|
| TAiwVariant (const TDesC8 &aValue) | |
| Constructor from a value. |
|
| TAiwVariant (const RFile &aValue) | |
| Constructor from a value. |
|
| IMPORT_C | TAiwVariant (const TAiwVariant &aSrc) |
| Copy constructor. |
|
| IMPORT_C TAiwVariant & | operator= (const TAiwVariant &aValue) |
| Assignment operator. |
|
| TVariantTypeId | TypeId () const |
| Returns the type id of data this variant object is holding. |
|
| TBool | IsEmpty () const |
| Returns ETrue if this variant is empty (it does not hold any value). |
|
| IMPORT_C TBool | Get (TInt32 &aValue) const |
| Retrieves the value held by this variant. |
|
| IMPORT_C TBool | Get (TUid &aValue) const |
| Retrieves the value held by this variant. |
|
| IMPORT_C TBool | Get (TPtrC &aValue) const |
| Retrieves the value held by this variant. |
|
| IMPORT_C TBool | Get (TTime &aValue) const |
| Retrieves the value held by this variant. |
|
| IMPORT_C TBool | Get (TPtrC8 &aValue) const |
| Retrieves the value held by this variant. |
|
| IMPORT_C TBool | Get (RFile &aValue) const |
| Retrieves the value held by this variant. |
|
| IMPORT_C TInt32 | AsTInt32 () const |
| Returns the value held by this variant. |
|
| IMPORT_C TUid | AsTUid () const |
| Returns the value held by this variant. |
|
| IMPORT_C TPtrC | AsDes () const |
| Returns the value held by this variant. |
|
| IMPORT_C TTime | AsTTime () const |
| Returns the value held by this variant. |
|
| IMPORT_C TPtrC8 | AsData () const |
| Returns the value held by this variant. |
|
| IMPORT_C RFile | AsFileHandle () const |
| Returns the value held by this variant. |
|
| IMPORT_C void | Reset () |
| Deletes possibly set value and resets this variant to empty. |
|
| IMPORT_C void | Set (TInt32 aValue) |
| Sets integer value to this variant. |
|
| IMPORT_C void | Set (const TUid &aValue) |
| Sets unique ID value to this variant. |
|
| IMPORT_C void | Set (const TTime &aValue) |
| Sets date and time value to this variant. |
|
| IMPORT_C void | Set (const TDesC &aValue) |
| Sets constant text reference to this variant. |
|
| void | Set (const HBufC *aValue) |
| Sets constant text reference to this variant. |
|
| IMPORT_C void | Set (const TDesC8 &aValue) |
| Sets constant 8-bit text reference to this variant. |
|
| IMPORT_C void | Set (const RFile &aValue) |
| Sets RFile file handle to this variant. |
|
| TAiwVariant & | operator= (const TTime &aValue) |
| Assignment operator for the variant. |
|
| TAiwVariant & | operator= (const TUid &aValue) |
| Assignment operator for the variant. |
|
| TAiwVariant & | operator= (TInt32 aValue) |
| Assignment operator for the variant. |
|
| TAiwVariant & | operator= (const TDesC &aValue) |
| Assignment operator for the variant. |
|
| TAiwVariant & | operator= (const HBufC *aValue) |
| Assignment operator for the variant. |
|
| TAiwVariant & | operator= (const TDesC8 &aValue) |
| Assignment operator for the variant. |
|
| TAiwVariant & | operator= (const RFile &aValue) |
| Assignment operator for the variant. |
|
Friends |
|
| class | TAiwGenericParam |
| TAiwGenericParam needs access to private streaming and copying methods. |
|
| IMPORT_C TBool | operator== (const TAiwVariant &aLhs, const TAiwVariant &aRhs) |
| Returns ETrue if two variants are equal. |
|
Data Structures |
|
| struct | SInt64 |
| POD storage for a 64-bit integer. |
|
| union | UData |
|
|
Default constructor. Initializes this variant to be empty.
|
|
|
Constructor from a value.
|
|
|
Constructor from a value.
|
|
|
Constructor from a value.
|
|
|
Constructor from a value.
|
|
|
Constructor from a value.
|
|
|
Constructor from a value.
|
|
|
Constructor from a value.
|
|
|
Copy constructor. Does not take ownership of data.
|
|
|
Returns the value held by this variant.
|
|
|
Returns the value held by this variant.
|
|
|
Returns the value held by this variant.
|
|
|
Returns the value held by this variant.
|
|
|
Returns the value held by this variant.
|
|
|
Returns the value held by this variant.
|
|
|
Retrieves the value held by this variant.
|
|
|
Retrieves the value held by this variant.
|
|
|
Retrieves the value held by this variant.
|
|
|
Retrieves the value held by this variant.
|
|
|
Retrieves the value held by this variant.
|
|
|
Retrieves the value held by this variant.
|
|
|
Returns ETrue if this variant is empty (it does not hold any value). |
|
|
Assignment operator for the variant.
|
|
|
Assignment operator for the variant.
|
|
|
Assignment operator for the variant.
|
|
|
Assignment operator for the variant.
|
|
|
Assignment operator for the variant.
|
|
|
Assignment operator for the variant.
|
|
|
Assignment operator for the variant.
|
|
|
Assignment operator. Does not take ownership of data.
|
|
|
Deletes possibly set value and resets this variant to empty.
|
|
|
Sets RFile file handle to this variant.
|
|
|
Sets constant 8-bit text reference to this variant.
|
|
|
Sets constant text reference to this variant.
|
|
|
Sets constant text reference to this variant.
|
|
|
Sets date and time value to this variant. The previous value is overwritten.
|
|
|
Sets unique ID value to this variant. The previous value is overwritten.
|
|
|
Sets integer value to this variant. The previous value is overwritten.
|
|
|
Returns the type id of data this variant object is holding. |
|
||||||||||||
|
Returns ETrue if two variants are equal.
|
|
|
TAiwGenericParam needs access to private streaming and copying methods. |