equal
deleted
inserted
replaced
27 #include <HbListWidget> |
27 #include <HbListWidget> |
28 #include <HbListWidgetItem> |
28 #include <HbListWidgetItem> |
29 #include <HbDocumentLoader> |
29 #include <HbDocumentLoader> |
30 #include <HbInstance> |
30 #include <HbInstance> |
31 #include <HbMessageBox> |
31 #include <HbMessageBox> |
|
32 #include <HbParameterLengthLimiter> |
32 |
33 |
33 #include <xqserviceutil.h> |
34 #include <xqserviceutil.h> |
34 |
35 |
35 // User includes |
36 // User includes |
36 |
37 |
272 |
273 |
273 switch (mEngine->wlanQtUtils()->connectionStatus()) { |
274 switch (mEngine->wlanQtUtils()->connectionStatus()) { |
274 case WlanQtUtils::ConnStatusConnecting: |
275 case WlanQtUtils::ConnStatusConnecting: |
275 // WLAN is connecting |
276 // WLAN is connecting |
276 Q_ASSERT(iapId != WlanQtUtils::IapIdNone); |
277 Q_ASSERT(iapId != WlanQtUtils::IapIdNone); |
277 status = hbTrId("txt_occ_grid_connecting_to_1").arg( |
278 status = HbParameterLengthLimiter( |
278 mEngine->wlanQtUtils()->iapName(iapId)); |
279 "txt_occ_grid_connecting_to_1").arg( |
|
280 mEngine->wlanQtUtils()->iapName(iapId)); |
279 break; |
281 break; |
280 |
282 |
281 case WlanQtUtils::ConnStatusConnected: |
283 case WlanQtUtils::ConnStatusConnected: |
282 // WLAN is connected |
284 // WLAN is connected |
283 Q_ASSERT(iapId != WlanQtUtils::IapIdNone); |
285 Q_ASSERT(iapId != WlanQtUtils::IapIdNone); |
284 status = hbTrId("txt_occ_grid_connected_to_1").arg( |
286 status = HbParameterLengthLimiter( |
285 mEngine->wlanQtUtils()->iapName(iapId)); |
287 "txt_occ_grid_connected_to_1").arg( |
|
288 mEngine->wlanQtUtils()->iapName(iapId)); |
286 break; |
289 break; |
287 |
290 |
288 default: |
291 default: |
289 // WLAN is disconnected |
292 // WLAN is disconnected |
290 status = hbTrId("txt_occ_grid_not_connected"); |
293 status = hbTrId("txt_occ_grid_not_connected"); |
335 |
338 |
336 if (iapId != WlanQtUtils::IapIdNone) { |
339 if (iapId != WlanQtUtils::IapIdNone) { |
337 // Item was an IAP, connect it. |
340 // Item was an IAP, connect it. |
338 mConnectingIapId = iapId; |
341 mConnectingIapId = iapId; |
339 mStatusLabel->setPlainText( |
342 mStatusLabel->setPlainText( |
340 hbTrId("txt_occ_grid_connecting_to_1").arg( |
343 HbParameterLengthLimiter( |
341 mEngine->wlanQtUtils()->iapName(iapId))); |
344 "txt_occ_grid_connecting_to_1").arg( |
|
345 mEngine->wlanQtUtils()->iapName(iapId))); |
342 mEngine->wlanQtUtils()->connectIap(iapId); |
346 mEngine->wlanQtUtils()->connectIap(iapId); |
343 } else { |
347 } else { |
344 // Item is a WLAN AP. Summon the Wlan Wizard to handle creation |
348 // Item is a WLAN AP. Summon the Wlan Wizard to handle creation |
345 // of the IAP and connecting it. |
349 // of the IAP and connecting it. |
346 Q_ASSERT(data.canConvert<WlanQtUtilsAp>()); |
350 Q_ASSERT(data.canConvert<WlanQtUtilsAp>()); |
437 { |
441 { |
438 OstTraceFunctionEntry0(WLANSNIFFERLISTVIEW_UPDATECONNECTIONOPENED_ENTRY); |
442 OstTraceFunctionEntry0(WLANSNIFFERLISTVIEW_UPDATECONNECTIONOPENED_ENTRY); |
439 |
443 |
440 mConnectingIapId = WlanQtUtils::IapIdNone; |
444 mConnectingIapId = WlanQtUtils::IapIdNone; |
441 mStatusLabel->setPlainText( |
445 mStatusLabel->setPlainText( |
442 hbTrId("txt_occ_grid_connected_to_1").arg( |
446 HbParameterLengthLimiter( |
443 mEngine->wlanQtUtils()->iapName(iapId))); |
447 "txt_occ_grid_connected_to_1").arg( |
|
448 mEngine->wlanQtUtils()->iapName(iapId))); |
444 |
449 |
445 // Update the list widget content |
450 // Update the list widget content |
446 updateListContent(); |
451 updateListContent(); |
447 |
452 |
448 // Scroll to the top of the list |
453 // Scroll to the top of the list |