TLbsHostSettingsSupl Class Reference

class TLbsHostSettingsSupl : public TLbsHostSettingsBase

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.

Inherits from

Public Member Functions
TLbsHostSettingsSupl()
IMPORT_C voidGetAuthModesMOLR(TAuthModes &)
IMPORT_C voidGetAuthModesMTLR(TAuthModes &)
IMPORT_C voidGetConnectionPoint(TInt &, TLbsConnectionType &)
IMPORT_C voidGetHostNameAddress(TDes8 &)
IMPORT_C voidGetName(TDes8 &)
IMPORT_C voidGetPortId(TInt &)
IMPORT_C voidGetProviderId(TDes8 &)
IMPORT_C voidGetReadOnly(TBool &)
IMPORT_C voidSetAuthModesMOLR(TAuthModes)
IMPORT_C voidSetAuthModesMTLR(TAuthModes)
IMPORT_C voidSetConnectionPoint(const TInt, const TLbsConnectionType)
IMPORT_C voidSetHostNameAddress(const TDesC8 &)
IMPORT_C voidSetName(const TDesC8 &)
IMPORT_C voidSetPortId(const TInt)
IMPORT_C voidSetProviderId(const TDesC8 &)
IMPORT_C voidSetReadOnly(const TBool)
Inherited Functions
TLbsHostSettingsBase::CreatorId()const
TLbsHostSettingsBase::HostSettingsId()const
TLbsHostSettingsBase::LastModified()const
TLbsHostSettingsBase::SetCreatorId(TLbsHostCreatorId)
TLbsHostSettingsBase::SetHostSettingsId(TLbsHostSettingsId &)
TLbsHostSettingsBase::SetLastModifiedL(const TDesC &)
TLbsHostSettingsBase::TLbsHostSettingsBase()
TLbsHostSettingsBase::UpdateLastModified()
TLbsHostSettingsClassTypeBase::ClassSize()const
TLbsHostSettingsClassTypeBase::ClassType()const
TLbsHostSettingsClassTypeBase::TLbsHostSettingsClassTypeBase()
Public Member Enumerations
enumTLbsConnectionType { ELbsConnectionTypeInvalid = 0x00, ELbsConnectionTypeNap = 0x01, ELbsConnectionTypeProxy = 0x02 }
enum_TAuthModes { EAuthUnknown = 0x00, EAuthNone = 0x01, EAuthTls = 0x02, EAuthAcaTls = 0x04, EAuthPskTls = 0x08 }
Public Member Type Definitions
typedef TUint32 TAuthModes
Protected Attributes
TAuthModes iAuthModesMOLR
TAuthModes iAuthModesMTLR
TInt iConnectionId
TLbsConnectionType iConnectionType
TLbsHostNameAddress iHostAddress
TLbsHostName iName
TInt iPortId
TLbsProviderId iProviderId
TBool iReadOnly
TUint8 iReserved
Inherited Attributes
TLbsHostSettingsClassTypeBase::iClassSize
TLbsHostSettingsClassTypeBase::iClassType

Constructor & Destructor Documentation

TLbsHostSettingsSupl()

IMPORT_CTLbsHostSettingsSupl()

Default constructor.

Member Functions Documentation

GetAuthModesMOLR(TAuthModes &)

IMPORT_C voidGetAuthModesMOLR(TAuthModes &aAuthModes)const

Get the authentication modes that this SUPL host setting can use for MO-LRs (terminal initiated location requests).

Parameters

TAuthModes & aAuthModesOn return it contains the authentication modes associated with this SUPL host setting.

GetAuthModesMTLR(TAuthModes &)

IMPORT_C voidGetAuthModesMTLR(TAuthModes &aAuthModes)const

Get the authentication modes that this SUPL host setting can use for MT-LRs (network initiated location requests).

Parameters

TAuthModes & aAuthModesOn return it contains the authentication modes associated with this SUPL host setting.

GetConnectionPoint(TInt &, TLbsConnectionType &)

IMPORT_C voidGetConnectionPoint(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

TInt & aConnectionIdThe id of connection point to use for SUPL.
TLbsConnectionType & aConnectionTypeThe type of connection point that the id refers to.

GetHostNameAddress(TDes8 &)

IMPORT_C voidGetHostNameAddress(TDes8 &aHostAddress)const

Gets the host address of this SUPL host setting entry.

Parameters

TDes8 & aHostAddressOn return it contains the host address.

GetName(TDes8 &)

IMPORT_C voidGetName(TDes8 &aName)const

Retrieves the host name of the SUPL server

Parameters

TDes8 & aNameOn return, contains the name of the SUPL server.

GetPortId(TInt &)

IMPORT_C voidGetPortId(TInt &aPortId)const

Retrieves the port id of the SUPL server.

Parameters

TInt & aPortIdOn return, contains the port id.

GetProviderId(TDes8 &)

IMPORT_C voidGetProviderId(TDes8 &aProviderId)const

Retrieves the identifier for the location service provider

Parameters

TDes8 & aProviderIdOn return, contains the identifier.

GetReadOnly(TBool &)

IMPORT_C voidGetReadOnly(TBool &aReadOnly)const

Retrieves the read only status of the SUPL account.

Parameters

TBool & aReadOnlyIf the account is read only ETrue, else EFalse.

SetAuthModesMOLR(TAuthModes)

IMPORT_C voidSetAuthModesMOLR(TAuthModesaAuthModes)

Set the authentication modes that this SUPL host setting can use for MO-LRs (terminal initiated location requests).

Parameters

TAuthModes aAuthModesThe authentication modes associated with this SUPL host setting.

SetAuthModesMTLR(TAuthModes)

IMPORT_C voidSetAuthModesMTLR(TAuthModesaAuthModes)

Set the authentication modes that this SUPL host setting can use for MT-LRs (network initiated location requests).

Parameters

TAuthModes aAuthModesThe authentication modes associated with this SUPL host setting.

SetConnectionPoint(const TInt, const TLbsConnectionType)

IMPORT_C voidSetConnectionPoint(const TIntaConnectionId,
const TLbsConnectionTypeaConnectionType
)

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

const TInt aConnectionIdThe id of connection point to use for SUPL.
const TLbsConnectionType aConnectionTypeThe type of connection point that the id refers to.

SetHostNameAddress(const TDesC8 &)

IMPORT_C voidSetHostNameAddress(const TDesC8 &aHostAddress)

Sets the host address of this SUPL host setting

Parameters

const TDesC8 & aHostAddressThe host address to be set for this SUPL host setting entry.

SetName(const TDesC8 &)

IMPORT_C voidSetName(const TDesC8 &aName)

Sets the host name of the SUPL server

Parameters

const TDesC8 & aNameThe name to use.

SetPortId(const TInt)

IMPORT_C voidSetPortId(const TIntaPortId)

Sets the port id of the SUPL server.

Parameters

const TInt aPortIdThe port id to use.

SetProviderId(const TDesC8 &)

IMPORT_C voidSetProviderId(const TDesC8 &aProviderId)

Sets the the identifier for the location service provider

Parameters

const TDesC8 & aProviderIdThe identifier to use.

SetReadOnly(const TBool)

IMPORT_C voidSetReadOnly(const TBoolaReadOnly)

Sets the read only status of the SUPL account.

Parameters

const TBool aReadOnlyIf the account should be read only ETrue, else EFalse.

Member Enumerations Documentation

Enum TLbsConnectionType

Type of connection point to use for the connection to the SUPL server. Other connection types are expected in the future.

Enumerators

ELbsConnectionTypeInvalid = 0x00

Connection type is invalid

ELbsConnectionTypeNap = 0x01

Network access point

ELbsConnectionTypeProxy = 0x02

Proxy connection type

Enum _TAuthModes

SUPL authentication mechanisms.

To simplify interactions with a user, a UI (Control Panel) application may offer only the following combinations:
  • 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.

Enumerators

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.

Member Type Definitions Documentation

Typedef TAuthModes

typedef TUint32 TAuthModes

Defined type for maintaining Binary Compatibility of the _TAuthModes enumeration. Used to specify a bitmask of allowed authentication mechanisms.

Member Data Documentation

TAuthModes iAuthModesMOLR

TAuthModes iAuthModesMOLR[protected]

Supported authentication modes for terminal initiated location requests

TAuthModes iAuthModesMTLR

TAuthModes iAuthModesMTLR[protected]

Supported authentication modes for network initiated location requests

TInt iConnectionId

TInt iConnectionId[protected]

Network access point for these host settings

TLbsConnectionType iConnectionType

TLbsConnectionType iConnectionType[protected]

TLbsHostNameAddress iHostAddress

TLbsHostNameAddress iHostAddress[protected]

SUPL server host address for these settings

TLbsHostName iName

TLbsHostName iName[protected]

SUPL server host name

TInt iPortId

TInt iPortId[protected]

Port to use to connect to SUPL server

TLbsProviderId iProviderId

TLbsProviderId iProviderId[protected]

Provider of the host settings

TBool iReadOnly

TBool iReadOnly[protected]

Whether the host settings are read only

TUint8 iReserved

TUint8 iReserved[protected]

Reserved for future use