CSPProperty Class Reference

class CSPProperty : public CBase

Service provider settings property class

This class represent one property of Sevice Provider settings

serviceprovidersettings.lib
Since
S60 V3.2

Inherits from

Constructor & Destructor Documentation

CSPProperty()

CSPProperty ( ) [private]

C++ default constructor.

~CSPProperty()

IMPORT_C ~CSPProperty ( ) [virtual]

Destructors.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

CopyL(const CSPProperty &)

IMPORT_C void CopyL ( const CSPProperty & aSource )

Copies data from source property // to be removed?

Since
S60 V3.2

Parameters

const CSPProperty & aSource source property

DataType(TServicePropertyName)

IMPORT_C TPropertyDataType DataType ( TServicePropertyName aProperty ) [static]

Returns datatype of given property

Since
S60 V3.2

Parameters

TServicePropertyName aProperty property name

GetDataType()

IMPORT_C TPropertyDataType GetDataType ( ) const

Returns the datatype of this property No imported, set automatically.

Since
S60 V3.2

GetName()

IMPORT_C TServicePropertyName GetName ( ) const

Returns the name of this property

Since
S60 V3.2

GetPropertyType()

IMPORT_C TSPItemType GetPropertyType ( ) const

Returns the type of this property

Since
S60 V3.2

GetValue(TInt &)

IMPORT_C TInt GetValue ( TInt & aValue ) const

Returns value of property

Since
S60 V3.2

Parameters

TInt & aValue on return, TInt value

GetValue(TDes &)

IMPORT_C TInt GetValue ( TDes & aValue ) const

Returns value of property

Since
S60 V3.2

Parameters

TDes & aValue on return, descriptor value

GetValue(TOnOff &)

IMPORT_C TInt GetValue ( TOnOff & aValue ) const

Returns value of property

Since
S60 V3.2

Parameters

TOnOff & aValue on return, On/Off value

NewL()

IMPORT_C CSPProperty * NewL ( ) [static]

Two-phased constructor.

NewLC()

IMPORT_C CSPProperty * NewLC ( ) [static]

Two-phased constructor.

PropertyType(TServicePropertyName)

IMPORT_C TSPItemType PropertyType ( TServicePropertyName aProperty ) [static]

Returns property type of given property

Since
S60 V3.2

Parameters

TServicePropertyName aProperty property name

SetDataType(TPropertyDataType)

void SetDataType ( TPropertyDataType aDataType )

Sets the datatype of this property

Since
S60 V3.2

Parameters

TPropertyDataType aDataType new data type

SetDefaultValue(TServicePropertyName)

TInt SetDefaultValue ( TServicePropertyName aProperty ) [private]

Sets default value of property if defined

Since
S60 V3.2

Parameters

TServicePropertyName aProperty property name

SetName(TServicePropertyName)

IMPORT_C TInt SetName ( TServicePropertyName aPropertyname )

Sets the name for this property

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyname new property name

SetPropertyType(TSPItemType)

TInt SetPropertyType ( TSPItemType aPropertyType )

Sets the type for this property

Since
S60 V3.2

Parameters

TSPItemType aPropertyType property type

SetValue(TInt)

IMPORT_C TInt SetValue ( TInt aValue )

Sets value of property. Value must match to datatype.

Since
S60 V3.2

Parameters

TInt aValue new TInt value to be set

SetValue(const TDesC &)

IMPORT_C TInt SetValue ( const TDesC & aValue )

Sets the value of property. Value must match to datatype.

Since
S60 V3.2

Parameters

const TDesC & aValue new descriptor

SetValue(TOnOff)

IMPORT_C TInt SetValue ( TOnOff aValue )

Sets the value of property. Value must match to datatype.

Since
S60 V3.2

Parameters

TOnOff aValue new On/Off value

SetValueNoDataTypeCheck(const TDesC &)

TInt SetValueNoDataTypeCheck ( const TDesC & aValue )

Sets the value of this property without datatype check

Since
S60 V3.2

Parameters

const TDesC & aValue new value

operator==(const CSPProperty &)

IMPORT_C TBool operator== ( const CSPProperty & aProperty ) const

Compares data of this property to another.

Since
S60 V3.2

Parameters

const CSPProperty & aProperty property to be compared

Member Data Documentation

TPropertyDataType iDataType

TPropertyDataType iDataType [private]

Datatype of property

TServicePropertyName iPropertyName

TServicePropertyName iPropertyName [private]

Name of property

TSPItemType iPropertyType

TSPItemType iPropertyType [private]

Property type

RBuf iPropertyValue

RBuf iPropertyValue [private]

Descriptor of property value Own.