class CDialogProcessor : public CActive |
Interface between the agent and the dialog server. One per CAgentController object and it itself uses the CAgentController object to return results of dialogs to state machine. Also uses a CScriptEngD to return results of PCT read to the script engine. Has a CDialogDestroyPCTNotification to request that a notification is sent when the PCT is destroyed. Has an RGenConAgentDialogServer - class with fixed API to be implemented by dialog server.
Public Member Functions | |
---|---|
~CDialogProcessor () | |
IMPORT_C void | Authenticate ( MDialogProcessorObserver &, TDes &, TDes &, TBool ) |
IMPORT_C void | CancelEverything () |
IMPORT_C void | ClosePct () |
IMPORT_C void | DestroyPctNotification ( MDialogProcessorObserver &) |
IMPORT_C void | Login ( MDialogProcessorObserver &, TDes &, TDes &, TBool ) |
IMPORT_C CDialogProcessor * | NewL ( TInt ) |
IMPORT_C TInt | OpenPct () |
IMPORT_C void | QoSWarning ( MDialogProcessorObserver &) |
IMPORT_C void | ReadPct ( MDialogProcessorObserver &, TDes &) |
IMPORT_C void | Reconnect ( MDialogProcessorObserver &) |
IMPORT_C void | SelectConnection ( MDialogProcessorObserver &, const TConnectionPrefs &) |
IMPORT_C void | SelectConnection ( MDialogProcessorObserver &, const TConnectionPrefs &, TInt ) |
IMPORT_C void | SelectModemAndLocation ( MDialogProcessorObserver &) |
IMPORT_C void | WarnNewConnection ( MDialogProcessorObserver &, const TConnectionPrefs &, const TDesC *, const TIspConnectionNames *, TInt ) |
IMPORT_C TInt | WritePct (const TDesC &) |
Private Member Functions | |
---|---|
CDialogProcessor ( TInt ) | |
void | CompleteDestroyPctNotification ( TInt ) |
void | ConstructL () |
void | DoCancel () |
void | RunL () |
void | SetActive ( MDialogProcessorObserver &, TDPState ) |
Private Member Enumerations | |
---|---|
enum |
TDPState
{
ENoState = 0, ESelectConnection , EWarnNewConnection , ESelectModemAndLocation , ELogin , EAuthentication , EReconnect , EReadPct , EQoSWarning } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Private Attributes | |
---|---|
MDialogProcessorObserver * | iCurrentObserver |
CDialogDestroyPCTNotification * | iDestroyPctNotification |
RGenConAgentDialogServer | iDlgServ |
MDialogProcessorObserver * | iPctDestructionObserver |
TBool | iQoSWarningResponse |
TBool | iReconResponse |
TConnectionSettings | iSettings |
TDPState | iState |
TBool | iWarnNewConnectResponse |
Inherited Attributes | |
---|---|
CActive::iStatus |
IMPORT_C void | Authenticate | ( | MDialogProcessorObserver & | aObserver, |
TDes & | aUsername, | |||
TDes & | aPassword, | |||
TBool | aIsReconnect | |||
) |
MDialogProcessorObserver & aObserver | |
TDes & aUsername | |
TDes & aPassword | |
TBool aIsReconnect |
IMPORT_C void | CancelEverything | ( | ) |
Should always call this rather than Cancel() if using PCT
void | CompleteDestroyPctNotification | ( | TInt | aStatus | ) | [private] |
TInt aStatus |
IMPORT_C void | DestroyPctNotification | ( | MDialogProcessorObserver & | aObserver | ) |
MDialogProcessorObserver & aObserver |
IMPORT_C void | Login | ( | MDialogProcessorObserver & | aObserver, |
TDes & | aUsername, | |||
TDes & | aPassword, | |||
TBool | aIsReconnect | |||
) |
MDialogProcessorObserver & aObserver | |
TDes & aUsername | |
TDes & aPassword | |
TBool aIsReconnect |
IMPORT_C CDialogProcessor * | NewL | ( | TInt | aPriority = CActive::EPriorityStandard | ) | [static] |
TInt aPriority = CActive::EPriorityStandard |
IMPORT_C void | QoSWarning | ( | MDialogProcessorObserver & | aObserver | ) |
MDialogProcessorObserver & aObserver |
IMPORT_C void | ReadPct | ( | MDialogProcessorObserver & | aObserver, |
TDes & | aData | |||
) |
MDialogProcessorObserver & aObserver | |
TDes & aData |
IMPORT_C void | Reconnect | ( | MDialogProcessorObserver & | aObserver | ) |
MDialogProcessorObserver & aObserver |
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
IMPORT_C void | SelectConnection | ( | MDialogProcessorObserver & | aObserver, |
const TConnectionPrefs & | aPrefs | |||
) |
Call from the agent controller (which require a response)
MDialogProcessorObserver & aObserver | |
const TConnectionPrefs & aPrefs |
IMPORT_C void | SelectConnection | ( | MDialogProcessorObserver & | aObserver, |
const TConnectionPrefs & | aPrefs, | |||
TInt | aLastError | |||
) |
MDialogProcessorObserver & aObserver | |
const TConnectionPrefs & aPrefs | |
TInt aLastError |
IMPORT_C void | SelectModemAndLocation | ( | MDialogProcessorObserver & | aObserver | ) |
MDialogProcessorObserver & aObserver |
void | SetActive | ( | MDialogProcessorObserver & | aObserver, |
TDPState | aState | |||
) | [private] |
MDialogProcessorObserver & aObserver | |
TDPState aState |
IMPORT_C void | WarnNewConnection | ( | MDialogProcessorObserver & | aObserver, |
const TConnectionPrefs & | aPrefs, | |||
const TDesC * | aNewIapName, | |||
const TIspConnectionNames * | aNewConnectionNames, | |||
TInt | aLastError | |||
) |
Call from the states (which require a response)
MDialogProcessorObserver & aObserver | |
const TConnectionPrefs & aPrefs | |
const TDesC * aNewIapName | |
const TIspConnectionNames * aNewConnectionNames | |
TInt aLastError |
IMPORT_C TInt | WritePct | ( | const TDesC & | aData | ) |
const TDesC & aData |
ENoState = 0 | |
ESelectConnection | |
EWarnNewConnection | |
ESelectModemAndLocation | |
ELogin | |
EAuthentication | |
EReconnect | |
EReadPct | |
EQoSWarning |
CDialogDestroyPCTNotification * | iDestroyPctNotification | [private] |
MDialogProcessorObserver * | iPctDestructionObserver | [private] |
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.