CPsetSAObserver Class Reference

class CPsetSAObserver : public CActive

Class is used to exchange information to/from observer.

phonesettings.dll
Since
1.0

Inherits from

Public Member Functions
~CPsetSAObserver ()
IMPORT_C TInt GetCurrentDivertStatus ( TUnconditionalCFStatus &)
IMPORT_C TInt IsCallActive ()
IMPORT_C TInt IsGPRSConnected ()
IMPORT_C CPsetSAObserver * NewL ()
IMPORT_C void NotifyDivertChange ( TSelectedLine , TCallDivertNotifySetting &, const TInt &)
IMPORT_C void SetNetObserver ( MPsetNetworkInfoObserver &)
Private Member Functions
CPsetSAObserver ()
void ConstructL ()
void DoCancel ()
void HandleDivertActivation ( TUnconditionalCFStatus &, const TInt )
void HandleDivertDeactivation ( TUnconditionalCFStatus &, const TInt )
void HandleNoAlsIndicators ( TCallDivertNotifySetting &, const TInt &)
void HandlePrimaryLineDivertActivation ( TUnconditionalCFStatus &, const TInt )
void HandlePrimaryLineDivertDeactivation ( TUnconditionalCFStatus &, const TInt )
void HandlePrimaryLineDualDivertActivation ( TUnconditionalCFStatus &, const TInt )
void HandlePrimaryLineDualDivertDeactivation ( TUnconditionalCFStatus &, const TInt )
void HandlePrimaryLineIndicators ( TCallDivertNotifySetting &)
void HandleSecondaryLineDivertActivation ( TUnconditionalCFStatus &, const TInt )
void HandleSecondaryLineDivertDeactivation ( TUnconditionalCFStatus &, const TInt )
void HandleSecondaryLineDualDivertActivation ( TUnconditionalCFStatus &, const TInt )
void HandleSecondaryLineDualDivertDeactivation ( TUnconditionalCFStatus &, const TInt )
void HandleSecondaryLineIndicators ( TCallDivertNotifySetting &)
void HandleVoiceMailBoxDivertActivation ( TUnconditionalCFStatus &, const TInt )
TBool IsDivertDualAffectFeatureEnabledL ()
void NotifyCallStartedL ()
void RunL ()
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
enum TPSetCallStatus { EPSetNoCallsActive  = 0, EPSetCallActive }
enum TPSetGPRSConnectionStatus { EPSetGPRSNotConnected  = 0, EPSetGPRSConnectionActive }
Inherited Enumerations
CActive:TPriority
Private Attributes
MPsetNetworkInfoObserver * iNetObserver
RProperty iNotifyProperty
CRepository * iRepository
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CPsetSAObserver()

CPsetSAObserver ( ) [private]

~CPsetSAObserver()

IMPORT_C ~CPsetSAObserver ( )

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

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

GetCurrentDivertStatus(TUnconditionalCFStatus &)

IMPORT_C TInt GetCurrentDivertStatus ( TUnconditionalCFStatus & aStatus )

Returns whether there are active diverts and on what line.

Parameters

TUnconditionalCFStatus & aStatus TCallForwardingStatus info.

HandleDivertActivation(TUnconditionalCFStatus &, const TInt)

void HandleDivertActivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when diverted to some other number than voicemail (no ALS).

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleDivertDeactivation(TUnconditionalCFStatus &, const TInt)

void HandleDivertDeactivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when deactivation done (no ALS).

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleNoAlsIndicators(TCallDivertNotifySetting &, const TInt &)

void HandleNoAlsIndicators ( TCallDivertNotifySetting & aDivertNotify,
const TInt & aActivatorUncertain
) [private]

Handles divert indicator cases when ALS if OFF.

Parameters

TCallDivertNotifySetting & aDivertNotify
const TInt & aActivatorUncertain

HandlePrimaryLineDivertActivation(TUnconditionalCFStatus &, const TInt)

void HandlePrimaryLineDivertActivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Primary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineDivertDeactivation(TUnconditionalCFStatus &, const TInt)

void HandlePrimaryLineDivertDeactivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Primary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineDualDivertActivation(TUnconditionalCFStatus &, const TInt)

void HandlePrimaryLineDualDivertActivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Primary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineDualDivertDeactivation(TUnconditionalCFStatus &, const TInt)

void HandlePrimaryLineDualDivertDeactivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Primary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineIndicators(TCallDivertNotifySetting &)

void HandlePrimaryLineIndicators ( TCallDivertNotifySetting & aDivertNotify ) [private]

Handles divert indicator cases when ALS on and ALS line 1 active.

Parameters

TCallDivertNotifySetting & aDivertNotify

HandleSecondaryLineDivertActivation(TUnconditionalCFStatus &, const TInt)

void HandleSecondaryLineDivertActivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Secondary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineDivertDeactivation(TUnconditionalCFStatus &, const TInt)

void HandleSecondaryLineDivertDeactivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Secondary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineDualDivertActivation(TUnconditionalCFStatus &, const TInt)

void HandleSecondaryLineDualDivertActivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Secondary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineDualDivertDeactivation(TUnconditionalCFStatus &, const TInt)

void HandleSecondaryLineDualDivertDeactivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when Secondary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineIndicators(TCallDivertNotifySetting &)

void HandleSecondaryLineIndicators ( TCallDivertNotifySetting & aDivertNotify ) [private]

Handles divert indicator cases when ALS on and ALS line 2 active.

Parameters

TCallDivertNotifySetting & aDivertNotify

HandleVoiceMailBoxDivertActivation(TUnconditionalCFStatus &, const TInt)

void HandleVoiceMailBoxDivertActivation ( TUnconditionalCFStatus & aStatus,
const TInt aBsc
) [private]

Set correct indicator value when divert activated to voicemail (no ALS).

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

IsCallActive()

IMPORT_C TInt IsCallActive ( )

Queries if there is an active call.

IsDivertDualAffectFeatureEnabledL()

TBool IsDivertDualAffectFeatureEnabledL ( ) [private]

Checks KTelephonyLVFlagDivertDualAffect status.

IsGPRSConnected()

IMPORT_C TInt IsGPRSConnected ( )

Queries if there is an active gprs connection.

NewL()

IMPORT_C CPsetSAObserver * NewL ( ) [static]

First phase constructor.

NotifyCallStartedL()

void NotifyCallStartedL ( ) [private]

Starts to listen to call alerting or call ringing events.

NotifyDivertChange(TSelectedLine, TCallDivertNotifySetting &, const TInt &)

IMPORT_C void NotifyDivertChange ( TSelectedLine aAlsStatus,
TCallDivertNotifySetting & aDivertNotify,
const TInt & aActivatorUncertain
)

Notifies of Divert changes. If the activator is not sure of the settings, CPsetSAObserver tries to deduce correct state.

Parameters

TSelectedLine aAlsStatus Currently used line.
TCallDivertNotifySetting & aDivertNotify set of divert params, see TCallDivertNotifySetting above.
const TInt & aActivatorUncertain Call divert requester does not know for certain all the values.

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

SetNetObserver(MPsetNetworkInfoObserver &)

IMPORT_C void SetNetObserver ( MPsetNetworkInfoObserver & aObserver )

Sets Network observer object.

Parameters

MPsetNetworkInfoObserver & aObserver Reference to network observer.

Member Enumerations Documentation

Enum TPSetCallStatus

Enumerators

EPSetNoCallsActive = 0
EPSetCallActive

Enum TPSetGPRSConnectionStatus

Enumerators

EPSetGPRSNotConnected = 0
EPSetGPRSConnectionActive

Member Data Documentation

MPsetNetworkInfoObserver * iNetObserver

MPsetNetworkInfoObserver * iNetObserver [private]

RProperty iNotifyProperty

RProperty iNotifyProperty [private]

CRepository * iRepository

CRepository * iRepository [private]