CNetworkConfigExtensionBase Class Reference

class CNetworkConfigExtensionBase : public CNifConfigurationIf

Daemon configuration, uses RConfigDaemon generic config daemon client API to configure network layer

Version
0.03
Date
26/05/2004

Inherits from

Public Member Functions
~CNetworkConfigExtensionBase()
IMPORT_C voidAsyncDelete()
IMPORT_C voidCancelControl()
IMPORT_C voidConfigureNetworkL()
IMPORT_C voidDeleteThis()
IMPORT_C voidDeregister(TInt)
voidDoOnDaemonProgress(TInt, TInt)
voidDoOnGenericProgress(TInt, TInt)
IMPORT_C voidEventNotification(TNetworkAdaptorEventType, TUint, const TDesC8 &, TAny *)
IMPORT_C voidLinkLayerDown()
IMPORT_C voidLinkLayerUp()
CNetworkConfigExtensionBase *NewL(TAny *)
IMPORT_C voidSendIoctlMessageL(const ESock::RLegacyResponseMsg &)
Protected Member Functions
CNetworkConfigExtensionBase(MNifIfNotify &)
IMPORT_C voidConstructL()
IMPORT_C voidDoCancel()
IMPORT_C TIntRunError(TInt)
IMPORT_C 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::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()
CNifConfigurationControl::CNifConfigurationControl(MNifIfNotify &)
CNifConfigurationControl::NewL(MNifIfNotify &)
CNifConfigurationIf::CNifConfigurationIf(MNifIfNotify &)
CNifConfigurationIf::~CNifConfigurationIf()
Inherited Enumerations
CActive:TPriority
Protected Attributes
CAsynchDaemonCancel *iAsynchDaemonCancel
RConfigDaemon iConfigDaemon
TConnectionInfoBuf iConnectionInfoBuf
CNifDaemonProgress *iDaemonProgress
TBool iDeleteOnCompletion
TInt iDeregActionStatus
TBool iDeregisterOnCompletionOfRequest
TInt iDeregistrationCauseCode
TPtr8 iDesDeregActionStatus
HBufC8 *iIoBuf
TPtr8 iIoPtr
TInt iLastGenericProgressStage
ESock::RLegacyResponseMsg iMessage
TBool iSuccessfullyCreatedDaemon
CStartServer *ipStartServer
Inherited Attributes
CActive::iStatus
CNifConfigurationControl::iNifIfNotify

Constructor & Destructor Documentation

CNetworkConfigExtensionBase(MNifIfNotify &)

CNetworkConfigExtensionBase(MNifIfNotify &aNifIfNotify)[protected, inline]
CNetworkConfigExtensionBase - constructor
Version
0.02

Parameters

MNifIfNotify & aNifIfNotify- client of the control

~CNetworkConfigExtensionBase()

IMPORT_C~CNetworkConfigExtensionBase()[virtual]
~CNetworkConfigExtensionBase - destructor
Version
0.02

Member Functions Documentation

AsyncDelete()

IMPORT_C voidAsyncDelete()[virtual]

Provide a clever method for deletion and asynchronously cancelling any outstanding event so as to avoid any problems of deadlock

CancelControl()

IMPORT_C voidCancelControl()[virtual]
CancelControl - cancels request asynchronously to avoid deadlock
Version
0.01

ConfigureNetworkL()

IMPORT_C voidConfigureNetworkL()[virtual]
ConfigureNetworkL - starts a daemon and issues configuration request
Version
0.02

ConstructL()

IMPORT_C voidConstructL()[protected]

DeleteThis()

IMPORT_C voidDeleteThis()[virtual]

Deregister(TInt)

IMPORT_C voidDeregister(TIntaCause)[virtual]

Generates a deregistration request.

Parameters

TInt aCauseSpecifies what caused the deregistration request (idle timer or Stop call)

DoCancel()

IMPORT_C voidDoCancel()[protected, virtual]
DoCancel - cancels current request
Version
0.01
CActive::DoCancel

DoOnDaemonProgress(TInt, TInt)

voidDoOnDaemonProgress(TIntaStage,
TIntaError
)

Called by CNifDaemonProgress when it receives a progress notification. Passes the notification to CNifAgentRef.

Parameters

TInt aStageProgress stage reported by the daemon
TInt aErrorError code associated with the stage

DoOnGenericProgress(TInt, TInt)

voidDoOnGenericProgress(TIntaStage,
TIntaError
)

Called to generate the cs_daemon generic progress notifications.

Parameters

TInt aStageGeneric progress stage
TInt aErrorError code associated with the stage

EventNotification(TNetworkAdaptorEventType, TUint, const TDesC8 &, TAny *)

IMPORT_C voidEventNotification(TNetworkAdaptorEventTypeaEventType,
TUintaEvent,
const TDesC8 &aEventData,
TAny *aSource
)[virtual]

Notification - used to inform the daemon of notification events.

Notification - does nothing. Needs to be implemented by deriving class to achieve functionality.
Version
0.01

Parameters

TNetworkAdaptorEventType aEventType
TUint aEvent
const TDesC8 & aEventData
TAny * aSource

LinkLayerDown()

IMPORT_C voidLinkLayerDown()[virtual]

Generates an EConfigDaemonLinkLayerDown request. Used to inform the daemon that link-layer renegotiation has started.

LinkLayerUp()

IMPORT_C voidLinkLayerUp()[virtual]

Generates an EConfigDaemonLinkLayerUp request. Used to inform the daemon that link-layer renegotiation has completed.

NewL(TAny *)

CNetworkConfigExtensionBase *NewL(TAny *aMNifIfNotify)[static]

Parameters

TAny * aMNifIfNotify

RunError(TInt)

IMPORT_C TIntRunError(TIntaError)[protected, virtual]

Parameters

TInt aError

RunL()

IMPORT_C voidRunL()[protected, virtual]
RunL - called when request completes
Version
0.03
CActive::RunL

SendIoctlMessageL(const ESock::RLegacyResponseMsg &)

IMPORT_C voidSendIoctlMessageL(const ESock::RLegacyResponseMsg &aMessage)[virtual]

SendIoctlMessageL forwards Ioctl request to the daemon and activates the AO to wait for response

Version
0.02

Parameters

const ESock::RLegacyResponseMsg & aMessage

Member Data Documentation

CAsynchDaemonCancel * iAsynchDaemonCancel

CAsynchDaemonCancel *iAsynchDaemonCancel[protected]

RConfigDaemon iConfigDaemon

RConfigDaemon iConfigDaemon[protected]

TConnectionInfoBuf iConnectionInfoBuf

TConnectionInfoBuf iConnectionInfoBuf[protected]

CNifDaemonProgress * iDaemonProgress

CNifDaemonProgress *iDaemonProgress[protected]

Object used to keep continously get progress notifications from the daemon.

TBool iDeleteOnCompletion

TBool iDeleteOnCompletion[protected]

TInt iDeregActionStatus

TInt iDeregActionStatus[protected]

Used to store deregistration status.

TBool iDeregisterOnCompletionOfRequest

TBool iDeregisterOnCompletionOfRequest[protected]

If ETrue, there is a deregistration event queued.

TInt iDeregistrationCauseCode

TInt iDeregistrationCauseCode[protected]

Used to cache the cause code associated with the deregistration request.

TPtr8 iDesDeregActionStatus

TPtr8 iDesDeregActionStatus[protected]

Stores deregistration status. Points to iDeregActionStatus.

HBufC8 * iIoBuf

HBufC8 *iIoBuf[protected]

TPtr8 iIoPtr

TPtr8 iIoPtr[protected]

TInt iLastGenericProgressStage

TInt iLastGenericProgressStage[protected]

Used to store last generic progress stage.

ESock::RLegacyResponseMsg iMessage

ESock::RLegacyResponseMsg iMessage[protected]

iMessage - to keep the original reguest when forwarding the request for further processing

Version
0.01

TBool iSuccessfullyCreatedDaemon

TBool iSuccessfullyCreatedDaemon[protected]

ETrue if the daemon was successfully created.

CStartServer * ipStartServer

CStartServer *ipStartServer[protected]

ipStartServer - != NULL when the daemon is being started

Version
0.01