CServerParams Class Reference

class CServerParams : public CBase
This class is used to specify/retrieve the desired server properties. The required memory for the parameters will be allocated during construction of this class and this class owns the memory allocated. And same will be released when this class is destroyed. The server property includes
  • Supported protocol version.

  • Emergency support.

  • TLS enabled / disabled.

  • PSK used / not used ( GBA or any other key generation mechanism ).

  • IAP / destination.

  • SLP address.

  • SLP enabled / disabled.

  • Manufacturer ( Optional ).

  • Remove SLP, when SIM change ( yes / no ).

  • Usage in home network ( yes / no ).

  • Timestamp ( when last used ).

  • Timestamp ( when tried last ).

  • Network & Operator code ( when tried last ).

  • Network & Operator code ( when last used successfully).

  • Editable ( yes / no).

From the abover properties, only following fieds can be changed by SUPL settings client:
  • SLP address

  • IAP / destination.

  • SLP enabled / disabled.

  • Remove SLP, when SIM change ( yes / no ).

  • Usage in home network ( yes / no ).

  • Editable ( yes / no).

Inherits from

Constructor & Destructor Documentation

CServerParams()

CServerParams()[private]

C++ default constructor.

Since
S60 5.1

~CServerParams()

IMPORT_C~CServerParams()

Destructor.

Since
S60 5.1

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default EPOC constructor is private.

Since
S60 5.1

Get(TInt64 &, TPtr, TPtr, TBool &, TBool &, TBool &, TBool &)

IMPORT_C TIntGet(TInt64 &aSlpId,
TPtraServerAddress,
TPtraIapName,
TBool &aServerEnabled,
TBool &aSimChangeRemove,
TBool &aUsageInHomeNw,
TBool &aEditable
)const

Returns server parameters.

Parameters

TInt64 & aSlpId
TPtr aServerAddress
TPtr aIapName
TBool & aServerEnabled
TBool & aSimChangeRemove
TBool & aUsageInHomeNw
TBool & aEditable

NewL()

IMPORT_C CServerParams *NewL()[static]

Two-phased constructor.

Since
S60 5.1

NewLC()

IMPORT_C CServerParams *NewLC()[static]

Two-phased constructor.

Since
S60 5.1

Set(const TDesC &, const TDesC &, const TBool, const TBool, const TBool, const TBool, const TInt64)

IMPORT_C TIntSet(const TDesC &aServerAddress,
const TDesC &aIapName,
const TBoolaServerEnabled = ETrue,
const TBoolaSimChangeRemove = EFalse,
const TBoolaUsageInHomeNw = ETrue,
const TBoolaEditable = ETrue,
const TInt64aSlpId = 0
)

Sets server parameters.

Parameters

const TDesC & aServerAddress
const TDesC & aIapName
const TBool aServerEnabled = ETrue
const TBool aSimChangeRemove = EFalse
const TBool aUsageInHomeNw = ETrue
const TBool aEditable = ETrue
const TInt64 aSlpId = 0

Member Data Documentation

TBool iEditable

TBool iEditable[private]

HBufC * iIap

HBufC *iIap[private]

TBool iIsValueSet

TBool iIsValueSet[private]

HBufC * iServerAddress

HBufC *iServerAddress[private]

TBool iServerEnabled

TBool iServerEnabled[private]

TBool iSimChangeRemove

TBool iSimChangeRemove[private]

TInt64 iSlpId

TInt64 iSlpId[private]

TBool iUsageInHomeNw

TBool iUsageInHomeNw[private]