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 dial in state classes.
|
|
16 |
*
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
/**
|
|
23 |
@file Nd_dlinstates.h
|
|
24 |
@internalComponent
|
|
25 |
*/
|
|
26 |
|
|
27 |
#if !defined(__ND_DLINSTATES_H__)
|
|
28 |
#define __ND_DLINSTATES_H__
|
|
29 |
|
|
30 |
#include "ND_ETEL.H"
|
|
31 |
#include "Nd_CallBack.h"
|
|
32 |
#include "Nd_dlupStates.h"
|
|
33 |
|
|
34 |
|
|
35 |
class CDlInInit : public CAgentStateBase
|
|
36 |
/**
|
|
37 |
Dial In Init State.
|
|
38 |
|
|
39 |
@internalComponent
|
|
40 |
*/
|
|
41 |
{
|
|
42 |
public:
|
|
43 |
static CDlInInit* NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
44 |
virtual ~CDlInInit();
|
|
45 |
// CAgentStateBase Inheritance
|
|
46 |
virtual void StartState();
|
|
47 |
virtual CAgentStateBase* NextStateL(TBool aContinue);
|
|
48 |
private:
|
|
49 |
CDlInInit(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
50 |
virtual void ConstructL();
|
|
51 |
private:
|
|
52 |
virtual void DoCancel();
|
|
53 |
virtual void RunL();
|
|
54 |
private:
|
|
55 |
MNetdialEnv* iNdEnv;
|
|
56 |
};
|
|
57 |
|
|
58 |
class CDlInAnswering : public CNdCallBackStateBase, public MNetDialEtelObserver
|
|
59 |
/**
|
|
60 |
Dial In Answering State.
|
|
61 |
|
|
62 |
@internalComponent
|
|
63 |
*/
|
|
64 |
{
|
|
65 |
public:
|
|
66 |
static CDlInAnswering* NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
67 |
virtual ~CDlInAnswering();
|
|
68 |
// CAgentStateBase Inheritance
|
|
69 |
virtual void StartState();
|
|
70 |
virtual CAgentStateBase* NextStateL(TBool aContinue);
|
|
71 |
// MNetDialEtelObserver Inheritance
|
|
72 |
virtual void TelFunctionComplete(TInt aError);
|
|
73 |
private:
|
|
74 |
CDlInAnswering(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
75 |
virtual void ConstructL();
|
|
76 |
virtual void DoCancel();
|
|
77 |
virtual void RunL();
|
|
78 |
private:
|
|
79 |
MNetdialEnv* iNdEnv;
|
|
80 |
TBool iConnectionAccepted;
|
|
81 |
};
|
|
82 |
|
|
83 |
|
|
84 |
class CDlInOpen : public CAgentStateBase
|
|
85 |
/**
|
|
86 |
Dial In Open State.
|
|
87 |
|
|
88 |
@internalComponent
|
|
89 |
*/
|
|
90 |
{
|
|
91 |
public:
|
|
92 |
static CDlInOpen* NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
93 |
virtual ~CDlInOpen();
|
|
94 |
// CAgentStateBase Inheritance
|
|
95 |
virtual void StartState();
|
|
96 |
virtual CAgentStateBase* NextStateL(TBool aContinue);
|
|
97 |
private:
|
|
98 |
CDlInOpen(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
99 |
virtual void ConstructL();
|
|
100 |
virtual void DoCancel();
|
|
101 |
virtual void RunL();
|
|
102 |
private:
|
|
103 |
MNetdialEnv* iNdEnv;
|
|
104 |
};
|
|
105 |
|
|
106 |
class CDlInDisconnect : public CAgentStateBase
|
|
107 |
/**
|
|
108 |
Dial In Disconnect State.
|
|
109 |
|
|
110 |
@internalComponent
|
|
111 |
*/
|
|
112 |
{
|
|
113 |
public:
|
|
114 |
static CDlInDisconnect* NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
115 |
virtual ~CDlInDisconnect();
|
|
116 |
// CAgentStateBase Inheritance
|
|
117 |
virtual void StartState();
|
|
118 |
virtual CAgentStateBase* NextStateL(TBool aContinue);
|
|
119 |
private:
|
|
120 |
CDlInDisconnect(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
121 |
virtual void ConstructL();
|
|
122 |
virtual void DoCancel();
|
|
123 |
virtual void RunL();
|
|
124 |
private:
|
|
125 |
MNetdialEnv* iNdEnv;
|
|
126 |
};
|
|
127 |
|
|
128 |
class CDlInHangUp : public CAgentStateBase, public MNetDialEtelObserver
|
|
129 |
/**
|
|
130 |
Dial In HangUp State.
|
|
131 |
|
|
132 |
@internalComponent
|
|
133 |
*/
|
|
134 |
{
|
|
135 |
public:
|
|
136 |
static CDlInHangUp* NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
137 |
virtual ~CDlInHangUp();
|
|
138 |
// CAgentStateBase Inheritance
|
|
139 |
virtual void StartState();
|
|
140 |
virtual CAgentStateBase* NextStateL(TBool aContinue);
|
|
141 |
// MNetDialEtelObserver Inheritance
|
|
142 |
virtual void TelFunctionComplete(TInt aError);
|
|
143 |
private:
|
|
144 |
CDlInHangUp(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv);
|
|
145 |
virtual void ConstructL();
|
|
146 |
virtual void DoCancel();
|
|
147 |
virtual void RunL();
|
|
148 |
private:
|
|
149 |
MNetdialEnv* iNdEnv;
|
|
150 |
TBool iLogCallEnd;
|
|
151 |
};
|
|
152 |
|
|
153 |
#endif
|