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
Public Member Functions
|
|
~CSPSettingsEngine
()
|
void
|
AddEntryL
(
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
&)
|
void
|
FindServiceIdsFromPropertiesL
(const
RPropertyArray
&,
RIdArray
&)
|
TInt
|
FindServiceIdsL
(
RIdArray
&)
|
void
|
FindServiceNamesL
(
RIdArray
&,
CDesCArray
&)
|
TInt
|
FindSubServicePropertiesL
(
TServiceId
,
TSPItemType
,
RPropertyArray
&)
|
TBool
|
HasCallPropertyName
(const
RPropertyNameArray
&)
|
TBool
|
HasVoIPAndVmbxPropertyName
(const
RPropertyNameArray
&)
|
TBool
|
IsFeatureSupportedL
(
TSPServiceFeature
,
TBool
)
|
TBool
|
IsVoIPServiceL
(
TServiceId
)
|
void
|
NameArrayFromPropertyArrayL
(
RPropertyNameArray
&, const
RPropertyArray
&)
|
CSPSettingsEngine
*
|
NewL
()
|
CSPSettingsEngine
*
|
NewLC
()
|
void
|
RollbackTransaction
()
|
TInt
|
SettingsCountL
()
|
TInt
|
UpdateEntryL
(const
CSPEntry
&)
|
void
|
UpdateSupportFeaturePSKeyL
()
|
Constructor & Destructor Documentation
CSPSettingsEngine()
CSPSettingsEngine
|
(
|
)
|
[private]
|
~CSPSettingsEngine()
~CSPSettingsEngine
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddEntryL(CSPEntry &)
Stores new service provider settings entry
Parameters
CSPEntry
& aEntry
|
New service provider settings entry, on return service Id is filled in
|
AddOrUpdatePropertiesL(TServiceId, const RPropertyArray &)
Add or update properties of service provider settings entry to storage. If property name exists, update property. If property doesn't exist,
Parameters
TServiceId
aServiceId
|
The ID of updated service entry
|
const
RPropertyArray
& aPropertyArray
|
new properties to be added or updated
|
BeginTransactionLC()
TInt
|
BeginTransactionLC
|
(
|
)
|
|
Starts transaction in repository
CheckFeatureL(TInt, TInt)
Walk through all the sevices and check there is any service match
Parameters
TInt
aMask
|
attribute mask
|
TInt
aValue
|
value to be checked
|
CleanupPointerArray(TAny *)
void
|
CleanupPointerArray
|
(
|
TAny
*
|
aPointer
|
)
|
[private, static]
|
CommitTransaction()
TInt
|
CommitTransaction
|
(
|
)
|
|
Commits changes in repository
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
ConvertSpArrayToCenRepArrayL(const RPropertyArray &, RIpAppPropArray &)
ConvertSpEntryToCenRepArrayL(const CSPEntry &, RIpAppPropArray &)
DeleteEntryL(TServiceId)
Deletes service provider settings entry from storage by service ID.
DeleteServicePropertiesL(TServiceId, const RPropertyNameArray &)
Deletes service properties by service ID and property name.
FindEntryL(TServiceId, CSPEntry &)
Search service provider settings entry by service ID.
Parameters
TServiceId
aServiceId
|
Id of requested xSP settings entry
|
CSPEntry
& aEntry
|
on return, SP settings entry corresponding to aServiceId.
|
FindPropertyL(TServiceId, TServicePropertyName, CSPProperty &)
Search property of service provider settings entry from storage.
FindServiceIdsFromPropertiesL(const RPropertyArray &, RIdArray &)
Find service IDs with same properties
FindServiceIdsL(RIdArray &)
Search all service provider IDs from storage
Parameters
RIdArray
& aServiceIds
|
An array containing returned service IDs
|
FindServiceNamesL(RIdArray &, CDesCArray &)
Search all service names from settings storage by given service IDs. Removes service ID from given array if corresponding service name is not found.
Parameters
RIdArray
& aServiceIds
|
An array of service IDs
|
CDesCArray
& aServiceNames
|
on return, array which saves found service names
|
FindSubServicePropertiesL(TServiceId, TSPItemType, RPropertyArray &)
Search subservice properties of requested service provider settings entry by ID.
Parameters
TServiceId
aServiceId
|
The ID of requested service entry
|
TSPItemType
aPropertyType
|
property type of sub service
|
RPropertyArray
& aPropertyArray
|
on return, array which saves found subservice properties
|
HasCallPropertyName(const RPropertyNameArray &)
Check if an array has call related property name in it
HasVoIPAndVmbxPropertyName(const RPropertyNameArray &)
Check if an array has VoIP or Vmbx related property name in it
IsFeatureSupportedL(TSPServiceFeature, TBool)
Check feature is supported or not
IsVoIPServiceL(TServiceId)
Check if it is VoIP Service ID
NameArrayFromPropertyArrayL(RPropertyNameArray &, const RPropertyArray &)
Get Name array from Property array
PropertyNameArrayFromItemTypeL(TSPItemType, RPropertyNameArray &)
RollbackTransaction()
void
|
RollbackTransaction
|
(
|
)
|
|
Rollback changes in repository
SettingsCountL()
Return count of service provider settings entries in storage.
UpdateEntryL(const CSPEntry &)
Updates service provider settings entry to settings storage.
Parameters
const
CSPEntry
& aEntry
|
Updated service provider settings entry
|
UpdateSupportFeaturePSKeyL()
void
|
UpdateSupportFeaturePSKeyL
|
(
|
)
|
|
When service table is changed, update the P&S key
Member Data Documentation
CCenRepDatabaseUtil * iCenRepUtils
CCenRepDatabaseUtil *
|
iCenRepUtils
|
[private]
|
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.