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()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CopyL(const CSPProperty &)

IMPORT_C voidCopyL(const CSPProperty &aSource)

Copies data from source property // to be removed?

Since
S60 V3.2

Parameters

const CSPProperty & aSourcesource property

DataType(TServicePropertyName)

IMPORT_C TPropertyDataTypeDataType(TServicePropertyNameaProperty)[static]

Returns datatype of given property

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyproperty name

GetDataType()

IMPORT_C TPropertyDataTypeGetDataType()const

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

Since
S60 V3.2

GetName()

IMPORT_C TServicePropertyNameGetName()const

Returns the name of this property

Since
S60 V3.2

GetPropertyType()

IMPORT_C TSPItemTypeGetPropertyType()const

Returns the type of this property

Since
S60 V3.2

GetValue(TInt &)

IMPORT_C TIntGetValue(TInt &aValue)const

Returns value of property

Since
S60 V3.2

Parameters

TInt & aValueon return, TInt value

GetValue(TDes &)

IMPORT_C TIntGetValue(TDes &aValue)const

Returns value of property

Since
S60 V3.2

Parameters

TDes & aValueon return, descriptor value

GetValue(TOnOff &)

IMPORT_C TIntGetValue(TOnOff &aValue)const

Returns value of property

Since
S60 V3.2

Parameters

TOnOff & aValueon 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 TSPItemTypePropertyType(TServicePropertyNameaProperty)[static]

Returns property type of given property

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyproperty name

SetDataType(TPropertyDataType)

voidSetDataType(TPropertyDataTypeaDataType)

Sets the datatype of this property

Since
S60 V3.2

Parameters

TPropertyDataType aDataTypenew data type

SetDefaultValue(TServicePropertyName)

TInt SetDefaultValue(TServicePropertyNameaProperty)[private]

Sets default value of property if defined

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyproperty name

SetName(TServicePropertyName)

IMPORT_C TIntSetName(TServicePropertyNameaPropertyname)

Sets the name for this property

Since
S60 V3.2

Parameters

TServicePropertyName aPropertynamenew property name

SetPropertyType(TSPItemType)

TInt SetPropertyType(TSPItemTypeaPropertyType)

Sets the type for this property

Since
S60 V3.2

Parameters

TSPItemType aPropertyTypeproperty type

SetValue(TInt)

IMPORT_C TIntSetValue(TIntaValue)

Sets value of property. Value must match to datatype.

Since
S60 V3.2

Parameters

TInt aValuenew TInt value to be set

SetValue(const TDesC &)

IMPORT_C TIntSetValue(const TDesC &aValue)

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

Since
S60 V3.2

Parameters

const TDesC & aValuenew descriptor

SetValue(TOnOff)

IMPORT_C TIntSetValue(TOnOffaValue)

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

Since
S60 V3.2

Parameters

TOnOff aValuenew 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 & aValuenew value

operator==(const CSPProperty &)

IMPORT_C TBooloperator==(const CSPProperty &aProperty)const

Compares data of this property to another.

Since
S60 V3.2

Parameters

const CSPProperty & aPropertyproperty 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.