25 #include <e32svr.h> |
25 #include <e32svr.h> |
26 #include <wlanmgmtclient.h> |
26 #include <wlanmgmtclient.h> |
27 #include <wlanmgmtinterface.h> |
27 #include <wlanmgmtinterface.h> |
28 #include <wlanmgmtcommon.h> |
28 #include <wlanmgmtcommon.h> |
29 #include <commdb.h> |
29 #include <commdb.h> |
|
30 #include <ictscommon.h> |
|
31 #include <ictsclientinterface.h> |
30 #include "hssnotif.h" |
32 #include "hssnotif.h" |
31 #include "hssiapsettingshandler.h" |
33 #include "hssiapsettingshandler.h" |
32 #include "hssclientinterface.h" |
34 #include "hssclientinterface.h" |
33 #include "hsslogintimerobserver.h" |
35 #include "hsslogintimerobserver.h" |
34 #include "hsslogouttimerobserver.h" |
36 #include "hsslogouttimerobserver.h" |
47 * Server side counterpart for client's Session classes. |
49 * Server side counterpart for client's Session classes. |
48 * Each connection has own session in server. |
50 * Each connection has own session in server. |
49 * @lib HotSpotServer.exe |
51 * @lib HotSpotServer.exe |
50 * @since Series 60 3.0 |
52 * @since Series 60 3.0 |
51 */ |
53 */ |
52 NONSHARABLE_CLASS( CHotSpotSession ) : public CSession2, |
54 NONSHARABLE_CLASS( CHotSpotSession ) : public CSession2, |
|
55 public MIctsObserver, |
53 public MHssLoginTimerObserver, |
56 public MHssLoginTimerObserver, |
54 public MHssLogoutTimerObserver, |
57 public MHssLogoutTimerObserver, |
55 public MWlanMgmtNotifications |
58 public MWlanMgmtNotifications |
56 { |
59 { |
57 |
60 |
91 * @return None |
94 * @return None |
92 */ |
95 */ |
93 void DispatchMessageL( const RMessage2& aMessage ); |
96 void DispatchMessageL( const RMessage2& aMessage ); |
94 |
97 |
95 /** |
98 /** |
|
99 * From MICTSObserver. Called when internet connectivity tests are |
|
100 * being done. |
|
101 * @param aResult Result of tests |
|
102 * @param aString String containing possible HTML response |
|
103 * @return None |
|
104 */ |
|
105 void ConnectivityObserver( TIctsTestResult aResult, |
|
106 const TDesC& aString ); |
|
107 |
|
108 /** |
96 * From MHssLoginTimerObserver. Called when time used for Login(..) |
109 * From MHssLoginTimerObserver. Called when time used for Login(..) |
97 * has run out for client. |
110 * has run out for client. |
98 * @return None |
111 * @return None |
99 */ |
112 */ |
100 void LoginTimeout(); |
113 void LoginTimeout(); |
135 /** |
148 /** |
136 * By default Symbian 2nd phase constructor is private. |
149 * By default Symbian 2nd phase constructor is private. |
137 */ |
150 */ |
138 |
151 |
139 void ConstructL(); |
152 void ConstructL(); |
140 |
153 /** |
|
154 * Initialize Scan to WlanEngine |
|
155 * @return None |
|
156 */ |
|
157 |
|
158 /** |
|
159 * Launch Intenet Connectivity Test Service |
|
160 * @return None |
|
161 */ |
|
162 void TestInternetConnectivityL(); |
|
163 |
141 /** |
164 /** |
142 * Starts client register procedures |
165 * Starts client register procedures |
143 * @param aMessage, RMessage from client side |
166 * @param aMessage, RMessage from client side |
144 * @return None |
167 * @return None |
145 */ |
168 */ |
146 void ProcessRegister( const RMessage2& aMessage ); |
169 void ProcessRegisterL( const RMessage2& aMessage ); |
147 |
170 |
148 /** |
171 /** |
149 * Starts client unregister procedures |
172 * Starts client unregister procedures |
150 * @param aMessage, RMessage from client side |
173 * @param aMessage, RMessage from client side |
151 * @return None |
174 * @return None |
152 */ |
175 */ |
153 void ProcessUnRegister( const RMessage2& aMessage ); |
176 void ProcessUnRegisterL( const RMessage2& aMessage ); |
154 |
177 |
155 /** |
178 /** |
156 * Starts login procedures |
179 * Starts login procedures |
157 * @param aIapId, IAP id |
180 * @param aIapId, IAP id |
158 * @param aNetId, Network id |
181 * @param aNetId, Network id |
159 * @return KErrNone, if successful, otherwice one of system wide errorcodes. |
182 * @return KErrNone, if successful, otherwice one of system wide errorcodes. |
160 */ |
183 */ |
161 TInt ProcessStartLogin( const TUint aIapId, const TUint aNetId ); |
184 TInt ProcessStartLoginL( const TUint aIapId, const TUint aNetId ); |
162 |
185 |
163 /** |
186 /** |
164 * Starts Join procedures |
187 * Starts Join procedures |
165 * @param aIapId, IAP id |
188 * @param aIapId, IAP id |
166 * @return KErrNone, if successful, otherwice one of system wide errorcodes. |
189 * @return KErrNone, if successful, otherwice one of system wide errorcodes. |
199 /** |
222 /** |
200 * Makes server shutdown processes (agent change and IAP removals) |
223 * Makes server shutdown processes (agent change and IAP removals) |
201 * @param aMessage, Message for completing request |
224 * @param aMessage, Message for completing request |
202 */ |
225 */ |
203 void ProcessServerShutdown( const RMessage2& aMessage ); |
226 void ProcessServerShutdown( const RMessage2& aMessage ); |
|
227 |
|
228 /** |
|
229 * Updates UI state of HotSpot browser logon application. |
|
230 * @param aMessage, Message for completing request |
|
231 */ |
|
232 void ProcessUiStateL( const RMessage2& aMessage ); |
|
233 |
|
234 /** |
|
235 * Start HotSpot browser logon application. |
|
236 * @param aString, redirect URL |
|
237 */ |
|
238 void AuthenticateL( const TDesC& aString ); |
204 |
239 |
205 /** |
240 /** |
206 * Removes brackets from the UID |
241 * Removes brackets from the UID |
207 * @param aUid, UID of the client |
242 * @param aUid, UID of the client |
208 */ |
243 */ |