25 #include <QList> |
25 #include <QList> |
26 |
26 |
27 // User includes |
27 // User includes |
28 |
28 |
29 #include "wlanqtutils.h" |
29 #include "wlanqtutils.h" |
|
30 #include "ictswlanlogininterface.h" |
30 |
31 |
31 // Forward declarations |
32 // Forward declarations |
32 |
33 |
33 class WlanQtUtils; |
34 class WlanQtUtils; |
34 class WlanQtUtilsIap; |
35 class WlanQtUtilsIap; |
35 class WlanQtUtilsAp; |
36 class WlanQtUtilsAp; |
36 class WlanQtUtilsConnection; |
37 class WlanQtUtilsConnection; |
37 class WlanQtUtilsIapSettings; |
38 class WlanQtUtilsIapSettings; |
38 class WlanQtUtilsConMonWrapper; |
39 class WlanQtUtilsConMonWrapper; |
39 class WlanQtUtilsEsockWrapper; |
40 class WlanQtUtilsEsockWrapper; |
40 class ConnTestWrapper; |
41 class WlanQtUtilsScan; |
41 |
42 |
42 // External data types |
43 // External data types |
43 |
44 |
44 // Constants |
45 // Constants |
45 |
46 |
111 private slots: |
112 private slots: |
112 |
113 |
113 void updateAvailableWlanAps( |
114 void updateAvailableWlanAps( |
114 QList< QSharedPointer<WlanQtUtilsAp> > &availableWlans); |
115 QList< QSharedPointer<WlanQtUtilsAp> > &availableWlans); |
115 |
116 |
|
117 void reportScanResult(int status); |
|
118 |
116 void updateConnectionStatus(bool isOpened); |
119 void updateConnectionStatus(bool isOpened); |
117 |
|
118 void updateConnectivityTestResult(bool result); |
|
119 |
120 |
120 void addActiveConnection(uint connectionId); |
121 void addActiveConnection(uint connectionId); |
121 |
122 |
122 void removeActiveConnection(uint connectionId); |
123 void removeActiveConnection(uint connectionId); |
123 |
124 |
124 void updateActiveConnection( |
125 void updateActiveConnection( |
125 uint connectionId, |
126 uint connectionId, |
126 WlanQtUtils::ConnStatus connectionStatus); |
127 WlanQtUtils::ConnStatus connectionStatus); |
127 |
128 |
|
129 void updateIctResult(int ictsResult); |
|
130 |
|
131 void updateIctHotspotCase(); |
|
132 |
128 private: // data |
133 private: // data |
129 |
134 |
|
135 //! Current scan mode |
|
136 enum ScanMode { |
|
137 ScanModeNone = 0, //!< No scan active |
|
138 ScanModeAvailableWlans, //!< Available AP's & IAPS |
|
139 ScanModeAvailableWlanAps, //!< Available AP's |
|
140 ScanModeDirect //!< Direct SSID scan |
|
141 }; |
|
142 |
130 // Not owned data |
143 // Not owned data |
131 |
144 |
132 //! Pointer to public implementation. |
145 //! Pointer to public implementation. |
133 WlanQtUtils *q_ptr; |
146 WlanQtUtils *q_ptr; |
134 |
147 |
137 //! Iap settings handler. |
150 //! Iap settings handler. |
138 WlanQtUtilsIapSettings *mSettings; |
151 WlanQtUtilsIapSettings *mSettings; |
139 |
152 |
140 //! Wrapper object for Connection Monitor and other parts of connmon library. |
153 //! Wrapper object for Connection Monitor and other parts of connmon library. |
141 WlanQtUtilsConMonWrapper *mConMonWrapper; |
154 WlanQtUtilsConMonWrapper *mConMonWrapper; |
|
155 |
|
156 //! Wrapper object for WLAN scanning. |
|
157 WlanQtUtilsScan *mScanWrapper; |
142 |
158 |
143 //! Wrapper object for esock library. |
159 //! Wrapper object for esock library. |
144 WlanQtUtilsEsockWrapper *mEsockWrapper; |
160 WlanQtUtilsEsockWrapper *mEsockWrapper; |
145 |
161 |
146 //! Wrapper object for Internet Connectivity Test library. |
162 //! Instance of Icts Wlan Login Interface. |
147 ConnTestWrapper *mConnTestWrapper; |
163 QSharedPointer<IctsWlanLoginInterface> mIctService; |
148 |
164 |
|
165 //! Current WLAN scan mode. |
|
166 ScanMode mScanMode; |
|
167 |
149 //! List of available WLAN APs according to the latest scan. |
168 //! List of available WLAN APs according to the latest scan. |
150 QList< QSharedPointer<WlanQtUtilsAp> > mWlanScanList; |
169 QList< QSharedPointer<WlanQtUtilsAp> > mWlanScanList; |
151 |
170 |
152 //! ID of IAP requiring ICT running, IapIdNone if not valid. |
171 //! ID of IAP requiring ICT running, IapIdNone if not valid. |
153 int mToBeTestedIapId; |
172 int mToBeTestedIapId; |