class CStateMachineAgentBase : public CAgentBase |
This class is part of a compatibility layer for porting agent extensions (.agx) from v6.1
Public Member Functions | |
---|---|
~CStateMachineAgentBase () | |
IMPORT_C void | CancelConnect () |
IMPORT_C void | Connect ( TAgentConnectType ) |
IMPORT_C void | Connect ( TAgentConnectType , CStoreableOverrideSettings *) |
IMPORT_C void | ConnectionComplete ( TInt , TInt ) |
IMPORT_C void | ConnectionComplete ( TInt ) |
IMPORT_C void | Disconnect ( TInt ) |
IMPORT_C void | DisconnectComplete () |
IMPORT_C TInt | GetExcessData ( TDes8 &) |
IMPORT_C void | GetLastError ( TInt &) |
IMPORT_C TInt | IncomingConnectionReceived () |
IMPORT_C TBool | IsReconnect () |
IMPORT_C TInt | Notification ( TNifToAgentEventType , TAny *) |
IMPORT_C TInt | Notification ( TAgentToNifEventType , TAny *) |
IMPORT_C void | PreventConnectionRetries () |
IMPORT_C void | ServiceStarted () |
IMPORT_C void | UpdateProgress ( TInt , TInt ) |
Protected Member Functions | |
---|---|
CStateMachineAgentBase () | |
void | CallNotifyCb ( TNotifyOperation , TInt ) |
IMPORT_C void | ConstructL () |
CAgentSMBase * | CreateAgentSML ( MAgentNotify &, CDialogProcessor *, CCommsDbAccess &, TCommDbConnectionDirection ) |
void | CreateAndStartStateMachineL () |
void | DoNotify () |
TInt | NotifyCbComplete ( TAny *) |
Protected Member Enumerations | |
---|---|
enum | TNotifyOperation { EUndefined , EServiceStarted , EConnectComplete , EDisconnectComplete } |
Protected Attributes | |
---|---|
TInt | iDisconnectReason |
CAsyncCallBack * | iNotifyCb |
TInt | iNotifyCbError |
TNotifyOperation | iNotifyCbOp |
CAgentSMBase * | iStateMachine |
IMPORT_C | ~CStateMachineAgentBase | ( | ) | [virtual] |
Destructor. Deletes objects used by CStateMachineAgentBase
void | CallNotifyCb | ( | TNotifyOperation | aOperation, |
TInt | aError | |||
) | [protected] |
CallNotifyCb
TNotifyOperation aOperation | the MNifAgtNotify function to call |
TInt aError | the error to pass to Nifman |
IMPORT_C void | Connect | ( | TAgentConnectType | aType | ) | [virtual] |
Request that the State Machine establish a connection.
TAgentConnectType aType | the type of connection to make (Outgoing, Reconnect, Callback, None, Incoming) |
IMPORT_C void | Connect | ( | TAgentConnectType | aType, |
CStoreableOverrideSettings * | aOverrideSettings | |||
) | [virtual] |
Request that the State Machine establish a connection using Overrides.
TAgentConnectType aType | the type of connection to make (Outgoing, Reconnect, Callback, None, Incoming) |
CStoreableOverrideSettings * aOverrideSettings | the database overrides to use for this connection |
IMPORT_C void | ConnectionComplete | ( | TInt | aProgress, |
TInt | aError | |||
) | [virtual] |
ConnectionComplete upcall from the state machine
IMPORT_C void | ConnectionComplete | ( | TInt | aError | ) | [virtual] |
ConnectionComplete upcall from the state machine
TInt aError | on return contains the error |
IMPORT_C void | ConstructL | ( | ) | [protected] |
2nd Phase of construction. Calls CAgentBase::ConstructL() .
iStateMachine should be instantiated by the derived class.
Leaves if memory allocation fails or the base class constructor leaves.
CAgentSMBase * | CreateAgentSML | ( | MAgentNotify & | aObserver, |
CDialogProcessor * | aDlgPrc, | |||
CCommsDbAccess & | aDb, | |||
TCommDbConnectionDirection | aDir | |||
) | [protected, pure virtual] |
MAgentNotify & aObserver | |
CDialogProcessor * aDlgPrc | |
CCommsDbAccess & aDb | |
TCommDbConnectionDirection aDir |
void | CreateAndStartStateMachineL | ( | ) | [protected] |
Create the appropriate state machine and start the connection
leaves |
if one of the database access or the creation of the state machine leaves |
IMPORT_C void | Disconnect | ( | TInt | aReason | ) | [virtual] |
Request that the State Machine tears down a connection.
TInt aReason | the reason for the request to disconnect |
IMPORT_C void | DisconnectComplete | ( | ) | [virtual] |
DisconnectComplete upcall from the state machine
void | DoNotify | ( | ) | [protected] |
Notify NIFMAN that part of the connection process has completed
IMPORT_C TInt | GetExcessData | ( | TDes8 & | aBuffer | ) | [virtual] |
Get Excess Data from the State Machine.
TDes8 & aBuffer | the buffer in which to store the excess data |
IMPORT_C void | GetLastError | ( | TInt & | aError | ) | [virtual] |
Return the last error from the State Machine.
TInt & aError | on return contains the error |
IMPORT_C TInt | IncomingConnectionReceived | ( | ) | [virtual] |
IncomingConnectionReceived upcall from the state machine
IMPORT_C TBool | IsReconnect | ( | ) | const [virtual] |
Is this a reconnection? - required for Authenticate()
IMPORT_C TInt | Notification | ( | TNifToAgentEventType | aEvent, |
TAny * | aInfo | |||
) | [virtual] |
Notification from the NIF to the State Machine.
NIFMAN does not interpret this message
TNifToAgentEventType aEvent | |
TAny * aInfo |
IMPORT_C TInt | Notification | ( | TAgentToNifEventType | aEvent, |
TAny * | aInfo | |||
) | [virtual] |
Notification upcall from the state machine
TAgentToNifEventType aEvent | |
TAny * aInfo |
TInt | NotifyCbComplete | ( | TAny * | aThisPtr | ) | [protected, static] |
NotifyCbComplete
TAny * aThisPtr | pointer to the instance object that triggered the callback |
IMPORT_C void | UpdateProgress | ( | TInt | aProgress, |
TInt | aError | |||
) | [virtual] |
UpdateProgress upcall from the state machine
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.