1 /* |
|
2 * Copyright (c) 2007-2008 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: Class header for CWsfIct |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_WSFICT_H |
|
21 #define C_WSFICT_H |
|
22 |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <ictsclientinterface.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 |
|
32 // CLASS DEFINITION |
|
33 /** |
|
34 * Class to monitor and control ICT interface |
|
35 * |
|
36 * @lib wsfserver.exe |
|
37 * @since S60 5.2 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CWsfIct ): public CBase, |
|
40 public MIctsObserver |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Factory function. |
|
46 * @since S60 5.2 |
|
47 * @return CWsfIct instance |
|
48 */ |
|
49 IMPORT_C static CWsfIct* NewL(); |
|
50 |
|
51 /** |
|
52 * Factory function. |
|
53 * @since S60 5.2 |
|
54 * @return CWsfIct instance |
|
55 */ |
|
56 IMPORT_C static CWsfIct* NewLC(); |
|
57 |
|
58 IMPORT_C ~CWsfIct(); |
|
59 |
|
60 private: // Constructors |
|
61 CWsfIct(); |
|
62 |
|
63 /** |
|
64 * Factory function. |
|
65 * @since S60 5.2 |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 public: // New methods |
|
70 |
|
71 /** |
|
72 * Tests the connected WLAN access point |
|
73 * @since S60 5.2 |
|
74 * @param aIapId Id of the connection method |
|
75 */ |
|
76 void TestConnectedAccessPointL( TUint aIapId ); |
|
77 |
|
78 /** |
|
79 * Initializes ICT parameters |
|
80 * @since S60 5.2 |
|
81 * @param ETrue if ICT needs to be executed |
|
82 * @param aIapId Id of the connection method |
|
83 * @param aConnectOnly ETrue if connect only case, |
|
84 * EFalse if browser is launched after successful connection. |
|
85 */ |
|
86 void InitializeIctL( TBool aTestAccessPoint, |
|
87 TUint aIapId, |
|
88 TBool aConnectOnly ); |
|
89 |
|
90 public: // from MIctsObserver |
|
91 |
|
92 /** |
|
93 * Called by ICTS during/after connectivity test |
|
94 * @since S60 5.2 |
|
95 * @param aResult Result code of the connectivity test |
|
96 * @param aString Parameter to hold auxiliary data |
|
97 */ |
|
98 void ConnectivityObserver( TIctsTestResult aResult, const TDesC& aString ); |
|
99 |
|
100 |
|
101 private: // New methods |
|
102 |
|
103 /** |
|
104 * Starts WLAN Login application |
|
105 * @param aString Contains redirect URL |
|
106 */ |
|
107 void LaunchWlanLoginL( const TDesC& aString ); |
|
108 |
|
109 /** |
|
110 * Moves the IAP to internet SNAP |
|
111 * @param aIapId Id of the connection method |
|
112 */ |
|
113 void MoveToInternetSnapL( const TUint32 aIapId ); |
|
114 |
|
115 |
|
116 private: // Data |
|
117 |
|
118 /** |
|
119 * Id of currently connected IAP (if applicable) |
|
120 */ |
|
121 TUint iIapId; |
|
122 |
|
123 /** |
|
124 * Network id of currently connected IAP (if applicable) |
|
125 */ |
|
126 TUint iNetId; |
|
127 |
|
128 /** |
|
129 * Indicates if "Connect" or "Start Web browsing" is selected. |
|
130 */ |
|
131 TBool iConnectOnly; |
|
132 |
|
133 /** |
|
134 * ICT class. Owned. |
|
135 */ |
|
136 CIctsClientInterface* iIct; |
|
137 |
|
138 }; |
|
139 |
|
140 #endif // C_WSFICT_H |
|
141 |
|
142 // End of file |
|