wlanutilities/wlanqtutilities/tsrc/stubs/stub_wlanmgmtclient.cpp
changeset 58 301aeb18ae47
parent 56 de27cc8389dd
equal deleted inserted replaced
56:de27cc8389dd 58:301aeb18ae47
    18 #include <e32std.h>
    18 #include <e32std.h>
    19 #include <e32base.h>
    19 #include <e32base.h>
    20 #include "wlanmgmtclient.h"
    20 #include "wlanmgmtclient.h"
    21 
    21 
    22 #include "wlanqtutilstestcontext.h"
    22 #include "wlanqtutilstestcontext.h"
    23 #include "wlanqtutilsiap.h"
    23 #include "wlanqtutilsap.h"
    24 
    24 
    25 extern WlanQtUtilsTestContext testContext;
    25 extern WlanQtUtilsTestContext testContext;
    26 
    26 
    27 // Request status for canceling stubbed GetScanResults async request
    27 // Request status for canceling stubbed GetScanResults async request
    28 static TRequestStatus* iGetScanResultsStatus = 0;
    28 static TRequestStatus* iGetScanResultsStatus = 0;
   134 
   134 
   135     if (testContext.mScan.mCompleteWlanIapScan) {
   135     if (testContext.mScan.mCompleteWlanIapScan) {
   136         // Form results as defined in context
   136         // Form results as defined in context
   137         aAvailableIaps.Reset();
   137         aAvailableIaps.Reset();
   138         for (int i=0; i < testContext.mScan.mWlanScanIapResultList.count(); i++) {
   138         for (int i=0; i < testContext.mScan.mWlanScanIapResultList.count(); i++) {
   139             QSharedPointer<WlanQtUtilsIap> iap(testContext.mScan.mWlanScanIapResultList[i]);
   139             QSharedPointer<WlanQtUtilsAp> iap(testContext.mScan.mWlanScanIapResultList[i]);
   140             TWlanIapAvailabilityData data;
   140             TWlanIapAvailabilityData data;
   141             data.iIapId = (TUint)iap->value(WlanQtUtilsIap::ConfIdIapId).toInt();
   141             data.iIapId = (TUint)iap->value(WlanQtUtilsAp::ConfIdIapId).toInt();
   142             data.iRssi = (TUint)iap->value(WlanQtUtilsAp::ConfIdSignalStrength).toInt();
   142             data.iRssi = (TUint)iap->value(WlanQtUtilsAp::ConfIdSignalStrength).toInt();
   143             aAvailableIaps.AppendL(data);
   143             aAvailableIaps.AppendL(data);
   144         }
   144         }
   145         
   145         
   146         // Complete the request immediately
   146         // Complete the request immediately