class CAgentSMBase : public CActive |
Typically this class is owned by CStateMachineAgentBase
This class is part of a compatibility layer for porting agent extensions (.agx) from v6.1
Typically this class is owned by CStateMachineAgentBase
This class is part of a compatibility layer for porting agent extensions (.agx) from v6.1
Public Member Functions | |
---|---|
CAgentSMBase ( MAgentNotify &, CDialogProcessor *, CCommsDbAccess &) | |
~CAgentSMBase () | |
TBool | CallBack () |
void | CancelConnect () |
IMPORT_C void | CompleteState ( TInt ) |
IMPORT_C void | ConnectionComplete ( TInt , TInt ) |
IMPORT_C void | ConnectionComplete ( TInt ) |
IMPORT_C void | ConnectionContinuation ( TSMContinueConnectType ) |
IMPORT_C CCommsDbAccess * | Db () |
IMPORT_C void | DisconnectComplete () |
IMPORT_C CDialogProcessor * | DlgPrc () |
TInt | GetExcessData ( TDes8 &) |
IMPORT_C void | GetLastError ( TInt &) |
IMPORT_C TInt | IncomingConnectionReceived () |
TBool | IsReconnect () |
TInt | Notification ( TNifToAgentEventType , TAny *) |
IMPORT_C TInt | Notification ( TAgentToNifEventType , TAny *) |
IMPORT_C void | PreventConnectionRetries () |
IMPORT_C void | ServiceStarted () |
void | StartConnect () |
IMPORT_C void | UpdateProgress ( TInt , TInt ) |
Private Member Functions | |
---|---|
void | ConnectCompleteReset () |
IMPORT_C void | DoCancel () |
void | ProcessState () |
IMPORT_C void | RunL () |
Public Member Enumerations | |
---|---|
enum | TSMContinueConnectType { ECallBack , EReconnect , EDisconnect } |
enum | TSMPhase { EConnecting , EConnected , EDisconnecting , EDisconnected } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Protected Attributes | |
---|---|
TBool | iCallBack |
TBool | iContinueConnection |
MAgentNotify * | iControllerObserver |
CCommsDbAccess * | iDb |
CDialogProcessor * | iDlgPrc |
TBool | iIsReconnect |
TSMPhase | iSMPhase |
CAgentStateBase * | iState |
Inherited Attributes | |
---|---|
CActive::iStatus |
IMPORT_C | CAgentSMBase | ( | MAgentNotify & | aControllerObserver, |
CDialogProcessor * | aDlgPrc, | |||
CCommsDbAccess & | aDbAccess | |||
) |
MAgentNotify & aControllerObserver | |
CDialogProcessor * aDlgPrc | |
CCommsDbAccess & aDbAccess |
IMPORT_C void | ConnectionComplete | ( | TInt | aProgress, |
TInt | aError | |||
) | [virtual] |
IMPORT_C void | ConnectionComplete | ( | TInt | aError | ) | [virtual] |
TInt aError |
IMPORT_C void | ConnectionContinuation | ( | TSMContinueConnectType | aConnectionAction | ) | [virtual] |
TSMContinueConnectType aConnectionAction |
IMPORT_C 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() .
TInt | GetExcessData | ( | TDes8 & | aBuffer | ) | [pure virtual] |
For example, after a script has run, there may be additional data received that is intended for the nif, which will retrieve it via this method
TDes8 & aBuffer | On return, the buffer contains the excess data from the agent |
IMPORT_C void | GetLastError | ( | TInt & | aError | ) | [virtual] |
TInt & aError |
TInt | Notification | ( | TNifToAgentEventType | aEvent, |
TAny * | aInfo | |||
) | [pure virtual] |
Notification of an event from the nif
TNifToAgentEventType aEvent | The type of event that occured |
TAny * aInfo | Any data associated with the event |
IMPORT_C TInt | Notification | ( | TAgentToNifEventType | aEvent, |
TAny * | aInfo | |||
) | [virtual] |
TAgentToNifEventType aEvent | |
TAny * aInfo |
IMPORT_C 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
The action to be taken by the connection code since v9.5. Use MCPRs/CPRs/SCPRs instead of agents.
ECallBack | |
EReconnect | |
EDisconnect |
The current state of the agent state machine since v9.5. Use MCPRs/CPRs/SCPRs instead of agents.
EConnecting | |
EConnected | |
EDisconnecting | |
EDisconnected |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.