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 void CancelProcess ()
IMPORT_C void GetAvailableNetworksL ()
IMPORT_C TInt GetCurrentNetworkInfo (TCurrentNetworkInfo &)
IMPORT_C void GetCurrentNetworkModeSelectionL ()
IMPORT_C TInt GetNetworkSelectMode (TSelectMode &)
IMPORT_C TInt IsCallActive ()
IMPORT_C TInt IsGPRSConnected ()
IMPORT_C CPsetNetwork * NewL ( RMobilePhone &, MPsetNetworkInfoObserver &)
IMPORT_C CPsetNetwork * NewL ( RMobilePhone &, MPsetNetworkModeObserver &)
IMPORT_C TInt ResetNetworkSearch ()
IMPORT_C void SelectNetworkL (const TNetworkInfo &)
IMPORT_C void SetNetSAObserver ( MPsetNetworkInfoObserver &)
IMPORT_C void SetNetworkModeObserver ( MPsetNetworkModeObserver &)
IMPORT_C void SetNetworkModeSelectionL ( TUint32 &)
Private Member Functions
CPsetNetwork ( RMobilePhone &)
void CleanupLeavePushL ()
void ClearParams ()
void ConstructL ( MPsetNetworkInfoObserver &)
void ConstructL ( MPsetNetworkModeObserver &)
void DoCancel ()
void DoHandleLeave ( TAny *)
void GetRegistrationStatusL ()
void HandleLeave ()
void HideRequestNoteL ()
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()
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
TNetworkInfo iTempNetInfo
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 void CancelProcess ( )

MNetworkSelect::CancelProcess

CleanupLeavePushL()

void CleanupLeavePushL ( ) [private]

ClearParams()

void ClearParams ( ) [private]

ConstructL(MPsetNetworkInfoObserver &)

void ConstructL ( MPsetNetworkInfoObserver & aObserver ) [private]

Parameters

MPsetNetworkInfoObserver & aObserver

ConstructL(MPsetNetworkModeObserver &)

void ConstructL ( MPsetNetworkModeObserver & aObserver ) [private]

Parameters

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

GetAvailableNetworksL()

IMPORT_C void GetAvailableNetworksL ( )

MNetworkSelect::GetAvailableNetworksL

GetCurrentNetworkInfo(TCurrentNetworkInfo &)

IMPORT_C TInt GetCurrentNetworkInfo ( TCurrentNetworkInfo & aInfo )

MNetworkSelect::GetCurrentNetworkInfo

Parameters

TCurrentNetworkInfo & aInfo

GetCurrentNetworkModeSelectionL()

IMPORT_C void GetCurrentNetworkModeSelectionL ( )

GetNetworkSelectMode(TSelectMode &)

IMPORT_C TInt GetNetworkSelectMode ( TSelectMode & aMode )

MNetworkSelect::GetNetworkSelectMode

Parameters

TSelectMode & aMode

GetRegistrationStatusL()

void GetRegistrationStatusL ( ) [private]

HandleLeave()

void HandleLeave ( ) [private]

HideRequestNoteL()

void HideRequestNoteL ( ) [private]

IsCallActive()

IMPORT_C TInt IsCallActive ( )

Checks if there is a call going on.

IsGPRSConnected()

IMPORT_C TInt IsGPRSConnected ( )

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 & aPhone TSY's phone object.
MPsetNetworkInfoObserver & aObserver Reference to network observer.

NewL(RMobilePhone &, MPsetNetworkModeObserver &)

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

Symbian OS 2-phase constructor.

Parameters

RMobilePhone & aPhone TSY's phone object.
MPsetNetworkModeObserver & aObserver Reference to network observer.

ResetNetworkSearch()

IMPORT_C TInt ResetNetworkSearch ( )

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

SelectNetworkL(const TNetworkInfo &)

IMPORT_C void SelectNetworkL ( const TNetworkInfo & aInfo )

MNetworkSelect::SelectNetworkL

Parameters

const TNetworkInfo & aInfo

SetNetSAObserver(MPsetNetworkInfoObserver &)

IMPORT_C void SetNetSAObserver ( MPsetNetworkInfoObserver & aObserver )

Parameters

MPsetNetworkInfoObserver & aObserver

SetNetworkModeObserver(MPsetNetworkModeObserver &)

IMPORT_C void SetNetworkModeObserver ( MPsetNetworkModeObserver & aObserver )

Parameters

MPsetNetworkModeObserver & aObserver

SetNetworkModeSelectionL(TUint32 &)

IMPORT_C void SetNetworkModeSelectionL ( 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

TNetworkInfo iTempNetInfo [private]