CPsetNetwork Class Reference

class CPsetNetwork : public CActive

CPsetNetwork class is used to handle network change requests. phonesettings.lib

Inherits from

Public Member Functions
~CPsetNetwork()
IMPORT_C voidCancelProcess()
IMPORT_C voidGetAvailableNetworksL()
IMPORT_C TIntGetCurrentNetworkInfo(TCurrentNetworkInfo &)
IMPORT_C voidGetCurrentNetworkModeSelectionL()
IMPORT_C TIntGetNetworkSelectMode(TSelectMode &)
IMPORT_C TIntIsCallActive()
IMPORT_C TIntIsGPRSConnected()
IMPORT_C CPsetNetwork *NewL(RMobilePhone &, MPsetNetworkInfoObserver &)
IMPORT_C CPsetNetwork *NewL(RMobilePhone &, MPsetNetworkModeObserver &)
IMPORT_C TIntResetNetworkSearch()
IMPORT_C voidSelectNetworkL(const TNetworkInfo &)
IMPORT_C voidSetNetSAObserver(MPsetNetworkInfoObserver &)
IMPORT_C voidSetNetworkModeObserver(MPsetNetworkModeObserver &)
IMPORT_C voidSetNetworkModeSelectionL(TUint32 &)
Private Member Functions
CPsetNetwork(RMobilePhone &)
voidCleanupLeavePushL()
voidClearParams()
voidConstructL(MPsetNetworkInfoObserver &)
voidConstructL(MPsetNetworkModeObserver &)
voidDoCancel()
voidDoHandleLeave(TAny *)
voidGetRegistrationStatusL()
voidHandleLeave()
voidHideRequestNoteL()
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()
Inherited Enumerations
CActive:TPriority
Private Attributes
TInt iActiveObserver
RMmCustomAPI iCustomPhone
MPsetNetworkModeObserver::TServiceRequest iModeRequest
TUint32 iNetworkModeCaps
MPsetNetworkModeObserver *iNetworkModeObserver
CRetrieveMobilePhoneDetectedNetworks *iNetworkRetrieve
RMobilePhone::TMobilePhoneNetworkManualSelection iNwInfo
MPsetNetworkInfoObserver *iObserver
RMobilePhone &iPhone
RMobilePhone::TMobilePhoneRegistrationStatus iRegStatus
CNetworkResetHandler *iResetNetworkSearch
CPsetSAObserver *iSAObserver
MPsetNetworkInfoObserver::TServiceRequest iServiceRequest
TNetworkInfoiTempNetInfo
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CPsetNetwork(RMobilePhone &)

CPsetNetwork(RMobilePhone &aPhone)[private]

Parameters

RMobilePhone & aPhone

~CPsetNetwork()

IMPORT_C~CPsetNetwork()

Member Functions Documentation

CancelProcess()

IMPORT_C voidCancelProcess()

MNetworkSelect::CancelProcess

CleanupLeavePushL()

voidCleanupLeavePushL()[private]

ClearParams()

voidClearParams()[private]

ConstructL(MPsetNetworkInfoObserver &)

voidConstructL(MPsetNetworkInfoObserver &aObserver)[private]

Parameters

MPsetNetworkInfoObserver & aObserver

ConstructL(MPsetNetworkModeObserver &)

voidConstructL(MPsetNetworkModeObserver &aObserver)[private]

Parameters

MPsetNetworkModeObserver & 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

GetAvailableNetworksL()

IMPORT_C voidGetAvailableNetworksL()

MNetworkSelect::GetAvailableNetworksL

GetCurrentNetworkInfo(TCurrentNetworkInfo &)

IMPORT_C TIntGetCurrentNetworkInfo(TCurrentNetworkInfo &aInfo)

MNetworkSelect::GetCurrentNetworkInfo

Parameters

TCurrentNetworkInfo & aInfo

GetCurrentNetworkModeSelectionL()

IMPORT_C voidGetCurrentNetworkModeSelectionL()

GetNetworkSelectMode(TSelectMode &)

IMPORT_C TIntGetNetworkSelectMode(TSelectMode &aMode)

MNetworkSelect::GetNetworkSelectMode

Parameters

TSelectMode & aMode

GetRegistrationStatusL()

voidGetRegistrationStatusL()[private]

HandleLeave()

voidHandleLeave()[private]

HideRequestNoteL()

voidHideRequestNoteL()[private]

IsCallActive()

IMPORT_C TIntIsCallActive()

Checks if there is a call going on.

IsGPRSConnected()

IMPORT_C TIntIsGPRSConnected()

Checks if there is a gprs connection active.

NewL(RMobilePhone &, MPsetNetworkInfoObserver &)

IMPORT_C CPsetNetwork *NewL(RMobilePhone &aPhone,
MPsetNetworkInfoObserver &aObserver
)[static]

Symbian OS 2-phase constructor.

Parameters

RMobilePhone & aPhoneTSY's phone object.
MPsetNetworkInfoObserver & aObserverReference to network observer.

NewL(RMobilePhone &, MPsetNetworkModeObserver &)

IMPORT_C CPsetNetwork *NewL(RMobilePhone &aPhone,
MPsetNetworkModeObserver &aObserver
)[static]

Symbian OS 2-phase constructor.

Parameters

RMobilePhone & aPhoneTSY's phone object.
MPsetNetworkModeObserver & aObserverReference to network observer.

ResetNetworkSearch()

IMPORT_C TIntResetNetworkSearch()

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

SelectNetworkL(const TNetworkInfo &)

IMPORT_C voidSelectNetworkL(const TNetworkInfo &aInfo)

MNetworkSelect::SelectNetworkL

Parameters

const TNetworkInfo & aInfo

SetNetSAObserver(MPsetNetworkInfoObserver &)

IMPORT_C voidSetNetSAObserver(MPsetNetworkInfoObserver &aObserver)

Parameters

MPsetNetworkInfoObserver & aObserver

SetNetworkModeObserver(MPsetNetworkModeObserver &)

IMPORT_C voidSetNetworkModeObserver(MPsetNetworkModeObserver &aObserver)

Parameters

MPsetNetworkModeObserver & aObserver

SetNetworkModeSelectionL(TUint32 &)

IMPORT_C voidSetNetworkModeSelectionL(TUint32 &aNetworkMode)

Parameters

TUint32 & aNetworkMode

Member Data Documentation

TInt iActiveObserver

TInt iActiveObserver[private]

RMmCustomAPI iCustomPhone

RMmCustomAPI iCustomPhone[private]

MPsetNetworkModeObserver::TServiceRequest iModeRequest

MPsetNetworkModeObserver::TServiceRequest iModeRequest[private]

TUint32 iNetworkModeCaps

TUint32 iNetworkModeCaps[private]

MPsetNetworkModeObserver * iNetworkModeObserver

MPsetNetworkModeObserver *iNetworkModeObserver[private]

CRetrieveMobilePhoneDetectedNetworks * iNetworkRetrieve

CRetrieveMobilePhoneDetectedNetworks *iNetworkRetrieve[private]

RMobilePhone::TMobilePhoneNetworkManualSelection iNwInfo

RMobilePhone::TMobilePhoneNetworkManualSelection iNwInfo[private]

MPsetNetworkInfoObserver * iObserver

MPsetNetworkInfoObserver *iObserver[private]

RMobilePhone & iPhone

RMobilePhone &iPhone[private]

RMobilePhone::TMobilePhoneRegistrationStatus iRegStatus

RMobilePhone::TMobilePhoneRegistrationStatus iRegStatus[private]

CNetworkResetHandler * iResetNetworkSearch

CNetworkResetHandler *iResetNetworkSearch[private]

CPsetSAObserver * iSAObserver

CPsetSAObserver *iSAObserver[private]

MPsetNetworkInfoObserver::TServiceRequest iServiceRequest

MPsetNetworkInfoObserver::TServiceRequest iServiceRequest[private]

TNetworkInfo iTempNetInfo

TNetworkInfoiTempNetInfo[private]