CAlfPropertyOwner Class Reference

class CAlfPropertyOwner : public CBase

Value property object base class

Manages a list of properties. The current policy is that properties must always return a valid pointer, never NULL. Todomore

Inherits from

Constructor & Destructor Documentation

CAlfPropertyOwner()

IMPORT_C CAlfPropertyOwner ( )

~CAlfPropertyOwner()

IMPORT_C ~CAlfPropertyOwner ( )

Member Functions Documentation

CopyProperty(const CAlfPropertyOwner &, const TDesC8 &)

IMPORT_C TInt CopyProperty ( const CAlfPropertyOwner & aOwner,
const TDesC8 & aPropertyName
)

Copies named property from another object

Parameters

const CAlfPropertyOwner & aOwner Object which has the property to be copied
const TDesC8 & aPropertyName The name of a property

Find(const TDesC8 &, TInt *, TAlfPropertyType *)

TBool Find ( const TDesC8 & aName,
TInt * aIndex = NULL,
TAlfPropertyType * aType = NULL
) const [private]

Find a generic property object.

Parameters

const TDesC8 & aName the name of the property to find.
TInt * aIndex = NULL Return parameter for index found.
TAlfPropertyType * aType = NULL Return parameter for type found.

FindOfType(const TDesC8 &, TInt *, TAlfPropertyType)

TBool FindOfType ( const TDesC8 & aName,
TInt * aIndex,
TAlfPropertyType aRequiredType
) const [private]

Find a property object of given type.

Does type checking to ensure that we got the expected property type.

Parameters

const TDesC8 & aName the name of the property to find.
TInt * aIndex Return parameter for index found.
TAlfPropertyType aRequiredType Type that is expected

PropertyClear()

IMPORT_C void PropertyClear ( )

Remove all properties.

PropertyFindInteger(const TDesC8 &, TInt *)

IMPORT_C TBool PropertyFindInteger ( const TDesC8 & aName,
TInt * aRet = NULL
) const

Find the property by name. Can be overridden to provide custom handling of properties.

Parameters

const TDesC8 & aName the name of the property to find.
TInt * aRet = NULL Return parameter for the found value, or NULL if no value required.

PropertyFindInteger(const TDesC8 &, TRangedValue &)

TBool PropertyFindInteger ( const TDesC8 & aName,
TRangedValue & aValue
) const [private]

!Internal util: Find complete ranged value.

Parameters

const TDesC8 & aName
TRangedValue & aValue

PropertyFindString(const TDesC8 &, TDesC **)

IMPORT_C TBool PropertyFindString ( const TDesC8 & aName,
TDesC ** aRet = NULL
) const

Find the property by name. Can be overridden to provide custom handling of properties.

Parameters

const TDesC8 & aName the name of the property to find.
TDesC ** aRet = NULL Return parameter for the found value, or NULL if no value required.

PropertyOwnerExtension(const TUid &, TAny **)

IMPORT_C void PropertyOwnerExtension ( const TUid & aExtensionUid,
TAny ** aExtensionParams
) [protected, virtual]

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

PropertyRemove(const TDesC8 &)

IMPORT_C TBool PropertyRemove ( const TDesC8 & aName )

Remove the property by name, if it exists.

Parameters

const TDesC8 & aName the name of the property to remove.

PropertySetIntegerL(const TDesC8 &, TInt, TInt, TInt)

IMPORT_C TBool PropertySetIntegerL ( const TDesC8 & aName,
TInt aVal,
TInt aMin = INT_MIN,
TInt aMax = INT_MAX
)

Set a value property. This will set a property of type integer. If the property is already set, it will update the property's value. If not, it will create a new property. Can be overridden to provide custom handling of properties.

Parameters

const TDesC8 & aName the name of the property to set.
TInt aVal The value of the property.
TInt aMin = INT_MIN
TInt aMax = INT_MAX

PropertySetStringL(const TDesC8 &, const TDesC &)

IMPORT_C TBool PropertySetStringL ( const TDesC8 & aName,
const TDesC & aVal
)

Set a string property. This will set a property of type string. If the property is already set, it will update the property's value. If not, it will create a new property. Can be overridden to provide custom handling of properties.

Parameters

const TDesC8 & aName the name of the property to set.
const TDesC & aVal The value of the property.

Member Data Documentation

RPointerArray< CAlfProperty > iProperties

RPointerArray < CAlfProperty > iProperties [private]

TAny * iSpare

TAny * iSpare [private]