CVccSPSettings Class Reference

class CVccSPSettings : public CBase

CVccSPSettings handles saving of Vcc settings.

Settings are received from CVccAdapter (an adapter in Provisioning framework) and VCC DM Adapter and stored to SPsettings

        _LIT( KServiceName, "VCC" );
    _LIT( KVdiValue, "sip:2323" );
   
   CVccSPSettings* vccSettings = CVccSPSettings::NewL();
   
   //Store VDI
   vccSettings->SetServiceNameL( KServiceName );
   vccSettings->SetVdiL( KVdiValue );
   vccSettings->StoreL();

   //Read Preferred domain from store 
   vccSettings->ReadSettingsL( KServiceName );
   TInt prefDom = vccSettings->PreferredDomain();
  
   delete vccSettings;
       
vccutils.dll
Since
S60 v3.2

Inherits from

Public Member Functions
~CVccSPSettings ()
IMPORT_C TInt ConvertToIntL (const TDesC &)
IMPORT_C TInt CsHoHysteresisL ()
IMPORT_C TInt CsHoHysteresisTimerHighL ()
IMPORT_C TInt CsHoHysteresisTimerLowL ()
IMPORT_C TInt CsHoTresholdL ()
IMPORT_C TInt DtAllowedWhenCsOriginatedL ()
IMPORT_C TInt DtCsToPsAllowedL ()
IMPORT_C TInt DtHeldWaitingCallsAllowedL ()
IMPORT_C TInt DtPsToCsAllowedL ()
IMPORT_C TInt FindPropertyL ( TServiceId , TServicePropertyName , CSPProperty &)
IMPORT_C void FindServiceEntryL (const TDesC &, CSPEntry &)
IMPORT_C TInt ImmediateDtL ()
IMPORT_C CVccSPSettings * NewL ()
IMPORT_C TInt PreferredDomainL ()
IMPORT_C const TDesC & ProviderId ()
IMPORT_C TInt PsHoHysteresisL ()
IMPORT_C TInt PsHoHysteresisTimerHighL ()
IMPORT_C TInt PsHoHysteresisTimerLowL ()
IMPORT_C TInt PsHoTresholdL ()
IMPORT_C void ReadSettingsL (const TDesC &)
IMPORT_C const TDesC & ServiceName ()
IMPORT_C void SetDtAllowedWhenCsOriginated (const TDesC &)
IMPORT_C void SetDtCsHoHysteresisL (const TDesC &)
IMPORT_C void SetDtCsHoHysteresisTimerHighL (const TDesC &)
IMPORT_C void SetDtCsHoHysteresisTimerLowL (const TDesC &)
IMPORT_C void SetDtCsHoTresholdL (const TDesC &)
IMPORT_C void SetDtCsToPsAllowedL (const TDesC &)
IMPORT_C void SetDtHeldWaitingCallsAllowedL (const TDesC &)
IMPORT_C void SetDtPsToCsAllowedL (const TDesC &)
IMPORT_C void SetDtWlanHoHysteresisL (const TDesC &)
IMPORT_C void SetDtWlanHoHysteresisTimerHighL (const TDesC &)
IMPORT_C void SetDtWlanHoHysteresisTimerLowL (const TDesC &)
IMPORT_C void SetDtWlanHoTresholdL (const TDesC &)
IMPORT_C void SetImmediateDtL (const TDesC &)
IMPORT_C void SetPreferredDomainL (const TDesC &)
IMPORT_C void SetProviderIdL (const TDesC &)
IMPORT_C void SetServiceNameL (const TDesC &)
IMPORT_C TInt SetVdiL (const TDesC &)
IMPORT_C TBool SetVdnL (const TDesC &)
IMPORT_C void SetVoipServiceIdL (const TDesC &)
IMPORT_C void SetVoipServiceIdL ( TInt )
IMPORT_C void StoreL ()
IMPORT_C TInt VoipServiceId ()
Private Member Functions
CVccSPSettings ()
void AddOrUpdatePropertyL (CSPEntry &, const TServicePropertyName , TInt )
void AddOrUpdatePropertyL (CSPEntry &, const TServicePropertyName , const TDesC &)
void ConstructL ()
TInt GetPropertyValue (CSPEntry &, const TServicePropertyName &, TInt &)
TInt GetPropertyValue (CSPEntry &, const TServicePropertyName &, TDes &)
void ModifyVoipProfileL ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
HBufC * iDtAllowedWhenCsOriginated
HBufC * iDtCsHoHysteresis
HBufC * iDtCsHoHysteresisTimerHigh
HBufC * iDtCsHoHysteresisTimerLow
HBufC * iDtCsHoTreshold
HBufC * iDtCsToPsAllowed
HBufC * iDtHeldWaitingCallsAllowed
HBufC * iDtPsToCsAllowed
HBufC * iDtWlanHoHysteresis
HBufC * iDtWlanHoHysteresisTimerHigh
HBufC * iDtWlanHoHysteresisTimerLow
HBufC * iDtWlanHoTreshold
HBufC * iImmediateDt
HBufC * iPreferredDomain
HBufC * iProviderId
TServiceId iServiceId
HBufC * iServiceName
CSPSettings * iSettings
HBufC * iVdi
HBufC * iVdn
TServiceId iVoipServiceId
HBufC * iVoipServiceIdString

Constructor & Destructor Documentation

CVccSPSettings()

CVccSPSettings ( ) [private]

C++ Constructor

~CVccSPSettings()

IMPORT_C ~CVccSPSettings ( ) [virtual]

Destructor.

Member Functions Documentation

AddOrUpdatePropertyL(CSPEntry &, const TServicePropertyName, TInt)

void AddOrUpdatePropertyL ( CSPEntry & aServiceEntry,
const TServicePropertyName aName,
TInt aValue
) [private]

Adds new integer type property or updates the old property of the given service entry

Parameters

CSPEntry & aServiceEntry entry which contains the properties
const TServicePropertyName aName name of the property
TInt aValue value of the property

AddOrUpdatePropertyL(CSPEntry &, const TServicePropertyName, const TDesC &)

void AddOrUpdatePropertyL ( CSPEntry & aServiceEntry,
const TServicePropertyName aName,
const TDesC & aValue
) [private]

Adds new desc type property or updates the old property of the given service entry

Parameters

CSPEntry & aServiceEntry entry which contains the properties
const TServicePropertyName aName name of the property
const TDesC & aValue value of the property

ConstructL()

void ConstructL ( ) [private]

Symbian 2nd phase constructor

ConvertToIntL(const TDesC &)

IMPORT_C TInt ConvertToIntL ( const TDesC & aValue )

Converts given TDesC value to TInt.

Parameters

const TDesC & aValue value to be converted

CsHoHysteresisL()

IMPORT_C TInt CsHoHysteresisL ( )

GSM hysterisis value

Since
S60 3.2

CsHoHysteresisTimerHighL()

IMPORT_C TInt CsHoHysteresisTimerHighL ( )

GSM hysterisis timer value for high signal

Since
S60 3.2

CsHoHysteresisTimerLowL()

IMPORT_C TInt CsHoHysteresisTimerLowL ( )

GSM hysterisis timer low signal

Since
S60 3.2

CsHoTresholdL()

IMPORT_C TInt CsHoTresholdL ( )

Threshold for good signal level ? in GSM

Since
S60 3.2

DtAllowedWhenCsOriginatedL()

IMPORT_C TInt DtAllowedWhenCsOriginatedL ( )

Is handover allowed when CS originated original call

Since
S60 3.2

DtCsToPsAllowedL()

IMPORT_C TInt DtCsToPsAllowedL ( )

Gets Domain transfer from CS to Ps is allowed

Since
S60 3.2

DtHeldWaitingCallsAllowedL()

IMPORT_C TInt DtHeldWaitingCallsAllowedL ( )

Gets domain transfer allowed while held and waiting calls

Since
S60 3.2

DtPsToCsAllowedL()

IMPORT_C TInt DtPsToCsAllowedL ( )

Gets Domain transfer from PS to CS is allowed

Since
S60 3.2

FindPropertyL(TServiceId, TServicePropertyName, CSPProperty &)

IMPORT_C TInt FindPropertyL ( TServiceId aServiceId,
TServicePropertyName aPropertyName,
CSPProperty & aProperty
)

Finds property data from SP Settings table.

Since
S60 3.2

Parameters

TServiceId aServiceId Service ID
TServicePropertyName aPropertyName name of the property
CSPProperty & aProperty Property to store data

FindServiceEntryL(const TDesC &, CSPEntry &)

IMPORT_C void FindServiceEntryL ( const TDesC & aServiceName,
CSPEntry & aServiceEntry
)

Finds entry from service provider settings with given service name.

Parameters

const TDesC & aServiceName name of the service entry
CSPEntry & aServiceEntry entry which will contain current properties

GetPropertyValue(CSPEntry &, const TServicePropertyName &, TInt &)

TInt GetPropertyValue ( CSPEntry & aServiceEntry,
const TServicePropertyName & aPropertyName,
TInt & aValue
) [private]

Finds the given property and extracts it's TInt value.

Parameters

CSPEntry & aServiceEntry entry which contains the properties
const TServicePropertyName & aPropertyName name of the property
TInt & aValue value of the property

GetPropertyValue(CSPEntry &, const TServicePropertyName &, TDes &)

TInt GetPropertyValue ( CSPEntry & aServiceEntry,
const TServicePropertyName & aPropertyName,
TDes & aValue
) [private]

Parameters

CSPEntry & aServiceEntry
const TServicePropertyName & aPropertyName
TDes & aValue

ImmediateDtL()

IMPORT_C TInt ImmediateDtL ( )

Gets immediate domain transfer

Since
S60 3.2

ModifyVoipProfileL()

void ModifyVoipProfileL ( ) [private]

Change provider UID and set bootstrap -bit on in VoIP profile

NewL()

IMPORT_C CVccSPSettings * NewL ( ) [static]

Two-phased constructor.

PreferredDomainL()

IMPORT_C TInt PreferredDomainL ( )

Gets preferred domain

Since
S60 3.2

ProviderId()

IMPORT_C const TDesC & ProviderId ( )

Returns provider name of stored settings

Since
S60 3.2

PsHoHysteresisL()

IMPORT_C TInt PsHoHysteresisL ( )

WLAN hysterisis value

Since
S60 3.2

PsHoHysteresisTimerHighL()

IMPORT_C TInt PsHoHysteresisTimerHighL ( )

WLAN hysterisis timer value for high signal

Since
S60 3.2

PsHoHysteresisTimerLowL()

IMPORT_C TInt PsHoHysteresisTimerLowL ( )

WLAN hysterisis timer low signal

Since
S60 3.2

PsHoTresholdL()

IMPORT_C TInt PsHoTresholdL ( )

Threshold for good signal level ? in WLAN

Since
S60 3.2

ReadSettingsL(const TDesC &)

IMPORT_C void ReadSettingsL ( const TDesC & aServiceName )

Searches service entry with given name and sets found values to

Since
S60 3.2

Parameters

const TDesC & aServiceName

ServiceName()

IMPORT_C const TDesC & ServiceName ( )

Sets name of stored settings

Since
S60 3.2

SetDtAllowedWhenCsOriginated(const TDesC &)

IMPORT_C void SetDtAllowedWhenCsOriginated ( const TDesC & aValue )

Parameters

const TDesC & aValue

SetDtCsHoHysteresisL(const TDesC &)

IMPORT_C void SetDtCsHoHysteresisL ( const TDesC & aValue )

Sets CS handover hysteresis value

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtCsHoHysteresisTimerHighL(const TDesC &)

IMPORT_C void SetDtCsHoHysteresisTimerHighL ( const TDesC & aValue )

Sets CS handover hysteresis timer for high limit

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtCsHoHysteresisTimerLowL(const TDesC &)

IMPORT_C void SetDtCsHoHysteresisTimerLowL ( const TDesC & aValue )

Sets CS handover hysteresis timer for low limit

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtCsHoTresholdL(const TDesC &)

IMPORT_C void SetDtCsHoTresholdL ( const TDesC & aValue )

Sets CS handover treshold value

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtCsToPsAllowedL(const TDesC &)

IMPORT_C void SetDtCsToPsAllowedL ( const TDesC & aValue )

Sets Domain transfer from CS to Ps is allowed

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtHeldWaitingCallsAllowedL(const TDesC &)

IMPORT_C void SetDtHeldWaitingCallsAllowedL ( const TDesC & aValue )

Sets domain transfer allowed while held and waiting calls

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtPsToCsAllowedL(const TDesC &)

IMPORT_C void SetDtPsToCsAllowedL ( const TDesC & aValue )

Sets Domain transfer from PS to CS is allowed

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtWlanHoHysteresisL(const TDesC &)

IMPORT_C void SetDtWlanHoHysteresisL ( const TDesC & aValue )

Sets WLAN handover hysteresis value

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtWlanHoHysteresisTimerHighL(const TDesC &)

IMPORT_C void SetDtWlanHoHysteresisTimerHighL ( const TDesC & aValue )

Sets WLAN handover hysteresis timer for high limit

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtWlanHoHysteresisTimerLowL(const TDesC &)

IMPORT_C void SetDtWlanHoHysteresisTimerLowL ( const TDesC & aValue )

Sets WLAN handover hysteresis timer for low limit

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetDtWlanHoTresholdL(const TDesC &)

IMPORT_C void SetDtWlanHoTresholdL ( const TDesC & aValue )

Sets WLAN handover treshold value

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetImmediateDtL(const TDesC &)

IMPORT_C void SetImmediateDtL ( const TDesC & aValue )

Sets immediate domain transfer

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetPreferredDomainL(const TDesC &)

IMPORT_C void SetPreferredDomainL ( const TDesC & aValue )

Sets preferred domain

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetProviderIdL(const TDesC &)

IMPORT_C void SetProviderIdL ( const TDesC & aValue )

Sets name of stored settings

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetServiceNameL(const TDesC &)

IMPORT_C void SetServiceNameL ( const TDesC & aValue )

Sets name of stored settings

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetVdiL(const TDesC &)

IMPORT_C TInt SetVdiL ( const TDesC & aValue )

Sets VDI

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetVdnL(const TDesC &)

IMPORT_C TBool SetVdnL ( const TDesC & aValue )

Sets VDN

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetVoipServiceIdL(const TDesC &)

IMPORT_C void SetVoipServiceIdL ( const TDesC & aValue )

Sets Voip service id

Since
S60 3.2

Parameters

const TDesC & aValue Given value

SetVoipServiceIdL(TInt)

IMPORT_C void SetVoipServiceIdL ( TInt aValue )

Sets Voip service id

Since
S60 3.2

Parameters

TInt aValue Given value

StoreL()

IMPORT_C void StoreL ( )

Saves Vcc settings.

Since
S60 3.2

VoipServiceId()

IMPORT_C TInt VoipServiceId ( )

Voip service which is used by VCC

Since
S60 3.2

Member Data Documentation

HBufC * iDtAllowedWhenCsOriginated

HBufC * iDtAllowedWhenCsOriginated [private]

HBufC * iDtCsHoHysteresis

HBufC * iDtCsHoHysteresis [private]

CS HO hysteresis Own.

HBufC * iDtCsHoHysteresisTimerHigh

HBufC * iDtCsHoHysteresisTimerHigh [private]

CS HO hysteresis timer used for high limit Own.

HBufC * iDtCsHoHysteresisTimerLow

HBufC * iDtCsHoHysteresisTimerLow [private]

CS HO hysteresis timer used for low limit Own.

HBufC * iDtCsHoTreshold

HBufC * iDtCsHoTreshold [private]

CS HO treshold value Own.

HBufC * iDtCsToPsAllowed

HBufC * iDtCsToPsAllowed [private]

Domain transfer from CS to PS allowed Own.

HBufC * iDtHeldWaitingCallsAllowed

HBufC * iDtHeldWaitingCallsAllowed [private]

Domain transfer allowed while Held/Waiting calls Own.

HBufC * iDtPsToCsAllowed

HBufC * iDtPsToCsAllowed [private]

Domain transfer from PS to CS allowed Own.

HBufC * iDtWlanHoHysteresis

HBufC * iDtWlanHoHysteresis [private]

WLAN HO hysteresis Own.

HBufC * iDtWlanHoHysteresisTimerHigh

HBufC * iDtWlanHoHysteresisTimerHigh [private]

WLAN HO hysteresis timer used for high limit Own.

HBufC * iDtWlanHoHysteresisTimerLow

HBufC * iDtWlanHoHysteresisTimerLow [private]

WLAN HO hysteresis timer used for low limit Own.

HBufC * iDtWlanHoTreshold

HBufC * iDtWlanHoTreshold [private]

WLAN HO treshold value Own.

HBufC * iImmediateDt

HBufC * iImmediateDt [private]

Immediate Domain transfer Own.

HBufC * iPreferredDomain

HBufC * iPreferredDomain [private]

Preferred Domain Own.

HBufC * iProviderId

HBufC * iProviderId [private]

Provider id vcc settings Own.

TServiceId iServiceId

TServiceId iServiceId [private]

service id

HBufC * iServiceName

HBufC * iServiceName [private]

service name vcc settings Own.

CSPSettings * iSettings

CSPSettings * iSettings [private]

HBufC * iVdi

HBufC * iVdi [private]

VDI Own.

HBufC * iVdn

HBufC * iVdn [private]

VDI Own.

TServiceId iVoipServiceId

TServiceId iVoipServiceId [private]

Voip service id to be used in conjuction with VCC

HBufC * iVoipServiceIdString

HBufC * iVoipServiceIdString [private]