|
1 /* |
|
2 * Copyright (c) 2004,2006 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: TAOStateUnconnected class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_TAOSTATEUNCONNECTED_H |
|
20 #define T_TAOSTATEUNCONNECTED_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include "taostate.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class MAOStateContext; |
|
27 class MAOStatePool; |
|
28 |
|
29 // CLASS DESCRIPTION |
|
30 |
|
31 /** |
|
32 * Unconnected state class. |
|
33 * |
|
34 * @lib PDPContextManager2.lib |
|
35 * @since S60 v3.1 |
|
36 */ |
|
37 NONSHARABLE_CLASS( TAOStateUnconnected ): public TAOState |
|
38 { |
|
39 public: // Constructors & destructors |
|
40 |
|
41 /** |
|
42 * Constructor. |
|
43 * |
|
44 * @since S60 v3.1 |
|
45 * @param aStateContext Reference to MAOStateContext |
|
46 * @param aStatePool Reference to MAOStatePool |
|
47 * @return Pointer to created object. |
|
48 */ |
|
49 TAOStateUnconnected( MAOStateContext& aStateContext, |
|
50 MAOStatePool& aStatePool ); |
|
51 |
|
52 protected: |
|
53 |
|
54 // From base class TAOState |
|
55 |
|
56 /** |
|
57 * From TAOState. |
|
58 * Returns state name (ID). |
|
59 * |
|
60 * @since S60 v3.1 |
|
61 */ |
|
62 TAOStateName StateName() const; |
|
63 |
|
64 /** |
|
65 * From TAOState. |
|
66 * Handles connection deleted notification. |
|
67 * |
|
68 * @since S60 v3.1 |
|
69 */ |
|
70 TAOState* HandleConnectionDeletedL(); |
|
71 |
|
72 /** |
|
73 * Handles unconnect timer trigger notification. |
|
74 * |
|
75 * @since 3.0 |
|
76 */ |
|
77 TAOState* HandleUnconnectTimerExpiredL(); |
|
78 |
|
79 // These must be ignored in unconnected state |
|
80 // @see TAOState |
|
81 |
|
82 /** |
|
83 * From TAOState. |
|
84 * This is ignored in unconnected state. Always returns NULL. |
|
85 * |
|
86 * @since S60 v3.1 |
|
87 */ |
|
88 TAOState* HandlePDPContextActivatedL(); |
|
89 |
|
90 /** |
|
91 * From TAOState. |
|
92 * This is ignored in unconnected state. Always returns NULL. |
|
93 * |
|
94 * @since S60 v3.1 |
|
95 */ |
|
96 TAOState* HandlePDPContextActivationFailedL(); |
|
97 |
|
98 /** |
|
99 * From TAOState. |
|
100 * This is ignored in unconnected state. Always returns NULL. |
|
101 * |
|
102 * @since S60 v3.1 |
|
103 */ |
|
104 TAOState* HandlePDPContextDisconnectedL( TInt /*aReason*/ ); |
|
105 |
|
106 /** |
|
107 * From TAOState. |
|
108 * This is ignored in unconnected state. Always returns NULL. |
|
109 * |
|
110 * @since S60 v3.1 |
|
111 */ |
|
112 TAOState* HandleRetryTimerTriggeredL(); |
|
113 |
|
114 /** |
|
115 * From TAOState. |
|
116 * This is ignored in unconnected state. Always returns NULL. |
|
117 * |
|
118 * @since S60 v3.1 |
|
119 */ |
|
120 TAOState* HandleConnectionTimerTriggeredL(); |
|
121 |
|
122 /** |
|
123 * From TAOState. |
|
124 * This is ignored in unconnected state. Always returns NULL. |
|
125 * |
|
126 * @since S60 v3.1 |
|
127 */ |
|
128 TAOState* HandlePDPContextTemporarilyBlockedL(); |
|
129 |
|
130 /** |
|
131 * From TAOState. |
|
132 * This is ignored in unconnected state. Always returns NULL. |
|
133 * |
|
134 * @since S60 v3.1 |
|
135 */ |
|
136 TAOState* HandleGeneralError(); |
|
137 |
|
138 /** |
|
139 * From TAOState. |
|
140 * This is ignored in unconnected state. Always returns NULL. |
|
141 * |
|
142 * @since S60 v3.1 |
|
143 */ |
|
144 TAOState* HandleEnableAlwaysOnL(); |
|
145 |
|
146 /** |
|
147 * From TAOState. |
|
148 * This is ignored in unconnected state. Always returns NULL. |
|
149 * |
|
150 * @since S60 v3.1 |
|
151 */ |
|
152 TAOState* HandleSwitchFromDisconnectedL( |
|
153 MAOConnectionManager::TFailureReason /*aReason*/ ); |
|
154 |
|
155 /** |
|
156 * From TAOState. |
|
157 * ? |
|
158 * |
|
159 * @since S60 v3.1 |
|
160 */ |
|
161 TAOState* HandleExternalConnectionCreatedL(); |
|
162 |
|
163 }; |
|
164 |
|
165 #endif // T_TAOSTATEUNCONNECTED_H |