equal
deleted
inserted
replaced
128 */ |
128 */ |
129 void clearActiveConnList(); |
129 void clearActiveConnList(); |
130 }; |
130 }; |
131 |
131 |
132 /** |
132 /** |
133 * This class represents WLAN APs that represent the results of WLAN scanning triggered by |
133 * This class represents WLAN functionality test context. E.g. APs that |
134 * RConnectionMonitor::GetPckgAttribute() |
134 * represent the results of WLAN scanning are stored here. |
135 */ |
135 */ |
136 class WlanQtUtilsWlanScanResult : public QObject |
136 class WlanQtUtilsWlanScan : public QObject |
137 { |
137 { |
138 Q_OBJECT |
138 Q_OBJECT |
139 |
139 |
140 public: |
140 public: |
141 WlanQtUtilsWlanScanResult(); |
141 WlanQtUtilsWlanScan(); |
142 ~WlanQtUtilsWlanScanResult(); |
142 ~WlanQtUtilsWlanScan(); |
143 |
143 |
144 /** |
144 /** |
145 * Initializes context. |
145 * Initializes context. |
146 */ |
146 */ |
147 void initialize(); |
147 void initialize(); |
160 * @param[in] wlanApList WLAN APs that are verified against the context. |
160 * @param[in] wlanApList WLAN APs that are verified against the context. |
161 */ |
161 */ |
162 void verifyWlanScanResultList( |
162 void verifyWlanScanResultList( |
163 QList< QSharedPointer<WlanQtUtilsAp> > wlanApList); // TODO: Maybe boolean return value |
163 QList< QSharedPointer<WlanQtUtilsAp> > wlanApList); // TODO: Maybe boolean return value |
164 |
164 |
165 /** |
165 // Scan result list iterator. Holds the current index, starting from zero (0). |
166 * List of WLAN access points that RConnectionMonitor stub will return in response to |
166 int mScanResultIterator; |
167 * RConnectionMonitor::GetPckgAttribute(). |
167 |
168 */ |
168 // List of WLAN access points that WLAN Management API stub will return when |
169 QList<WlanQtUtilsAp *> wlanScanResultList_; |
169 // requesting for wlan scan results. |
|
170 QList< QSharedPointer<WlanQtUtilsAp> > mWlanScanResultList; |
170 |
171 |
171 /** |
172 /** |
172 * Should scan be completed immediately or not? |
173 * Should scan be completed immediately or not? |
173 */ |
174 */ |
174 bool completeWlanScan_; |
175 bool mCompleteWlanScan; |
175 |
176 |
176 /** Return value of RConnectionMonitor::GetPckgAttribute(). */ |
177 /** Return value of scan request. */ |
177 int scanRetValue_; |
178 int mScanRetValue; |
178 |
179 |
179 private: |
180 private: |
180 |
181 |
181 /** |
182 /** |
182 * Destroys and clears the list of WLAN APs. |
183 * Destroys and clears the list of WLAN APs. |
197 |
198 |
198 /** |
199 /** |
199 * Initializes context. |
200 * Initializes context. |
200 */ |
201 */ |
201 void initialize(); |
202 void initialize(); |
202 |
|
203 /** Results of WLAN scanning. */ |
|
204 WlanQtUtilsWlanScanResult wlanScanResult_; |
|
205 |
203 |
206 /** List of active connections. */ |
204 /** List of active connections. */ |
207 WlanQtUtilsCtxActiveConnections activeConnections_; |
205 WlanQtUtilsCtxActiveConnections activeConnections_; |
208 }; |
206 }; |
209 |
207 |
251 WlanQtUtilsCtxEsock esock_; |
249 WlanQtUtilsCtxEsock esock_; |
252 /** Context for connmon library. */ |
250 /** Context for connmon library. */ |
253 WlanQtUtilsCtxConnMon connMon_; |
251 WlanQtUtilsCtxConnMon connMon_; |
254 /** Context for ICTS library. */ |
252 /** Context for ICTS library. */ |
255 WlanQtUtilsCtxIct ict_; |
253 WlanQtUtilsCtxIct ict_; |
|
254 /** Context for scan results. */ |
|
255 WlanQtUtilsWlanScan mScan; |
256 }; |
256 }; |
257 |
257 |
258 #endif // WLANQTUTILSTESTCONTEXT_H |
258 #endif // WLANQTUTILSTESTCONTEXT_H |