145 * Initializes context. |
145 * Initializes context. |
146 */ |
146 */ |
147 void initialize(); |
147 void initialize(); |
148 |
148 |
149 /** |
149 /** |
|
150 * Creates a list of WLAN IAPs for scan results. |
|
151 * |
|
152 * @param[in] numberOfWlanIaps Number of WLAN IAPs that are created. |
|
153 */ |
|
154 void createDefaultWlanScanIapResultList(int numberOfWlanIaps); |
|
155 |
|
156 /** |
|
157 * Verifies that the given WLAN IAP list returned by the real application matches |
|
158 * with the one in the context. |
|
159 * |
|
160 * @param[in] wlanIapList WLAN IAPs that are verified against the context. |
|
161 */ |
|
162 void verifyWlanScanIapResultList( |
|
163 QList< QSharedPointer<WlanQtUtilsIap> > wlanIapList); |
|
164 |
|
165 /** |
150 * Creates a list of WLAN APs for scan results. |
166 * Creates a list of WLAN APs for scan results. |
151 * |
167 * |
152 * @param[in] numberOfWlanAps Number of WLAN APs that are created. |
168 * @param[in] numberOfWlanAps Number of WLAN APs that are created. |
153 */ |
169 */ |
154 void createDefaultWlanScanResultList(int numberOfWlanAps); |
170 void createDefaultWlanScanApResultList(int numberOfWlanAps); |
155 |
171 |
156 /** |
172 /** |
157 * Verifies that the given WLAN AP list returned by the real application matches |
173 * Verifies that the given WLAN AP list returned by the real application matches |
158 * with the one in the context. |
174 * with the one in the context. |
159 * |
175 * |
160 * @param[in] wlanApList WLAN APs that are verified against the context. |
176 * @param[in] wlanApList WLAN APs that are verified against the context. |
161 */ |
177 */ |
162 void verifyWlanScanResultList( |
178 void verifyWlanScanApResultList( |
163 QList< QSharedPointer<WlanQtUtilsAp> > wlanApList); // TODO: Maybe boolean return value |
179 QList< QSharedPointer<WlanQtUtilsAp> > wlanApList); // TODO: Maybe boolean return value |
164 |
180 |
165 // Scan result list iterator. Holds the current index, starting from zero (0). |
181 // Scan result list iterator. Holds the current index, starting from zero (0). |
166 int mScanResultIterator; |
182 int mScanResultIterator; |
167 |
183 |
|
184 // List of WLAN IAPs that WLAN Management API stub will return when |
|
185 // requesting for wlan IAP scan results. |
|
186 QList< QSharedPointer<WlanQtUtilsIap> > mWlanScanIapResultList; |
|
187 |
168 // List of WLAN access points that WLAN Management API stub will return when |
188 // List of WLAN access points that WLAN Management API stub will return when |
169 // requesting for wlan scan results. |
189 // requesting for wlan scan results. |
170 QList< QSharedPointer<WlanQtUtilsAp> > mWlanScanResultList; |
190 QList< QSharedPointer<WlanQtUtilsAp> > mWlanScanApResultList; |
171 |
191 |
172 /** |
192 /** |
173 * Should scan be completed immediately or not? |
193 * Should IAP scan be completed immediately or not? |
174 */ |
194 */ |
175 bool mCompleteWlanScan; |
195 bool mCompleteWlanIapScan; |
176 |
196 |
177 /** Return value of scan request. */ |
197 /** |
178 int mScanRetValue; |
198 * Should AP scan be completed immediately or not? |
|
199 */ |
|
200 bool mCompleteWlanApScan; |
|
201 |
|
202 /** Return value of IAP scan request. */ |
|
203 int mIapScanRetValue; |
|
204 |
|
205 /** Return value of AP scan request. */ |
|
206 int mApScanRetValue; |
179 |
207 |
180 private: |
208 private: |
181 |
209 |
182 /** |
210 /** |
|
211 * Destroys and clears the list of WLAN IAPs. |
|
212 */ |
|
213 void clearWlanScanIapResultList(); |
|
214 |
|
215 /** |
183 * Destroys and clears the list of WLAN APs. |
216 * Destroys and clears the list of WLAN APs. |
184 */ |
217 */ |
185 void clearWlanScanResultList(); |
218 void clearWlanScanApResultList(); |
186 }; |
219 }; |
187 |
220 |
188 /** |
221 /** |
189 * Test context for RConnectionMonitor. |
222 * Test context for RConnectionMonitor. |
190 */ |
223 */ |