| 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
| Public Member Functions | |
|---|---|
| CAlfPropertyOwner () | |
| ~CAlfPropertyOwner () | |
| IMPORT_C TInt | CopyProperty (const CAlfPropertyOwner &, const TDesC8 &) |
| IMPORT_C void | PropertyClear () |
| IMPORT_C TBool | PropertyFindInteger (const TDesC8 &, TInt *) |
| IMPORT_C TBool | PropertyFindString (const TDesC8 &, TDesC **) |
| IMPORT_C TBool | PropertyRemove (const TDesC8 &) |
| IMPORT_C TBool | PropertySetIntegerL (const TDesC8 &, TInt , TInt , TInt ) |
| IMPORT_C TBool | PropertySetStringL (const TDesC8 &, const TDesC &) |
| Protected Member Functions | |
|---|---|
| IMPORT_C void | PropertyOwnerExtension (const TUid &, TAny **) |
| Private Member Functions | |
|---|---|
| TBool | Find (const TDesC8 &, TInt *, TAlfPropertyType *) |
| TBool | FindOfType (const TDesC8 &, TInt *, TAlfPropertyType ) |
| TBool | PropertyFindInteger (const TDesC8 &, TRangedValue &) |
| Private Attributes | |
|---|---|
| RPointerArray < CAlfProperty > | iProperties |
| TAny * | iSpare |
| IMPORT_C TInt | CopyProperty | ( | const CAlfPropertyOwner & | aOwner, |
| const TDesC8 & | aPropertyName | |||
| ) | ||||
Copies named property from another object
| const CAlfPropertyOwner & aOwner | Object which has the property to be copied |
| const TDesC8 & aPropertyName | The name of a property |
| TBool | Find | ( | const TDesC8 & | aName, |
| TInt * | aIndex = NULL, | |||
| TAlfPropertyType * | aType = NULL | |||
| ) | const [private] | |||
Find a generic property object.
| 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. |
| 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.
| const TDesC8 & aName | the name of the property to find. |
| TInt * aIndex | Return parameter for index found. |
| TAlfPropertyType aRequiredType | Type that is expected |
| 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.
| TBool | PropertyFindInteger | ( | const TDesC8 & | aName, |
| TRangedValue & | aValue | |||
| ) | const [private] | |||
!Internal util: Find complete ranged value.
| const TDesC8 & aName | |
| TRangedValue & aValue |
| 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.
| IMPORT_C void | PropertyOwnerExtension | ( | const TUid & | aExtensionUid, |
| TAny ** | aExtensionParams | |||
| ) | [protected, virtual] | |||
| IMPORT_C TBool | PropertyRemove | ( | const TDesC8 & | aName | ) |
Remove the property by name, if it exists.
| const TDesC8 & aName | the name of the property to remove. |
| 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.
| 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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.