24
|
1 |
/**
|
|
2 |
* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* Declares the MNetdialEnv, CNetdialSM and CGetLoginInfo classes.
|
|
16 |
*
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
/**
|
|
23 |
@file Nd_bases.h
|
|
24 |
@internalComponent
|
|
25 |
*/
|
|
26 |
|
|
27 |
|
|
28 |
#ifndef __ND_BASES_H__
|
|
29 |
#define __ND_BASES_H__
|
|
30 |
|
|
31 |
#include <comms-infras/cagentsmbase.h>
|
|
32 |
#include "ND_STD.H"
|
|
33 |
#include "ND_SCR.H"
|
|
34 |
#include <csdprog.h>
|
|
35 |
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
|
|
36 |
#include <comms-infras/nifprvar_internal.h>
|
|
37 |
#endif
|
|
38 |
|
|
39 |
// Forward declarations
|
|
40 |
class CCommsDbNetDialAccess;
|
|
41 |
class CNetDialScript;
|
|
42 |
class CEventLogger;
|
|
43 |
class CTelServerProcessor;
|
|
44 |
|
|
45 |
class MNetdialEnv
|
|
46 |
/**
|
|
47 |
Netdial environment class.
|
|
48 |
*/
|
|
49 |
{
|
|
50 |
public:
|
|
51 |
virtual MAgentStateMachineEnv* BaseEnv() =0;
|
|
52 |
virtual CCommsDbNetDialAccess* NetDialDb() =0;
|
|
53 |
virtual CNetDialScript* Script() =0;
|
|
54 |
virtual CTelServerProcessor* TelServPrc() =0;
|
|
55 |
virtual CEventLogger* Logger();
|
|
56 |
virtual TBool UseScript() const =0;
|
|
57 |
#ifdef SYMBIAN_NETWORKING_CSDAGENT_BCA_SUPPORT
|
|
58 |
virtual void GetUseScriptL() = 0;
|
|
59 |
#endif
|
|
60 |
virtual void SetUpScriptL() =0;
|
|
61 |
virtual void DeleteScript() =0;
|
|
62 |
};
|
|
63 |
|
|
64 |
|
|
65 |
class CNetdialSM : public CAgentSMBase,public MNetdialEnv
|
|
66 |
/**
|
|
67 |
Netdial State Machine base class.
|
|
68 |
*/
|
|
69 |
{
|
|
70 |
public:
|
|
71 |
virtual ~CNetdialSM();
|
|
72 |
//Inherited from MNetdialEnv
|
|
73 |
virtual MAgentStateMachineEnv* BaseEnv();
|
|
74 |
virtual CCommsDbNetDialAccess* NetDialDb();
|
|
75 |
virtual CNetDialScript* Script();
|
|
76 |
virtual CTelServerProcessor* TelServPrc();
|
|
77 |
virtual CEventLogger* Logger();
|
|
78 |
virtual TBool UseScript() const;
|
|
79 |
#ifdef SYMBIAN_NETWORKING_CSDAGENT_BCA_SUPPORT
|
|
80 |
virtual void GetUseScriptL();
|
|
81 |
#endif
|
|
82 |
virtual void SetUpScriptL() =0;
|
|
83 |
virtual void DeleteScript();
|
|
84 |
//Inherited from SMBase class
|
|
85 |
virtual TInt GetExcessData(TDes8& aBuffer);
|
|
86 |
protected:
|
|
87 |
CNetdialSM(MAgentNotify& aObserver, CDialogProcessor* aDlgPrc, CCommsDbAccess& aDbAccess);
|
|
88 |
virtual void ConstructL();
|
|
89 |
protected:
|
|
90 |
CNetDialScript* iNdScript;
|
|
91 |
CTelServerProcessor* iTelServer;
|
|
92 |
CCommsDbNetDialAccess* iDbAccess;
|
|
93 |
CEventLogger* iLogger;
|
|
94 |
TBool iUseScript;
|
|
95 |
};
|
|
96 |
|
|
97 |
class CGetLoginInfo : public CAgentStateBase, public MNetDialScriptObserver
|
|
98 |
/**
|
|
99 |
CGetLoginInfo base class. Class derived by direct connect and dial up sub-classes.
|
|
100 |
*/
|
|
101 |
{
|
|
102 |
public:
|
|
103 |
virtual ~CGetLoginInfo();
|
|
104 |
//CAgentStateBase Inheritance
|
|
105 |
virtual void StartState();
|
|
106 |
//MNetDialScriptObserver Inheritance
|
|
107 |
virtual void ScriptFunctionComplete(TInt aError);
|
|
108 |
protected:
|
|
109 |
CGetLoginInfo(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
110 |
private:
|
|
111 |
virtual void DoCancel();
|
|
112 |
virtual void RunL();
|
|
113 |
protected:
|
|
114 |
MNetdialEnv* iNdEnv;
|
|
115 |
};
|
|
116 |
|
|
117 |
#endif
|