CPsetCallBarring Class Reference

class CPsetCallBarring : public CActive
CPsetCallBarring class is call barring SS handler. phonesettings.lib
Since
1.0

Inherits from

Public Member Functions
~CPsetCallBarring()
IMPORT_C TIntCancelCurrentRequest()
IMPORT_C voidChangePasswordL(RMobilePhone::TMobilePhonePasswordChangeV2 &, TBool)
IMPORT_C voidChangePasswordL(RMobilePhone::TMobilePhonePasswordChangeV2 &)
IMPORT_C voidGetBarringStatusL(const TServiceGroup, const TBarringProgram)
CPsetCallBarring *NewL(MPsetBarringObserver &, RMobilePhone &)
voidPhoneSettingChanged(TSSSettingsSetting, TInt)
IMPORT_C voidSetBarringL(const TCallBarringSetting &, TBasicServiceGroups)
IMPORT_C voidSetRequestObserver(MPsetRequestObserver *)
Private Member Functions
CPsetCallBarring(RMobilePhone &)
voidCleanupLeavePushL()
voidClearParams()
voidConstructL(MPsetBarringObserver &)
voidDoCancel()
voidDoHandleLeave(TAny *)
TBool GetPlurality()
voidHandleInquiryResultL()
voidHandleLeave()
voidRequestCompleted(const TInt &)
voidRunL()
RMobilePhone::TMobilePhoneServiceAction SetBarringAction(const TBarringSetting &)
RMobilePhone::TMobilePhoneCBCondition SetBarringProgram(TBarringProgram)
voidSetObserver(MPsetBarringObserver &)
voidSetRequestStatus(TPSetBarringRequest)
voidStartRequestingL(const TInt &)
voidValidateBsc(TBasicServiceGroups &)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
Public Member Enumerations
enumTPSetBarringRequest { EPSetRequestNone, EPSetRequestChangeBarring, EPSetRequestGetStatus, EPSetRequestChangeBarringPwd, EPSetRequestChangeCommonPwd }
Inherited Enumerations
CActive:TPriority
Private Attributes
TSSSettingsAlsValue iAls
RMobilePhone::TMobilePhoneCBChangeV1 iBarringParameters
CRetrieveMobilePhoneCBList *iCbStatusInterrogator
TCallBarringSetting iChangeSetting
TPSetBarringRequest iCurrentReq
RMobileLine *iLine
MPsetBarringObserver *iObserver
RMobilePhone &iPhone
MPsetRequestObserver *iReqObserver
RSSSettings *iSsSettings
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CPsetCallBarring(RMobilePhone &)

CPsetCallBarring(RMobilePhone &aPhone)[private]

Parameters

RMobilePhone & aPhone

~CPsetCallBarring()

IMPORT_C~CPsetCallBarring()

Destructor.

Member Functions Documentation

CancelCurrentRequest()

IMPORT_C TIntCancelCurrentRequest()

ChangePasswordL(RMobilePhone::TMobilePhonePasswordChangeV2 &, TBool)

IMPORT_C voidChangePasswordL(RMobilePhone::TMobilePhonePasswordChangeV2 &aPwds,
TBoolaIsBarringPassword
)

DEPRECATED - calls the method below.

Parameters

RMobilePhone::TMobilePhonePasswordChangeV2 & aPwds
TBool aIsBarringPassword

ChangePasswordL(RMobilePhone::TMobilePhonePasswordChangeV2 &)

IMPORT_C voidChangePasswordL(RMobilePhone::TMobilePhonePasswordChangeV2 &aPwds)
Request to change ss password.
Since
2.0

Parameters

RMobilePhone::TMobilePhonePasswordChangeV2 & aPwdsPasswords (old, new, verified new) needed for the operation.

CleanupLeavePushL()

voidCleanupLeavePushL()[private]

ClearParams()

voidClearParams()[private]

ConstructL(MPsetBarringObserver &)

voidConstructL(MPsetBarringObserver &aObserver)[private]

Parameters

MPsetBarringObserver & aObserver

DoCancel()

voidDoCancel()[private, virtual]

Implements cancellation of an outstanding request.

This function is called as part of the active object's Cancel().

It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.

DoCancel() must not wait for event completion; this is handled by Cancel().

CActive::Cancel

DoHandleLeave(TAny *)

voidDoHandleLeave(TAny *aAny)[private, static]

Parameters

TAny * aAny

GetBarringStatusL(const TServiceGroup, const TBarringProgram)

IMPORT_C voidGetBarringStatusL(const TServiceGroupaGroup,
const TBarringProgramaMode
)

Parameters

const TServiceGroup aGroup
const TBarringProgram aMode

GetPlurality()

TBool GetPlurality()[private]

HandleInquiryResultL()

voidHandleInquiryResultL()[private]

HandleLeave()

voidHandleLeave()[private]

NewL(MPsetBarringObserver &, RMobilePhone &)

CPsetCallBarring *NewL(MPsetBarringObserver &aObserver,
RMobilePhone &aPhone
)[static]

Symbian OS 2-phase Constructor.

Parameters

MPsetBarringObserver & aObserverObserver for call barring.
RMobilePhone & aPhoneProvides client access to mobile phone functionality provided by TSY.

PhoneSettingChanged(TSSSettingsSetting, TInt)

voidPhoneSettingChanged(TSSSettingsSettingaSetting,
TIntaNewValue
)

Parameters

TSSSettingsSetting aSetting
TInt aNewValue

RequestCompleted(const TInt &)

voidRequestCompleted(const TInt &aError)[private]

Parameters

const TInt & aError

RunL()

voidRunL()[private, virtual]

Handles an active object's request completion event.

A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.

The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.

Before calling this active object's RunL() function, the active scheduler has:

1. decided that this is the highest priority active object with a completed request

2. marked this active object's request as complete (i.e. the request is no longer outstanding)

RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.

Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.

CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD

SetBarringAction(const TBarringSetting &)

RMobilePhone::TMobilePhoneServiceAction SetBarringAction(const TBarringSetting &aSetting)[private]

Parameters

const TBarringSetting & aSetting

SetBarringL(const TCallBarringSetting &, TBasicServiceGroups)

IMPORT_C voidSetBarringL(const TCallBarringSetting &aBarring,
TBasicServiceGroupsaBsc
)

Parameters

const TCallBarringSetting & aBarring
TBasicServiceGroups aBsc

SetBarringProgram(TBarringProgram)

RMobilePhone::TMobilePhoneCBCondition SetBarringProgram(TBarringProgramaMode)[private]

Parameters

TBarringProgram aMode

SetObserver(MPsetBarringObserver &)

voidSetObserver(MPsetBarringObserver &aObserver)[private]

Parameters

MPsetBarringObserver & aObserver

SetRequestObserver(MPsetRequestObserver *)

IMPORT_C voidSetRequestObserver(MPsetRequestObserver *aObs)

Sets request observer.

Parameters

MPsetRequestObserver * aObsWhere the request completion should be informed to.

SetRequestStatus(TPSetBarringRequest)

voidSetRequestStatus(TPSetBarringRequestaStatus)[private]

Parameters

TPSetBarringRequest aStatus

StartRequestingL(const TInt &)

voidStartRequestingL(const TInt &aRequest)[private]

Parameters

const TInt & aRequest

ValidateBsc(TBasicServiceGroups &)

voidValidateBsc(TBasicServiceGroups &aBsc)[private]

Parameters

TBasicServiceGroups & aBsc

Member Enumerations Documentation

Enum TPSetBarringRequest

Enumerators

EPSetRequestNone
EPSetRequestChangeBarring
EPSetRequestGetStatus
EPSetRequestChangeBarringPwd
EPSetRequestChangeCommonPwd

Member Data Documentation

TSSSettingsAlsValue iAls

TSSSettingsAlsValue iAls[private]

RMobilePhone::TMobilePhoneCBChangeV1 iBarringParameters

RMobilePhone::TMobilePhoneCBChangeV1 iBarringParameters[private]

CRetrieveMobilePhoneCBList * iCbStatusInterrogator

CRetrieveMobilePhoneCBList *iCbStatusInterrogator[private]

TCallBarringSetting iChangeSetting

TCallBarringSetting iChangeSetting[private]

TPSetBarringRequest iCurrentReq

TPSetBarringRequest iCurrentReq[private]

RMobileLine * iLine

RMobileLine *iLine[private]

MPsetBarringObserver * iObserver

MPsetBarringObserver *iObserver[private]

RMobilePhone & iPhone

RMobilePhone &iPhone[private]

MPsetRequestObserver * iReqObserver

MPsetRequestObserver *iReqObserver[private]

RSSSettings * iSsSettings

RSSSettings *iSsSettings[private]