CSPSettingsEngine Class Reference

class CSPSettingsEngine : public CBase

Engine class for Service Provider Settings API.

Do actual storage operations for service settings.

serviceprovidersettings.lib
Since
S60 v3.2

Inherits from

Public Member Functions
~CSPSettingsEngine()
voidAddEntryL(CSPEntry &)
TInt AddOrUpdatePropertiesL(TServiceId, const RPropertyArray &)
TInt BeginTransactionLC()
TInt CommitTransaction()
TInt DeleteEntryL(TServiceId)
TInt DeleteServicePropertiesL(TServiceId, const RPropertyNameArray &)
TInt FindEntryL(TServiceId, CSPEntry &)
TInt FindPropertyL(TServiceId, TServicePropertyName, CSPProperty &)
voidFindServiceIdsFromPropertiesL(const RPropertyArray &, RIdArray &)
TInt FindServiceIdsL(RIdArray &)
voidFindServiceNamesL(RIdArray &, CDesCArray &)
TInt FindSubServicePropertiesL(TServiceId, TSPItemType, RPropertyArray &)
TBool HasCallPropertyName(const RPropertyNameArray &)
TBool HasVoIPAndVmbxPropertyName(const RPropertyNameArray &)
TBool IsFeatureSupportedL(TSPServiceFeature, TBool)
TBool IsVoIPServiceL(TServiceId)
voidNameArrayFromPropertyArrayL(RPropertyNameArray &, const RPropertyArray &)
CSPSettingsEngine *NewL()
CSPSettingsEngine *NewLC()
voidRollbackTransaction()
TInt SettingsCountL()
TInt UpdateEntryL(const CSPEntry &)
voidUpdateSupportFeaturePSKeyL()
Private Member Functions
CSPSettingsEngine()
TBool CheckFeatureL(TInt, TInt)
voidCleanupPointerArray(TAny *)
voidConstructL()
voidConvertSpArrayToCenRepArrayL(const RPropertyArray &, RIpAppPropArray &)
voidConvertSpEntryToCenRepArrayL(const CSPEntry &, RIpAppPropArray &)
voidPropertyNameArrayFromItemTypeL(TSPItemType, RPropertyNameArray &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CCenRepDatabaseUtil *iCenRepUtils

Constructor & Destructor Documentation

CSPSettingsEngine()

CSPSettingsEngine()[private]

C++ default constructor.

~CSPSettingsEngine()

~CSPSettingsEngine()[virtual]

Destructors.

Member Functions Documentation

AddEntryL(CSPEntry &)

voidAddEntryL(CSPEntry &aEntry)

Stores new service provider settings entry

Since
S60 v3.2

Parameters

CSPEntry & aEntryNew service provider settings entry, on return service Id is filled in

AddOrUpdatePropertiesL(TServiceId, const RPropertyArray &)

TInt AddOrUpdatePropertiesL(TServiceIdaServiceId,
const RPropertyArray &aPropertyArray
)

Add or update properties of service provider settings entry to storage. If property name exists, update property. If property doesn't exist,

Since
S60 v3.2

Parameters

TServiceId aServiceIdThe ID of updated service entry
const RPropertyArray & aPropertyArraynew properties to be added or updated

BeginTransactionLC()

TInt BeginTransactionLC()

Starts transaction in repository

Since
S60 v3.2

CheckFeatureL(TInt, TInt)

TBool CheckFeatureL(TIntaMask,
TIntaValue
)[private]

Walk through all the sevices and check there is any service match

Since
S60 v3.2

Parameters

TInt aMaskattribute mask
TInt aValuevalue to be checked

CleanupPointerArray(TAny *)

voidCleanupPointerArray(TAny *aPointer)[private, static]

Parameters

TAny * aPointer

CommitTransaction()

TInt CommitTransaction()

Commits changes in repository

Since
S60 v3.2

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

ConvertSpArrayToCenRepArrayL(const RPropertyArray &, RIpAppPropArray &)

voidConvertSpArrayToCenRepArrayL(const RPropertyArray &aSpArray,
RIpAppPropArray &aCenRepArray
)[private]

Parameters

const RPropertyArray & aSpArray
RIpAppPropArray & aCenRepArray

ConvertSpEntryToCenRepArrayL(const CSPEntry &, RIpAppPropArray &)

voidConvertSpEntryToCenRepArrayL(const CSPEntry &aEntry,
RIpAppPropArray &aArray
)[private]

Parameters

const CSPEntry & aEntry
RIpAppPropArray & aArray

DeleteEntryL(TServiceId)

TInt DeleteEntryL(TServiceIdaServiceId)

Deletes service provider settings entry from storage by service ID.

Since
S60 v3.2

Parameters

TServiceId aServiceId

DeleteServicePropertiesL(TServiceId, const RPropertyNameArray &)

TInt DeleteServicePropertiesL(TServiceIdaServiceId,
const RPropertyNameArray &aNameArray
)

Deletes service properties by service ID and property name.

Since
S60 v3.2

Parameters

TServiceId aServiceIdThe service ID of requested service entry
const RPropertyNameArray & aNameArrayname of properties to be deleted

FindEntryL(TServiceId, CSPEntry &)

TInt FindEntryL(TServiceIdaServiceId,
CSPEntry &aEntry
)

Search service provider settings entry by service ID.

Since
S60 v3.2

Parameters

TServiceId aServiceIdId of requested xSP settings entry
CSPEntry & aEntryon return, SP settings entry corresponding to aServiceId.

FindPropertyL(TServiceId, TServicePropertyName, CSPProperty &)

TInt FindPropertyL(TServiceIdaServiceId,
TServicePropertyNameaPropertyName,
CSPProperty &aProperty
)

Search property of service provider settings entry from storage.

Since
S60 v3.2

Parameters

TServiceId aServiceIdThe service ID of requested service entry
TServicePropertyName aPropertyNameproperty name to be found
CSPProperty & aPropertyon return, requested property

FindServiceIdsFromPropertiesL(const RPropertyArray &, RIdArray &)

voidFindServiceIdsFromPropertiesL(const RPropertyArray &aPropertyArray,
RIdArray &aServiceIds
)

Find service IDs with same properties

Since
S60 v3.2

Parameters

const RPropertyArray & aPropertyArrayproperty array
RIdArray & aServiceIds

FindServiceIdsL(RIdArray &)

TInt FindServiceIdsL(RIdArray &aServiceIds)

Search all service provider IDs from storage

Since
S60 v3.2

Parameters

RIdArray & aServiceIdsAn array containing returned service IDs

FindServiceNamesL(RIdArray &, CDesCArray &)

voidFindServiceNamesL(RIdArray &aServiceIds,
CDesCArray &aServiceNames
)

Search all service names from settings storage by given service IDs. Removes service ID from given array if corresponding service name is not found.

Since
S60 v3.2

Parameters

RIdArray & aServiceIdsAn array of service IDs
CDesCArray & aServiceNameson return, array which saves found service names

FindSubServicePropertiesL(TServiceId, TSPItemType, RPropertyArray &)

TInt FindSubServicePropertiesL(TServiceIdaServiceId,
TSPItemTypeaPropertyType,
RPropertyArray &aPropertyArray
)

Search subservice properties of requested service provider settings entry by ID.

Since
S60 v3.2

Parameters

TServiceId aServiceIdThe ID of requested service entry
TSPItemType aPropertyTypeproperty type of sub service
RPropertyArray & aPropertyArrayon return, array which saves found subservice properties

HasCallPropertyName(const RPropertyNameArray &)

TBool HasCallPropertyName(const RPropertyNameArray &aNameArray)

Check if an array has call related property name in it

Since
S60 v3.2.3

Parameters

const RPropertyNameArray & aNameArray

HasVoIPAndVmbxPropertyName(const RPropertyNameArray &)

TBool HasVoIPAndVmbxPropertyName(const RPropertyNameArray &aNameArray)

Check if an array has VoIP or Vmbx related property name in it

Since
S60 v3.2.3

Parameters

const RPropertyNameArray & aNameArray

IsFeatureSupportedL(TSPServiceFeature, TBool)

TBool IsFeatureSupportedL(TSPServiceFeatureaFeature,
TBoolaWriteAllowed
)

Check feature is supported or not

Since
S60 v3.2

Parameters

TSPServiceFeature aFeature
TBool aWriteAllowed

IsVoIPServiceL(TServiceId)

TBool IsVoIPServiceL(TServiceIdaServiceId)

Check if it is VoIP Service ID

Since
S60 v3.2.3

Parameters

TServiceId aServiceId

NameArrayFromPropertyArrayL(RPropertyNameArray &, const RPropertyArray &)

voidNameArrayFromPropertyArrayL(RPropertyNameArray &aNameArray,
const RPropertyArray &aPropertyArray
)

Get Name array from Property array

Since
S60 v3.2.3

Parameters

RPropertyNameArray & aNameArray
const RPropertyArray & aPropertyArray

NewL()

CSPSettingsEngine *NewL()[static]

Two-phased constructor.

NewLC()

CSPSettingsEngine *NewLC()[static]

Two-phased constructor.

PropertyNameArrayFromItemTypeL(TSPItemType, RPropertyNameArray &)

voidPropertyNameArrayFromItemTypeL(TSPItemTypeaPropertyType,
RPropertyNameArray &aNameArray
)[private]

Parameters

TSPItemType aPropertyType
RPropertyNameArray & aNameArray

RollbackTransaction()

voidRollbackTransaction()

Rollback changes in repository

Since
S60 v3.2

SettingsCountL()

TInt SettingsCountL()

Return count of service provider settings entries in storage.

Since
S60 v3.2

UpdateEntryL(const CSPEntry &)

TInt UpdateEntryL(const CSPEntry &aEntry)

Updates service provider settings entry to settings storage.

Since
S60 v3.2

Parameters

const CSPEntry & aEntryUpdated service provider settings entry

UpdateSupportFeaturePSKeyL()

voidUpdateSupportFeaturePSKeyL()

When service table is changed, update the P&S key

Since
S60 v3.2

Member Data Documentation

CCenRepDatabaseUtil * iCenRepUtils

CCenRepDatabaseUtil *iCenRepUtils[private]