CSPEntry Class Reference

class CSPEntry : public CBase

Service Provider Settings entry. Container class for service attributes and settings properties

serviceprovidersettings.lib
Since
S60 V3.2

Inherits from

Constructor & Destructor Documentation

CSPEntry()

CSPEntry()[private]

C++ default constructor.

~CSPEntry()

IMPORT_C~CSPEntry()[virtual]

Destructors.

Member Functions Documentation

AddPropertyL(const CSPProperty &)

IMPORT_C TIntAddPropertyL(const CSPProperty &aProperty)

Adds new property to this entry.

Since
S60 V3.2

Parameters

const CSPProperty & aPropertynew property pointer

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DeleteProperty(TInt)

IMPORT_C TIntDeleteProperty(TIntaIndex)

Deletes property from this entry by index.

Since
S60 V3.2

Parameters

TInt aIndexindex of requested property

DeleteProperty(TServicePropertyName)

IMPORT_C TIntDeleteProperty(TServicePropertyNameaProperty)

Deletes property from this entry by property name.

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyproperty name

GetAllProperties()

IMPORT_C const RPropertyArray &GetAllProperties()const

Returns all properties of this entry.

Since
S60 V3.2

GetProperty(const CSPProperty *&, TServicePropertyName)

IMPORT_C TIntGetProperty(const CSPProperty *&aProperty,
TServicePropertyNameaPropertyName
)const

Returns property of this entry by property name.

Since
S60 V3.2

Parameters

const CSPProperty *& aPropertyOn return, reference to requested property
TServicePropertyName aPropertyNameName of requested property

GetProperty(const CSPProperty *&, TInt)

IMPORT_C TIntGetProperty(const CSPProperty *&aProperty,
TIntaIndex
)const

Returns property of this entry by property index.

Since
S60 V3.2

Parameters

const CSPProperty *& aPropertyOn return, reference to requested property
TInt aIndexindex of requested property

GetServiceId()

IMPORT_C TServiceIdGetServiceId()const

Returns service Id of this entry.

Since
S60 V3.2

GetServiceName()

IMPORT_C const TDesC &GetServiceName()const

Returns service name of this entry.

Since
S60 V3.2

NewL()

IMPORT_C CSPEntry *NewL()[static]

Two-phased constructor.

NewLC()

IMPORT_C CSPEntry *NewLC()[static]

Two-phased constructor.

PropertyCount()

IMPORT_C TIntPropertyCount()const

Returns count of properties in this entry

Since
S60 V3.2

Reset()

IMPORT_C voidReset()

reset service entry

Since
S60 V3.2

SearchProperty(TServicePropertyName)

TInt SearchProperty(TServicePropertyNameaProperty)const [private]

Search index of requested property in iPropertyArray

Since
S60 ?S60_version

Parameters

TServicePropertyName aProperty

SetServiceId(TServiceId)

voidSetServiceId(TServiceIdaServiceId)

Sets unique service provider ID for this entry. This ID is generated automatically when new entry is added. Service ID is also required when user updates entry in service table

Since
S60 V3.2

Parameters

TServiceId aServiceIdservice ID

SetServiceName(const TDesC &)

IMPORT_C TIntSetServiceName(const TDesC &aServiceName)

Sets service name for this entry.

Since
S60 V3.2

Parameters

const TDesC & aServiceNameservice name

UpdateProperty(TServicePropertyName, TInt)

IMPORT_C TIntUpdateProperty(TServicePropertyNameaPropertyName,
TIntaValue
)

Updates content of property in this entry.

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyNameproperty name
TInt aValuenew TInt value

UpdateProperty(TServicePropertyName, const TDesC &)

IMPORT_C TIntUpdateProperty(TServicePropertyNameaPropertyName,
const TDesC &aValue
)

Updates content of property in this entry.

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyNameproperty name
const TDesC & aValuenew TDesC value

UpdateProperty(TServicePropertyName, TOnOff)

IMPORT_C TIntUpdateProperty(TServicePropertyNameaPropertyName,
TOnOffaValue
)

Updates content of property in this entry.

Since
S60 V3.2

Parameters

TServicePropertyName aPropertyNameproperty name
TOnOff aValuenew TOnOff value

Member Data Documentation

RPropertyArray iPropertyArray

RPropertyArray iPropertyArray[private]

Service settings properties owned by this entry Own.

TServiceId iServiceId

TServiceId iServiceId[private]

Id of service settings entry ( unique )

RBuf iServiceName

RBuf iServiceName[private]

Name of settings entry ( unique ) Own.