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
Public Member Functions
~CNetworkConfigExtensionBase ()
IMPORT_C void AsyncDelete ()
IMPORT_C void CancelControl ()
IMPORT_C void ConfigureNetworkL ()
IMPORT_C void DeleteThis ()
IMPORT_C void Deregister ( TInt )
void DoOnDaemonProgress ( TInt , TInt )
void DoOnGenericProgress ( TInt , TInt )
IMPORT_C void EventNotification ( TNetworkAdaptorEventType , TUint , const TDesC8 &, TAny *)
IMPORT_C void LinkLayerDown ()
IMPORT_C void LinkLayerUp ()
CNetworkConfigExtensionBase * NewL ( TAny *)
IMPORT_C void SendIoctlMessageL (const ESock::RLegacyResponseMsg &)
Protected Member Functions
CNetworkConfigExtensionBase ( MNifIfNotify &)
IMPORT_C void ConstructL ()
IMPORT_C void DoCancel ()
IMPORT_C TInt RunError ( TInt )
IMPORT_C 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::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 void AsyncDelete ( ) [virtual]

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

CancelControl()

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

ConfigureNetworkL()

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

ConstructL()

IMPORT_C void ConstructL ( ) [protected]

DeleteThis()

IMPORT_C void DeleteThis ( ) [virtual]

Deregister(TInt)

IMPORT_C void Deregister ( TInt aCause ) [virtual]

Generates a deregistration request.

Parameters

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

DoCancel()

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

DoOnDaemonProgress(TInt, TInt)

void DoOnDaemonProgress ( TInt aStage,
TInt aError
)

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

Parameters

TInt aStage Progress stage reported by the daemon
TInt aError Error code associated with the stage

DoOnGenericProgress(TInt, TInt)

void DoOnGenericProgress ( TInt aStage,
TInt aError
)

Called to generate the cs_daemon generic progress notifications.

Parameters

TInt aStage Generic progress stage
TInt aError Error code associated with the stage

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

IMPORT_C void EventNotification ( TNetworkAdaptorEventType aEventType,
TUint aEvent,
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 void LinkLayerDown ( ) [virtual]

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

LinkLayerUp()

IMPORT_C void LinkLayerUp ( ) [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 TInt RunError ( TInt aError ) [protected, virtual]

Parameters

TInt aError

RunL()

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

SendIoctlMessageL(const ESock::RLegacyResponseMsg &)

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