Alf::IAlfVariantType Class Reference

class Alf::IAlfVariantType

An interface for variant data type. Application-specific data source classes may implement this interface. Alternatively, a wrapper class may be implemented to convert data fields from application source to some IAlfVariantType implementation (e.g., CAlfVariantType).

alfwidgetmodel.lib
Since
S60 ?S60_version Draft

Constructor & Destructor Documentation

~IAlfVariantType()

~IAlfVariantType()[inline, virtual]

Virtual destructor.

Member Functions Documentation

boolean()

boolboolean()const [pure virtual]

Get the data value as an bool .

Exceptions
osncore:AlfDataException

Thrown if type() is not EBool.

Since
S60 ?S60_version

branch()

IAlfBranch *branch()[pure virtual]

Get the data value as a Branch interface.

Exceptions
osncore:AlfDataException

Thrown if type() is not EBranch.

Since
S60 ?S60_version

container()

IAlfContainer *container()[pure virtual]

Get the data value as a container interface.

Exceptions
osncore:AlfDataException

Thrown if type() is not EContainer.

Since
S60 ?S60_version

customData()

IAlfModelBase *customData()[pure virtual]

Get the data value as a User Defined Data Pointer.

Exceptions
osncore:AlfDataException

Thrown if type() is not ECustomData.

Since
S60 ?S60_version

integer()

intinteger()const [pure virtual]

Get the data value as an integer.

Exceptions
osncore:AlfDataException

Thrown if type() is not EInt.

Since
S60 ?S60_version

map()

IAlfMap *map()[pure virtual]

Get the data value as a map interface.

Exceptions
osncore:AlfDataException

Thrown if type() is not EMap.

Since
S60 ?S60_version

real()

doublereal()const [pure virtual]

Get the data value as a real number.

Exceptions
osncore:AlfDataException

Thrown if type() is not EReal.

Since
S60 ?S60_version

set(IAlfVariantType &)

voidset(IAlfVariantType &aValue)[pure virtual]

Set the Data the variantData

Since
S60 ?S60_version

Parameters

IAlfVariantType & aValueThe new value.

string()

const UString &string()const [pure virtual]

Get the data value as a descriptor.

Exceptions
osncore:AlfDataException

Thrown if type() is not EString.

Since
S60 ?S60_version

type()

Type type()const [pure virtual]

Get the data type.

Since
S60 ?S60_version

uinteger()

uint uinteger()const [pure virtual]

Get the data value as an unsigned integer.

Exceptions
osncore:AlfDataException

Thrown if type() is not EUInt.

Since
S60 ?S60_version

Member Enumerations Documentation

Enum Type

Type enumeration.

Enumerators

EBool
EInt
EUint
EReal
EString
EContainer
EMap
EBranch
ECustomData