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 TIntGetCurrentDivertStatus(TUnconditionalCFStatus &)
IMPORT_C TIntIsCallActive()
IMPORT_C TIntIsGPRSConnected()
IMPORT_C CPsetSAObserver *NewL()
IMPORT_C voidNotifyDivertChange(TSelectedLine, TCallDivertNotifySetting &, const TInt &)
IMPORT_C voidSetNetObserver(MPsetNetworkInfoObserver &)
Private Member Functions
CPsetSAObserver()
voidConstructL()
voidDoCancel()
voidHandleDivertActivation(TUnconditionalCFStatus &, const TInt)
voidHandleDivertDeactivation(TUnconditionalCFStatus &, const TInt)
voidHandleNoAlsIndicators(TCallDivertNotifySetting &, const TInt &)
voidHandlePrimaryLineDivertActivation(TUnconditionalCFStatus &, const TInt)
voidHandlePrimaryLineDivertDeactivation(TUnconditionalCFStatus &, const TInt)
voidHandlePrimaryLineDualDivertActivation(TUnconditionalCFStatus &, const TInt)
voidHandlePrimaryLineDualDivertDeactivation(TUnconditionalCFStatus &, const TInt)
voidHandlePrimaryLineIndicators(TCallDivertNotifySetting &)
voidHandleSecondaryLineDivertActivation(TUnconditionalCFStatus &, const TInt)
voidHandleSecondaryLineDivertDeactivation(TUnconditionalCFStatus &, const TInt)
voidHandleSecondaryLineDualDivertActivation(TUnconditionalCFStatus &, const TInt)
voidHandleSecondaryLineDualDivertDeactivation(TUnconditionalCFStatus &, const TInt)
voidHandleSecondaryLineIndicators(TCallDivertNotifySetting &)
voidHandleVoiceMailBoxDivertActivation(TUnconditionalCFStatus &, const TInt)
TBool IsDivertDualAffectFeatureEnabledL()
voidNotifyCallStartedL()
voidRunL()
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
enumTPSetCallStatus { EPSetNoCallsActive = 0, EPSetCallActive }
enumTPSetGPRSConnectionStatus { 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()

voidConstructL()[private]

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

GetCurrentDivertStatus(TUnconditionalCFStatus &)

IMPORT_C TIntGetCurrentDivertStatus(TUnconditionalCFStatus &aStatus)

Returns whether there are active diverts and on what line.

Parameters

TUnconditionalCFStatus & aStatusTCallForwardingStatus info.

HandleDivertActivation(TUnconditionalCFStatus &, const TInt)

voidHandleDivertActivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[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)

voidHandleDivertDeactivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

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

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleNoAlsIndicators(TCallDivertNotifySetting &, const TInt &)

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

Handles divert indicator cases when ALS if OFF.

Parameters

TCallDivertNotifySetting & aDivertNotify
const TInt & aActivatorUncertain

HandlePrimaryLineDivertActivation(TUnconditionalCFStatus &, const TInt)

voidHandlePrimaryLineDivertActivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Primary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineDivertDeactivation(TUnconditionalCFStatus &, const TInt)

voidHandlePrimaryLineDivertDeactivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Primary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineDualDivertActivation(TUnconditionalCFStatus &, const TInt)

voidHandlePrimaryLineDualDivertActivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Primary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineDualDivertDeactivation(TUnconditionalCFStatus &, const TInt)

voidHandlePrimaryLineDualDivertDeactivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Primary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandlePrimaryLineIndicators(TCallDivertNotifySetting &)

voidHandlePrimaryLineIndicators(TCallDivertNotifySetting &aDivertNotify)[private]

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

Parameters

TCallDivertNotifySetting & aDivertNotify

HandleSecondaryLineDivertActivation(TUnconditionalCFStatus &, const TInt)

voidHandleSecondaryLineDivertActivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Secondary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineDivertDeactivation(TUnconditionalCFStatus &, const TInt)

voidHandleSecondaryLineDivertDeactivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Secondary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineDualDivertActivation(TUnconditionalCFStatus &, const TInt)

voidHandleSecondaryLineDualDivertActivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Secondary line activation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineDualDivertDeactivation(TUnconditionalCFStatus &, const TInt)

voidHandleSecondaryLineDualDivertDeactivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

Set correct indicator value when Secondary line deactivation done.

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

HandleSecondaryLineIndicators(TCallDivertNotifySetting &)

voidHandleSecondaryLineIndicators(TCallDivertNotifySetting &aDivertNotify)[private]

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

Parameters

TCallDivertNotifySetting & aDivertNotify

HandleVoiceMailBoxDivertActivation(TUnconditionalCFStatus &, const TInt)

voidHandleVoiceMailBoxDivertActivation(TUnconditionalCFStatus &aStatus,
const TIntaBsc
)[private]

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

Parameters

TUnconditionalCFStatus & aStatus
const TInt aBsc

IsCallActive()

IMPORT_C TIntIsCallActive()

Queries if there is an active call.

IsDivertDualAffectFeatureEnabledL()

TBool IsDivertDualAffectFeatureEnabledL()[private]

Checks KTelephonyLVFlagDivertDualAffect status.

IsGPRSConnected()

IMPORT_C TIntIsGPRSConnected()

Queries if there is an active gprs connection.

NewL()

IMPORT_C CPsetSAObserver *NewL()[static]

First phase constructor.

NotifyCallStartedL()

voidNotifyCallStartedL()[private]

Starts to listen to call alerting or call ringing events.

NotifyDivertChange(TSelectedLine, TCallDivertNotifySetting &, const TInt &)

IMPORT_C voidNotifyDivertChange(TSelectedLineaAlsStatus,
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 aAlsStatusCurrently used line.
TCallDivertNotifySetting & aDivertNotifyset of divert params, see TCallDivertNotifySetting above.
const TInt & aActivatorUncertainCall divert requester does not know for certain all the values.

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

SetNetObserver(MPsetNetworkInfoObserver &)

IMPORT_C voidSetNetObserver(MPsetNetworkInfoObserver &aObserver)

Sets Network observer object.

Parameters

MPsetNetworkInfoObserver & aObserverReference 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]