CSPSettings Class Reference
class CSPSettings : public CBase
|
Service provider settings API class
Main class of managing service provider settings
example code of how to add a new service entry to service table
CSPEntry* entry = CSPEntry::NewL();
TInt err = entry->SetServiceName( _L("somename" ) );
CSPProperty* property = CSPProperty::NewL();
err = property->SetName( EPropertyServiceAttributeMask );
property->SetValue( 100 );
err = entry->AddProperty( property );
// iSettings is instance of CSPSettings
TInt err = iSettings->AddEntryL( *entry );
serviceprovidersettings.lib
-
Since
-
S60 v3.2
Public Member Functions
|
|
~CSPSettings
()
|
IMPORT_C
TInt
|
AddEntryL
(
CSPEntry
&)
|
IMPORT_C
TInt
|
AddOrUpdatePropertiesL
(
TServiceId
, const
RPropertyArray
&)
|
IMPORT_C
TInt
|
AddOrUpdatePropertyL
(
TServiceId
, const
CSPProperty
&)
|
IMPORT_C
TInt
|
DeleteEntryL
(
TServiceId
)
|
IMPORT_C
TInt
|
DeleteServicePropertiesL
(
TServiceId
, const
RPropertyNameArray
&)
|
IMPORT_C
TInt
|
FindEntryL
(
TServiceId
,
CSPEntry
&)
|
IMPORT_C
TInt
|
FindPropertyL
(
TServiceId
,
TServicePropertyName
,
CSPProperty
&)
|
IMPORT_C
TInt
|
FindServiceIdsFromPropertiesL
(const
RPropertyArray
&,
RIdArray
&)
|
IMPORT_C
TInt
|
FindServiceIdsL
(
RIdArray
&)
|
IMPORT_C
TInt
|
FindServiceNamesL
(
RIdArray
&,
CDesCArray
&)
|
IMPORT_C
TInt
|
FindSubServicePropertiesL
(
TServiceId
,
TSPItemType
,
RPropertyArray
&)
|
IMPORT_C const
TDesC
&
|
GetSIPVoIPSWVersion
()
|
IMPORT_C
TBool
|
IsFeatureSupported
(
TSPServiceFeature
)
|
IMPORT_C
CSPSettings
*
|
NewL
()
|
IMPORT_C
CSPSettings
*
|
NewLC
()
|
IMPORT_C
TInt
|
SettingsCountL
()
|
IMPORT_C
TInt
|
UpdateEntryL
(const
CSPEntry
&)
|
Constructor & Destructor Documentation
CSPSettings()
CSPSettings
|
(
|
)
|
[private]
|
~CSPSettings()
IMPORT_C
|
~CSPSettings
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddEntryL(CSPEntry &)
Stores new service provider settings entry, service Id is returned inside aEntry object
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, add property
Parameters
TServiceId
aServiceId
|
The ID of updated service entry
|
const
RPropertyArray
& aPropertyArray
|
new properties to be added or updated
|
AddOrUpdatePropertyL(TServiceId, const CSPProperty &)
Add or update one property of service provider settings entry to storage. If property name exists, update property. If property doesn't exist, add property
Parameters
TServiceId
aServiceId
|
The ID of updated service entry
|
const
CSPProperty
& aProperty
|
new property to be added or updated
|
CheckSupportedL(TServiceId, const RPropertyNameArray &)
Check is VoIP Service Id and then are Properties VoIP related
CheckSupportedL(TServiceId)
CheckSupportedL(TSPItemType)
Check is SP item type VoIP related
CheckSupportedL(const RPropertyArray &)
Check does an array have Properties VoIP related
CommitOrRollbackL(TInt, TServiceId)
Commit or rollback transaction
-
Since
-
S60 v3.2
Parameters
TInt
aError
|
error code of CenRep operation
|
TServiceId
aServiceId
|
changed service Id
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
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 ID from array if it is not found from settings storage.
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 and subservice type
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
|
GetSIPVoIPSWVersion()
IMPORT_C const
TDesC
&
|
GetSIPVoIPSWVersion
|
(
|
)
|
[static]
|
Get SIP VoIP software version.
IsFeatureSupported(TSPServiceFeature)
Check feature is supported or not
SettingsCountL()
IMPORT_C
TInt
|
SettingsCountL
|
(
|
)
|
|
Return count of service provider settings entries in storage.
UpdateEntryL(const CSPEntry &)
Updates service provider settings entry to settings storage. Service ID must be set to entry before update.
Parameters
const
CSPEntry
& aEntry
|
Updated service provider settings entry
|
Member Data Documentation
TBool
iFeatureManagerSupportVoIP
TBool
|
iFeatureManagerSupportVoIP
|
[private]
|
Feature manager support VoIP Own.
CSPSettingsEngine * iSettingsEngine
TBool
iSettingsWriteAllowed
TBool
|
iSettingsWriteAllowed
|
[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.