class CSuplSettingsInternal : public CSuplSettings |
This class is used for accessing SUPL settings. The SUPL settings contains information such about server properties which includes following:
Server address in string format. This is an HSLP address used for SUPL connection. Protocol version in mmnn format where mm indicates minor version nn is major version The Internet Access Point Name refers to the access point which is used to access the HSLP over the internet. This can have maximum size of 100 characters. Manufacturer name of server indicates the server manufacturer. Time stamp when last used. Time stamp when last tried. Network info when the server was last used Network info when the server was last used sucessfully Information on whether server supports emergency support or not Information on whether server supports TLS or not Information on whether server supports PSK-TLS or not Information on whether server enabled or not Information on whether this server entry needs to be deleted when SIM changes Information on whether server can be used in the home network or not Information on whether this server entry can be edited or not SUPL Usage indicates whether user should be notified before using SUPL. Fallback indicates whether fallback is allowed or not if SUPL session fails with default server.
When changing SUPL settings, client has to explicitly lock the SUPL settings and unlock the SUPL settings immediately after the changes are made. Locking is required to avoid multiple clients changing SUPL settings at the same time. Only after unlock of SUPL settings, changes are committed to SUPL settings storage.
Private Member Functions | |
---|---|
CSuplSettingsInternal() | |
CSuplSettingsInternal(const CSuplSettingsInternal &) | |
void | ConstructL() |
CSuplSettingsInternal & | operator=(const CSuplSettingsInternal &) |
Public Member Enumerations | |
---|---|
enum | TServerParam { EServerAddress = 0, EProtocolVersion, EEmergencySupport, ETlsEnabled, EPskTlsUsed, EIap, EServerEnabled, EManufacturer, ESimChangeRemove, EUsageInHomeNw, ETimeLastUse, ETimeLastTried, ENetInfoLastUse, ENetInfoLastSucess, EEditable } |
enum | TSessionParam { ETriggerNotificationStatus = 0, EOutstandingTriggers = 1 } |
enum | TSuplSettingsNetworkType { EGsmNetwork = 0, EWcdmaNetwork } |
Inherited Enumerations | |
---|---|
CSuplSettings:TSuplSettingsUsage |
CSuplSettingsInternal | ( | const CSuplSettingsInternal & | ) | [private] |
const CSuplSettingsInternal & |
IMPORT_C TInt | DeleteAllSessionRecords | ( | ) |
IMPORT_C TInt | DeleteSessionRecord | ( | TInt64 | aSessionId | ) |
TInt64 aSessionId |
IMPORT_C TInt | GetDefaultSlpId | ( | TInt64 & | aSlpId | ) | const |
This method is used to retrieve default SLP identification.
TInt64 & aSlpId |
IMPORT_C TInt | GetEmergencySupportFlag | ( | const TInt64 | aSlpId, |
TBool & | aEmergencySupportFlag | |||
) | const |
This method is used to retrieve parameter which indicates whether server supports emergency service or not.
IMPORT_C TInt | GetFallBackTimerValue | ( | TInt & | aTimerValue | ) |
This Method is used to Set the fallback timer value into the SUPL Settings
TInt & aTimerValue |
IMPORT_C TInt | GetLastTriedTime | ( | const TInt64 | aSlpId, |
TTime & | aTime | |||
) | const |
This method is used to retrieve timestamp when the HSLP was used tried last time.
IMPORT_C TInt | GetLastUseTime | ( | const TInt64 | aSlpId, |
TTime & | aTime | |||
) | const |
This method is used to retrieve timestamp when the SLP was used last time.
IMPORT_C TInt | GetManufacturerName | ( | const TInt64 | aSlpId, |
TDes & | aManufacturerName | |||
) | const |
This method is used to retrieve manufacturer name in server parameters. Manufacturer name refers to the service provider who is providing SUPL service. It is client's responsibility to allocate memory to aManufacturer parameter before invoking this method.
IMPORT_C TInt | GetNetInfoLastSucess | ( | const TInt64 | aSlpId, |
CSuplSettingsInternal::TSuplSettingsNetworkType & | aNetType, | |||
TInt & | aMcc, | |||
TInt & | aMnc, | |||
TInt & | aCid, | |||
TInt & | aLac | |||
) | const |
This method is used to retrieve network information when the SUPL session was last done sucessfully.
IMPORT_C TInt | GetNetInfoLastUse | ( | const TInt64 | aSlpId, |
CSuplSettingsInternal::TSuplSettingsNetworkType & | aNetType, | |||
TInt & | aMcc, | |||
TInt & | aMnc, | |||
TInt & | aCid, | |||
TInt & | aLac | |||
) | const |
This method is used to retrieve network information when the SUPL session was last done. The SUPL session could be sucessful one or failed one.
IMPORT_C TInt | GetPskTlsFlag | ( | const TInt64 | aSlpId, |
TBool & | aPskTlsFlag | |||
) | const |
This method is used to retrieve parameter which indicates whether server supports PSK-TLS or not.
IMPORT_C TInt | GetServerExtensionParams | ( | TInt64 | aSlpId, |
CServerExtensionParams * | aServerExtnParams | |||
) | const |
TInt64 aSlpId | |
CServerExtensionParams * aServerExtnParams |
IMPORT_C TInt | GetTlsFlag | ( | const TInt64 | aSlpId, |
TBool & | aTlsFlag | |||
) | const |
This method is used to retrieve parameter which indicates whether server supports TLS or not.
IMPORT_C TInt | GetVersion | ( | const TInt64 | aSlpId, |
TInt & | aMajor, | |||
TInt & | aMinor | |||
) | const |
This method is used to retrieve protocol version supported by SUPL server. The protocol version consists of two parts : Major version and Minor version.
IMPORT_C TInt | InsertSessionRecord | ( | const CTriggerParams * | aSessionParamValues | ) |
const CTriggerParams * aSessionParamValues |
IMPORT_C TInt | RemoveOnSimChange | ( | ) |
This method is used to delete all servers which have the Sim Change Remove Flag set
IMPORT_C TInt | SetEmergencySupportFlag | ( | const TInt64 | aSlpId, |
const TBool | aEmergencySupportFlag | |||
) |
This method is used to change parameter which indicates whether server supports emergency service or not.
IMPORT_C TInt | SetFallBackTimerValue | ( | const TInt | aTimerValue | ) |
This Method is used to Get the fallback timer value from the SUPL Settings
const TInt aTimerValue |
IMPORT_C TInt | SetLastTriedTime | ( | const TInt64 | aSlpId, |
const TTime | aTime | |||
) |
This method is used to change timestamp when the HSLP was used tried last time.
IMPORT_C TInt | SetLastUseTime | ( | const TInt64 | aSlpId, |
const TTime | aTime | |||
) |
This method is used to change timestamp when the HSLP was used last time.
IMPORT_C TInt | SetManufacturerName | ( | const TInt64 | aSlpId, |
const TDesC & | aManufacturer | |||
) |
This method is used to change manufacturer in server parameters. Manufacturer name refers to the service provider who is providing SUPL service.
IMPORT_C TInt | SetNetInfoLastSucess | ( | const TInt64 | aSlpId, |
const CSuplSettingsInternal::TSuplSettingsNetworkType | aNetType, | |||
const TInt | aMcc, | |||
const TInt | aMnc, | |||
const TInt | aCid, | |||
const TInt | aLac = 0 | |||
) |
This method is used to change network information when the SUPL session was last done sucessfully.
IMPORT_C TInt | SetNetInfoLastUse | ( | const TInt64 | aSlpId, |
const CSuplSettingsInternal::TSuplSettingsNetworkType | aNetType, | |||
const TInt | aMcc, | |||
const TInt | aMnc, | |||
const TInt | aCid, | |||
const TInt | aLac = 0 | |||
) |
This method is used to change network information when the SUPL session was last done. The SUPL session could be sucessful one or failed one.
IMPORT_C TInt | SetOutstandingTriggers | ( | TInt64 | aSessionId, |
TUint64 | aOutstandingTriggers | |||
) |
IMPORT_C TInt | SetPskTlsSupportFlag | ( | const TInt64 | aSlpId, |
const TBool | aPskTlsSupportFlag | |||
) |
This method is used to change parameter which indicates whether server supports PSK-TLS or not.
IMPORT_C TInt | SetServerExtensionParams | ( | TInt64 | aSlpId, |
CServerExtensionParams * | aServerExtnParams | |||
) |
TInt64 aSlpId | |
CServerExtensionParams * aServerExtnParams |
IMPORT_C TInt | SetTlsSupportFlag | ( | const TInt64 | aSlpId, |
const TBool | aTlsSupportFlag | |||
) |
This method is used to change parameter which indicates whether server supports TLS or not.
IMPORT_C TInt | SetTopPriority | ( | const TInt64 | aSlpId | ) |
This method is used to set one server entry as default in SUPL settings.
const TInt64 aSlpId |
IMPORT_C TInt | SetVersion | ( | const TInt64 | aSlpId, |
const TInt | aMajor, | |||
const TInt | aMinor | |||
) |
This method is used to change protocol version supported by SUPL server. The protocol version consists of two parts : Major version and Minor version.
CSuplSettingsInternal & | operator= | ( | const CSuplSettingsInternal & | ) | [private] |
const CSuplSettingsInternal & |
Enumeration to indicate which parameter of server needs to be changed. This is one of the parameters for Set() method. Client has to select one of the values from this enumeration when changing SUPL settings. For example, if UI application is changing SUPL settings, it should select EUserInterface. Client can get information about particular parameter from SUPL settings using Get() method with this enumeration.
EServerAddress = 0 |
Indicates SUPL server address parameter in server parameters |
EProtocolVersion |
Indicates protocol version parameter in server parameters |
EEmergencySupport |
Indicates emergency support parameter in server parameters |
ETlsEnabled |
Indicates TLS parameter in server parameters |
EPskTlsUsed |
Indicates PSK-TLS parameter in server parameters |
EIap |
Indicates IAP parameter in server parameters |
EServerEnabled |
Indicates server enabled parameter in server parameters |
EManufacturer |
Indicates manufacturer parameter in server parameters |
ESimChangeRemove |
Indicates SIM change remove parameter in server parameters |
EUsageInHomeNw |
Indicates usage in home network parameter in server parameters |
ETimeLastUse |
Indicates time stamp when used last time parameter in server parameters |
ETimeLastTried |
Indicates time stamp when used tried parameter in server parameters |
ENetInfoLastUse |
Indicates network information when used last time parameter in server parameters |
ENetInfoLastSucess |
Indicates network information when last succeeded parameter in server parameters |
EEditable |
Indicates editable parameter in server parameters |
Enumeration to indicate which parameter of active session needs to be changed.
ETriggerNotificationStatus = 0 |
Indicates Trigger notification status parameter |
EOutstandingTriggers = 1 |
Indicates number of outstanding triggers parameter |
Enumeration to indicate which type of network used. This is one of the parameters for SetNetInfoLastUse() and SetNetInfoLastSucess() methods. Client has to select one of the values from this enumeration when changing network info in server settings.
EGsmNetwork = 0 |
Indicates that network is GSM network |
EWcdmaNetwork |
Indicates that network is WCDMA network |
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.