CPsetCallWaiting Class Reference

class CPsetCallWaiting : public CActive
CPsetCallWaiting class is call waiting SS handler. phonesettings.lib
Since
1.0

Inherits from

Public Member Functions
~CPsetCallWaiting ()
IMPORT_C TInt CancelProcess ()
IMPORT_C void GetCallWaitingStatusL ()
IMPORT_C CPsetCallWaiting * NewL ( RMobilePhone &, MPsetCallWaitingObserver &)
void PhoneSettingChanged ( TSSSettingsSetting , TInt )
IMPORT_C void SetCallWaitingL (TSetCallWaiting, TBasicServiceGroups )
IMPORT_C void SetRequestObserver ( MPsetRequestObserver *)
Private Member Functions
CPsetCallWaiting ( RMobilePhone &)
void CleanupLeavePushL ()
void ConstructL ( MPsetCallWaitingObserver &)
void DoCancel ()
void DoHandleLeave ( TAny *)
void HandleLeave ()
void RequestCompleted (const TInt &)
void RunL ()
void SetPsuiObserver ( MPsetCallWaitingObserver &)
void SetRequestStatus ( TPSetServiceRequest )
void ValidateBsc ( 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()
Private Member Enumerations
enum TPSetServiceRequest { EPSetServiceRequestNone , EPSetServiceRequestGetCallWaitingStatus , EPSetServiceRequestSetCallWaiting }
Inherited Enumerations
CActive:TPriority
Private Attributes
TSSSettingsAlsValue iAls
TBool iCallWaitingDistinquishEnabled
CRetrieveMobilePhoneCWList * iCwInterrogator
MPsetCallWaitingObserver * iObserver
RMobilePhone & iPhone
MPsetRequestObserver * iReqObserver
TPSetServiceRequest iServiceRequest
MPsetCallWaiting::TSetCallWaiting iSetValue
RSSSettings * iSsSettings
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CPsetCallWaiting(RMobilePhone &)

CPsetCallWaiting ( RMobilePhone & aPhone ) [private]

Parameters

RMobilePhone & aPhone

~CPsetCallWaiting()

IMPORT_C ~CPsetCallWaiting ( )

Destructor.

Member Functions Documentation

CancelProcess()

IMPORT_C TInt CancelProcess ( )

CleanupLeavePushL()

void CleanupLeavePushL ( ) [private]

ConstructL(MPsetCallWaitingObserver &)

void ConstructL ( MPsetCallWaitingObserver & aObserver ) [private]

Parameters

MPsetCallWaitingObserver & aObserver

DoCancel()

void DoCancel ( ) [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 *)

void DoHandleLeave ( TAny * aAny ) [private, static]

Parameters

TAny * aAny

GetCallWaitingStatusL()

IMPORT_C void GetCallWaitingStatusL ( )

HandleLeave()

void HandleLeave ( ) [private]

NewL(RMobilePhone &, MPsetCallWaitingObserver &)

IMPORT_C CPsetCallWaiting * NewL ( RMobilePhone & aPhone,
MPsetCallWaitingObserver & aObserver
) [static]

Symbian OS 2-phase Constructor.

Parameters

RMobilePhone & aPhone Provides client access to mobile phone functionality provided by TSY.
MPsetCallWaitingObserver & aObserver Call Waiting observer.

PhoneSettingChanged(TSSSettingsSetting, TInt)

void PhoneSettingChanged ( TSSSettingsSetting aSetting,
TInt aNewValue
)

Parameters

TSSSettingsSetting aSetting
TInt aNewValue

RequestCompleted(const TInt &)

void RequestCompleted ( const TInt & aError ) [private]

Parameters

const TInt & aError

RunL()

void RunL ( ) [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

SetCallWaitingL(TSetCallWaiting, TBasicServiceGroups)

IMPORT_C void SetCallWaitingL ( TSetCallWaiting aSetting,
TBasicServiceGroups aBsc
)

Parameters

TSetCallWaiting aSetting
TBasicServiceGroups aBsc

SetPsuiObserver(MPsetCallWaitingObserver &)

void SetPsuiObserver ( MPsetCallWaitingObserver & aObserver ) [private]

Parameters

MPsetCallWaitingObserver & aObserver

SetRequestObserver(MPsetRequestObserver *)

IMPORT_C void SetRequestObserver ( MPsetRequestObserver * aObs )

Sets request observer.

Parameters

MPsetRequestObserver * aObs Where the request completion should be informed to.

SetRequestStatus(TPSetServiceRequest)

void SetRequestStatus ( TPSetServiceRequest aStatus ) [private]

Parameters

TPSetServiceRequest aStatus

ValidateBsc(TBasicServiceGroups &)

void ValidateBsc ( TBasicServiceGroups & aBsc ) [private]

Parameters

TBasicServiceGroups & aBsc

Member Enumerations Documentation

Enum TPSetServiceRequest

Enumerators

EPSetServiceRequestNone
EPSetServiceRequestGetCallWaitingStatus
EPSetServiceRequestSetCallWaiting

Member Data Documentation

TSSSettingsAlsValue iAls

TSSSettingsAlsValue iAls [private]

TBool iCallWaitingDistinquishEnabled

TBool iCallWaitingDistinquishEnabled [private]

CRetrieveMobilePhoneCWList * iCwInterrogator

CRetrieveMobilePhoneCWList * iCwInterrogator [private]

MPsetCallWaitingObserver * iObserver

MPsetCallWaitingObserver * iObserver [private]

RMobilePhone & iPhone

RMobilePhone & iPhone [private]

MPsetRequestObserver * iReqObserver

MPsetRequestObserver * iReqObserver [private]

TPSetServiceRequest iServiceRequest

TPSetServiceRequest iServiceRequest [private]

MPsetCallWaiting::TSetCallWaiting iSetValue

MPsetCallWaiting::TSetCallWaiting iSetValue [private]

RSSSettings * iSsSettings

RSSSettings * iSsSettings [private]