#include <lbs/lbshostsettingsclasstypes.h>
Link against: lbshostsettings.lib
class TLbsHostSettingsSupl : public TLbsHostSettingsBase |
Public Member Type Definitions | |
---|---|
typedef | TUint32 TAuthModes |
Public Member Enumerations | |
---|---|
enum | TLbsConnectionType { ELbsConnectionTypeInvalid, ELbsConnectionTypeNap, ELbsConnectionTypeProxy } |
enum | _TAuthModes { EAuthUnknown, EAuthNone, EAuthTls, EAuthAcaTls, EAuthPskTls } |
Public Member Functions | |
---|---|
TLbsHostSettingsSupl() | |
IMPORT_C void | GetAuthModesMOLR(TAuthModes &) |
IMPORT_C void | GetAuthModesMTLR(TAuthModes &) |
IMPORT_C void | GetConnectionPoint(TInt &, TLbsConnectionType &) |
IMPORT_C void | GetHostNameAddress(TDes8 &) |
IMPORT_C void | GetName(TDes8 &) |
IMPORT_C void | GetPortId(TInt &) |
IMPORT_C void | GetProviderId(TDes8 &) |
IMPORT_C void | GetReadOnly(TBool &) |
IMPORT_C void | SetAuthModesMOLR(TAuthModes) |
IMPORT_C void | SetAuthModesMTLR(TAuthModes) |
IMPORT_C void | SetConnectionPoint(const TInt, const TLbsConnectionType) |
IMPORT_C void | SetHostNameAddress(const TDesC8 &) |
IMPORT_C void | SetName(const TDesC8 &) |
IMPORT_C void | SetPortId(const TInt) |
IMPORT_C void | SetProviderId(const TDesC8 &) |
IMPORT_C void | SetReadOnly(const TBool) |
Inherited Attributes | |
---|---|
TLbsHostSettingsClassTypeBase::iClassSize | |
TLbsHostSettingsClassTypeBase::iClassType |
Abstraction of a SUPL account
The class has available data members to store the address, connection type as well as connection id associated with an account. Getters/seters are also provided to retrieve/set the connection type and id associated with an account, the operator identifier, the name and address of the Home SUPL server.
typedef TUint32 | TAuthModes |
Defined type for maintaining Binary Compatibility of the _TAuthModes enumeration. Used to specify a bitmask of allowed authentication mechanisms.
TAuthModes | iAuthModesMOLR | [protected] |
Supported authentication modes for terminal initiated location requests
TAuthModes | iAuthModesMTLR | [protected] |
Supported authentication modes for network initiated location requests
TLbsConnectionType | iConnectionType | [protected] |
TLbsHostNameAddress | iHostAddress | [protected] |
SUPL server host address for these settings
Type of connection point to use for the connection to the SUPL server. Other connection types are expected in the future.
Enumerator | Value | Description |
---|---|---|
ELbsConnectionTypeInvalid | 0x00 |
Connection type is invalid |
ELbsConnectionTypeNap | 0x01 |
Network access point |
ELbsConnectionTypeProxy | 0x02 |
Proxy connection type |
SUPL authentication mechanisms.
EAuthNone & EAuthTls & EAuthAcaTls & EAuthPskTls
EAuthTls & EAuthAcaTls & EAuthPskTls
EAuthAcaTls & EAuthPskTls
EAuthPskTls
and translate them as No, Low, Medium and High Security when interacting with a user. It is the responsibility of a SUPL Server to use the highest security level supported by both the Server and the SUPL Protocol Module.
Note that the enumeration may be extended in the future by adding more values. To maintain compatibility any unrecognized values must be handled as EAuthUnknown.
Enumerator | Value | Description |
---|---|---|
EAuthUnknown | 0x00 |
Unknown/undefined value |
EAuthNone | 0x01 |
No authentication allowed. |
EAuthTls | 0x02 |
TLS authentication allowed. |
EAuthAcaTls | 0x04 |
TLS + Alternative Client authentication allowed. |
EAuthPskTls | 0x08 |
PSK-TLS authentication allowed. |
IMPORT_C void | GetAuthModesMOLR | ( | TAuthModes & | aAuthModes | ) | const |
Get the authentication modes that this SUPL host setting can use for MO-LRs (terminal initiated location requests).
Parameters | |
---|---|
aAuthModes | On return it contains the authentication modes associated with this SUPL host setting. |
IMPORT_C void | GetAuthModesMTLR | ( | TAuthModes & | aAuthModes | ) | const |
Get the authentication modes that this SUPL host setting can use for MT-LRs (network initiated location requests).
Parameters | |
---|---|
aAuthModes | On return it contains the authentication modes associated with this SUPL host setting. |
IMPORT_C void | GetConnectionPoint | ( | TInt & | aConnectionId, |
TLbsConnectionType & | aConnectionType | |||
) | const |
Retrieves the connection details of the SUPL account. Note that connection point types may be added in the future, code using this API should support graceful handling of unexpected connection types.
Parameters | |
---|---|
aConnectionId | The id of connection point to use for SUPL. |
aConnectionType | The type of connection point that the id refers to. |
IMPORT_C void | GetHostNameAddress | ( | TDes8 & | aHostAddress | ) | const |
Gets the host address of this SUPL host setting entry.
Parameters | |
---|---|
aHostAddress | On return it contains the host address. |
IMPORT_C void | GetName | ( | TDes8 & | aName | ) | const |
Retrieves the host name of the SUPL server
Parameters | |
---|---|
aName | On return, contains the name of the SUPL server. |
IMPORT_C void | GetPortId | ( | TInt & | aPortId | ) | const |
Retrieves the port id of the SUPL server.
Parameters | |
---|---|
aPortId | On return, contains the port id. |
IMPORT_C void | GetProviderId | ( | TDes8 & | aProviderId | ) | const |
Retrieves the identifier for the location service provider
Parameters | |
---|---|
aProviderId | On return, contains the identifier. |
IMPORT_C void | GetReadOnly | ( | TBool & | aReadOnly | ) | const |
Retrieves the read only status of the SUPL account.
Parameters | |
---|---|
aReadOnly | If the account is read only ETrue, else EFalse. |
IMPORT_C void | SetAuthModesMOLR | ( | TAuthModes | aAuthModes | ) |
Set the authentication modes that this SUPL host setting can use for MO-LRs (terminal initiated location requests).
Parameters | |
---|---|
aAuthModes | The authentication modes associated with this SUPL host setting. |
IMPORT_C void | SetAuthModesMTLR | ( | TAuthModes | aAuthModes | ) |
Set the authentication modes that this SUPL host setting can use for MT-LRs (network initiated location requests).
Parameters | |
---|---|
aAuthModes | The authentication modes associated with this SUPL host setting. |
IMPORT_C void | SetConnectionPoint | ( | const TInt | aConnectionId, |
const TLbsConnectionType | aConnectionType | |||
) |
Sets the connection details of the SUPL account. Note that connection point types may be added in the future, code using this API should support graceful handling of unexpected connection types.
Parameters | |
---|---|
aConnectionId | The id of connection point to use for SUPL. |
aConnectionType | The type of connection point that the id refers to. |
IMPORT_C void | SetHostNameAddress | ( | const TDesC8 & | aHostAddress | ) |
Sets the host address of this SUPL host setting
Parameters | |
---|---|
aHostAddress | The host address to be set for this SUPL host setting entry. |
IMPORT_C void | SetName | ( | const TDesC8 & | aName | ) |
Sets the host name of the SUPL server
Parameters | |
---|---|
aName | The name to use. |
IMPORT_C void | SetPortId | ( | const TInt | aPortId | ) |
Sets the port id of the SUPL server.
Parameters | |
---|---|
aPortId | The port id to use. |
IMPORT_C void | SetProviderId | ( | const TDesC8 & | aProviderId | ) |
Sets the the identifier for the location service provider
Parameters | |
---|---|
aProviderId | The identifier to use. |
IMPORT_C void | SetReadOnly | ( | const TBool | aReadOnly | ) |
Sets the read only status of the SUPL account.
Parameters | |
---|---|
aReadOnly | If the account should be read only ETrue, else EFalse. |