201027
authorhgs
Fri, 09 Jul 2010 10:38:19 +0300
changeset 43 72ebcbb64834
parent 39 7b3e49e4608a
child 49 fb81b597edf1
201027
wlanutilities/cpwlansettingsplugin/src/cpwlansettingsgroupitemdata.cpp
wlanutilities/eapwizard/src/eapwizard_p.cpp
wlanutilities/eapwizard/src/eapwizardpage.cpp
wlanutilities/eapwizard/src/eapwizardpagecertca.cpp
wlanutilities/eapwizard/src/eapwizardpagecertuser.cpp
wlanutilities/eapwizard/src/eapwizardpageidentity.cpp
wlanutilities/eapwizard/src/eapwizardpageinnertype.cpp
wlanutilities/eapwizard/src/eapwizardpagenewpacstore.cpp
wlanutilities/eapwizard/src/eapwizardpageoutertype.cpp
wlanutilities/eapwizard/src/eapwizardpagepacstorepasswordconfirm.cpp
wlanutilities/eapwizard/src/eapwizardpageusernamepassword.cpp
wlanutilities/wlanindicatorplugin/inc/wlanindicatorplugin.h
wlanutilities/wlanindicatorplugin/src/wlanindicatorplugin.cpp
wlanutilities/wlanlogin/wlanloginapp/src/wlanloginengine.cpp
wlanutilities/wlanqtutilities/tsrc/stubs/ictswlanlogininterface.h
wlanutilities/wlanqtutilities/tsrc/stubs/stub_ictswlanlogininterface.cpp
wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.cpp
wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.h
wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.pro
wlanutilities/wlanqtutilities/tsrc/tools/default.cre
wlanutilities/wlanqtutilities/tsrc/tools/variantdata_wlanqtutils.xml
wlanutilities/wlanqtutilities/ut/context/commsdat_files/50_default.cre
wlanutilities/wlanqtutilities/ut/context/commsdat_files/default.cre
wlanutilities/wlanqtutilities/ut/context/wlanqtutilstestcontext.cpp
wlanutilities/wlanqtutilities/ut/context/wlanqtutilstestcontext.h
wlanutilities/wlanqtutilities/ut/stubs/wlanqtutilsconnmonstub.cpp
wlanutilities/wlanqtutilities/ut/stubs/wlanqtutilsconnteststub.cpp
wlanutilities/wlanqtutilities/ut/stubs/wlanqtutilsesockstub.cpp
wlanutilities/wlanqtutilities/ut/t_wlanqtutils/t_wlanqtutils.pro
wlanutilities/wlanqtutilities/ut/t_wlanqtutils/testwlanqtutils.cpp
wlanutilities/wlanqtutilities/ut/t_wlanqtutils/testwlanqtutils.h
wlanutilities/wlanqtutilities/wst/run_wst.bat
wlanutilities/wlanqtutilities/wst/wst_script/wst_make.bat
wlanutilities/wlansettingsui/group/bld.inf
wlanutilities/wlansniffer/inc/wlansniffer.h
wlanutilities/wlansniffer/inc/wlansnifferlistview.h
wlanutilities/wlansniffer/inc/wlansniffermainwindow.h
wlanutilities/wlansniffer/inc/wlansnifferservice.h
wlanutilities/wlansniffer/res/qgn_indi_wifi_protected_add.svg
wlanutilities/wlansniffer/res/qgn_indi_wlan_secure_network_add.svg
wlanutilities/wlansniffer/res/qgn_indi_wlan_signal_good_add.svg
wlanutilities/wlansniffer/res/qgn_indi_wlan_signal_low_add.svg
wlanutilities/wlansniffer/res/qgn_indi_wlan_signal_med_add.svg
wlanutilities/wlansniffer/res/qgn_prop_cmon_wlan_conn.svg
wlanutilities/wlansniffer/res/qgn_prop_wlan_bearer.svg
wlanutilities/wlansniffer/res/service_conf.xml
wlanutilities/wlansniffer/res/wlansniffer.qrc
wlanutilities/wlansniffer/res/wlansnifferlistview.docml
wlanutilities/wlansniffer/rom/wlansniffer.iby
wlanutilities/wlansniffer/rom/wlansniffer_resources.iby
wlanutilities/wlansniffer/src/main.cpp
wlanutilities/wlansniffer/src/wlansniffer.cpp
wlanutilities/wlansniffer/src/wlansnifferlistview.cpp
wlanutilities/wlansniffer/src/wlansniffermainwindow.cpp
wlanutilities/wlansniffer/src/wlansnifferservice.cpp
wlanutilities/wlansniffer/traces/OstTraceDefinitions.h
wlanutilities/wlanwizard/inc/wlanwizardpagenetworkmode.h
wlanutilities/wlanwizard/inc/wlanwizardscanlist.h
wlanutilities/wlanwizard/src/wlanwizard_p.cpp
wlanutilities/wlanwizard/src/wlanwizardpagegenericerror.cpp
wlanutilities/wlanwizard/src/wlanwizardpageinternal.cpp
wlanutilities/wlanwizard/src/wlanwizardpagekeyquery.cpp
wlanutilities/wlanwizard/src/wlanwizardpagenetworkmode.cpp
wlanutilities/wlanwizard/src/wlanwizardpageprocessingsettings.cpp
wlanutilities/wlanwizard/src/wlanwizardpagescanning.cpp
wlanutilities/wlanwizard/src/wlanwizardpagesecuritymode.cpp
wlanutilities/wlanwizard/src/wlanwizardpagessid.cpp
wlanutilities/wlanwizard/src/wlanwizardpagesummary.cpp
wlanutilities/wlanwizard/src/wlanwizardscanlist.cpp
wlanutilities/wlanwizard/src/wlanwizardsummaryviewitem.cpp
wlanutilities/wlanwizard/src/wlanwizardutils.cpp
wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutilsap.h
wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutilsap_stub.cpp
wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual.cpp
wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual.h
wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual_conf.h
wlanutilities/wpswizard/resources/occ_wps_P1.docml
wlanutilities/wpswizard/resources/occ_wps_P2.docml
wlanutilities/wpswizard/resources/occ_wps_P3.docml
wlanutilities/wpswizard/resources/occ_wps_P5.docml
wlanutilities/wpswizard/resources/occ_wps_P6.docml
wlanutilities/wpswizard/resources/resource.qrc
wlanutilities/wpswizard/resources/wpswizardplugin.qm
wlanutilities/wpswizard/resources/wpswizardplugin.ts
wlanutilities/wpswizard/src/wpswizardprivate.cpp
--- a/wlanutilities/cpwlansettingsplugin/src/cpwlansettingsgroupitemdata.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/cpwlansettingsplugin/src/cpwlansettingsgroupitemdata.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -117,49 +117,54 @@
     OstTraceFunctionEntry1(CPWLANSETTINGSGROUPITEMDATA_CREATEWLANSETTINITEMS_ENTRY, this);
     
     mJoinWlanItem = new CpSettingFormItemData(
-            HbDataFormModelItem::ComboBoxItem, hbTrId(
-                    "txt_occ_setlabel_join_wlan_networks"), this);
+        HbDataFormModelItem::ComboBoxItem,
+        hbTrId("txt_occ_setlabel_join_wlan_networks"));
     // name the object for test automation purposes
     mJoinWlanItem->setObjectName("switchToWlan");
     
     QStringList joinWlanItems;
     
-    joinWlanItems.append(hbTrId(
-            "txt_occ_setlabel_join_wlan_networks_val_known"));
+    joinWlanItems.append(
+        hbTrId("txt_occ_setlabel_join_wlan_networks_val_known"));
     
-    joinWlanItems.append(hbTrId(
-            "txt_occ_setlabel_join_wlan_networks_val_manual"));
+    joinWlanItems.append(
+        hbTrId("txt_occ_setlabel_join_wlan_networks_val_manual"));
 
     mJoinWlanItem->setContentWidgetData("items", joinWlanItems);
 
-    mItemDataHelper.addConnection(mJoinWlanItem,
-            SIGNAL(currentIndexChanged (int)), this,
-            SLOT(joinWlanItemChanged (int)));
+    mItemDataHelper.addConnection(
+        mJoinWlanItem,
+        SIGNAL(currentIndexChanged (int)),
+        this,
+        SLOT(joinWlanItemChanged (int)));
 
-    mJoinWlanItem->setContentWidgetData("currentIndex",
-            mWlanSettings->joinWlanMode());
+    mJoinWlanItem->setContentWidgetData(
+        "currentIndex",
+        mWlanSettings->joinWlanMode());
 
     this->appendChild(mJoinWlanItem);
 
     mScanNetworkItem = new CpSettingFormItemData(
-            HbDataFormModelItem::ComboBoxItem, hbTrId(
-                    "txt_occ_setlabel_scan_for_networks"), this);
+        HbDataFormModelItem::ComboBoxItem,
+        hbTrId("txt_occ_setlabel_scan_for_networks"));
     // name the object for test automation purposes
     mScanNetworkItem->setObjectName("scanNetworkItem");
     
     QStringList scanNetworkItems;
     
-    scanNetworkItems.append(hbTrId(
-            "txt_occ_setlabel_scan_for_networks_val_automatic"));
+    scanNetworkItems.append(
+        hbTrId("txt_occ_setlabel_scan_for_networks_val_automatic"));
     
-    scanNetworkItems.append(hbTrId(
-            "txt_occ_setlabel_scan_for_networks_val_userdefine"));
+    scanNetworkItems.append(
+        hbTrId("txt_occ_setlabel_scan_for_networks_val_userdefine"));
 
     mScanNetworkItem->setContentWidgetData("items", scanNetworkItems);
 
-    mItemDataHelper.addConnection(mScanNetworkItem,
-            SIGNAL(currentIndexChanged (const QString &)), this,
-            SLOT(scanItemChanged (const QString &)));
+    mItemDataHelper.addConnection(
+        mScanNetworkItem,
+        SIGNAL(currentIndexChanged (const QString &)),
+        this,
+        SLOT(scanItemChanged (const QString &)));
 
     this->appendChild(mScanNetworkItem);
 
@@ -173,27 +178,30 @@
     }
 
     mPowerSavingItem = new CpSettingFormItemData(
-            HbDataFormModelItem::ComboBoxItem, hbTrId(
-                    "txt_occ_setlabel_power_saving"), this);
+        HbDataFormModelItem::ComboBoxItem,
+        hbTrId("txt_occ_setlabel_power_saving"));
     // name the object for test automation purposes
     mPowerSavingItem->setObjectName("powerSaving");
     
     QStringList powerSavingItems;
     
-    powerSavingItems.append(hbTrId(
-            "txt_occ_setlabel_power_saving_val_disabled"));
+    powerSavingItems.append(
+        hbTrId("txt_occ_setlabel_power_saving_val_disabled"));
     
-    powerSavingItems.append(hbTrId(
-            "txt_occ_setlabel_power_saving_val_enabled"));
+    powerSavingItems.append(
+        hbTrId("txt_occ_setlabel_power_saving_val_enabled"));
 
     mPowerSavingItem->setContentWidgetData("items", powerSavingItems);
 
-    mPowerSavingItem->setContentWidgetData("currentIndex",
-            mWlanSettings->isPowerSavingEnabled());
+    mPowerSavingItem->setContentWidgetData(
+        "currentIndex",
+        mWlanSettings->isPowerSavingEnabled());
 
-    mItemDataHelper.addConnection(mPowerSavingItem,
-            SIGNAL(currentIndexChanged (int)), this,
-            SLOT(powerSavingItemChanged (int)));
+    mItemDataHelper.addConnection(
+        mPowerSavingItem,
+        SIGNAL(currentIndexChanged (int)),
+        this,
+        SLOT(powerSavingItemChanged (int)));
 
     this->appendChild(mPowerSavingItem);
 
@@ -209,22 +217,31 @@
     OstTraceFunctionEntry1(CPWLANSETTINGSGROUPITEMDATA_CREATESCANINTERVALITEM_ENTRY, this);
     
     mUserDefinedItem = new CpSettingFormItemData(
-            HbDataFormModelItem::SliderItem, hbTrId(
-                    "txt_occ_setlabel_scan_interval_minutes"), this);
+        HbDataFormModelItem::SliderItem,
+        hbTrId("txt_occ_setlabel_scan_interval_minutes"));
 
     mUserDefinedItem->setContentWidgetData("maximum", KMaximumScanInterval);
     mUserDefinedItem->setContentWidgetData("minimum", KMinimumScanInterval);
     mUserDefinedItem->setContentWidgetData("toolTipVisible", KEnableOption);
     mUserDefinedItem->setContentWidgetData("tracking", KEnableOption);
 
-    mItemDataHelper.addConnection(mUserDefinedItem,
-            SIGNAL(valueChanged (int)), this, SLOT(scanValueChanged (int)));
+    mItemDataHelper.addConnection(
+        mUserDefinedItem,
+        SIGNAL(valueChanged (int)),
+        this,
+        SLOT(scanValueChanged (int)));
     
-    mItemDataHelper.addConnection(mUserDefinedItem,
-            SIGNAL(sliderReleased ()), this, SLOT(scanSliderReleased ()));
+    mItemDataHelper.addConnection(
+        mUserDefinedItem,
+        SIGNAL(sliderReleased ()),
+        this,
+        SLOT(scanSliderReleased ()));
     
-    mItemDataHelper.addConnection(mUserDefinedItem, SIGNAL(sliderPressed ()),
-            this, SLOT(scanSliderPressed ()));
+    mItemDataHelper.addConnection(
+        mUserDefinedItem,
+        SIGNAL(sliderPressed ()),
+        this,
+        SLOT(scanSliderPressed ()));
 
     mScanInterval = mWlanSettings->scanInterval();
 
--- a/wlanutilities/eapwizard/src/eapwizard_p.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizard_p.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -63,7 +63,7 @@
 
 /*!
    Constructor of EAP Wizard.
-   
+
    @param [in] wizardHelper pointer to the helper instance.
  */
 EapWizardPrivate::EapWizardPrivate(
@@ -74,8 +74,10 @@
         EapQtConfigInterface::EapBearerTypeWlan, 
         EapQtConfigInterface::IapIdUndefined))
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_EAPWIZARDPRIVATE_ENTRY );
     Q_ASSERT(wizardHelper);
     createPages();
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_EAPWIZARDPRIVATE_EXIT );
 }
 
 /*!
@@ -83,6 +85,8 @@
  */
 EapWizardPrivate::~EapWizardPrivate()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPRIVATE_EAPWIZARDPRIVATE_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPRIVATE_EAPWIZARDPRIVATE_EXIT );
 }
 
 /*!
@@ -93,6 +97,7 @@
     QString &item, 
     QString &value)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_SUMMARY_ENTRY );
     bool ret = false;
     int outerType = configurations(EapWizardPrivate::OuterType).toInt();
 
@@ -121,77 +126,81 @@
         break;
 
     }
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_SUMMARY_EXIT );
     return ret;
 }
 
 /*!
    See EapWizard::storeSettings().
-   
+
    @return true - ok, false - failed
  */
 bool EapWizardPrivate::storeSettings()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_STORESETTINGS_ENTRY );
     bool ret = false;
     EapQtPluginHandle outerType(static_cast<EapQtPluginHandle::Plugin>(
         configurations(OuterType).toInt()));
-    
+
     int iapId = mWizardHelper->configuration(WlanWizardHelper::ConfIapId).toInt();
-    
+
     if (mEapConfIf->setConfigurationReference(iapId) 
         && storeOuterTypeSettings(outerType)
         && storeInnerTypeSettings(outerType)) {
         ret = true;
     }
 
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_STORESETTINGS_EXIT );
     return ret;
 }
 
 /*!
    See WlanWizardPlugin::errorString().
-   
+
    Returns EAP spesific error string.
  */
 QString EapWizardPrivate::errorString(int errorCode)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_ERRORSTRING_ENTRY );
     char* textId = NULL;
     int eapType = EapQtPluginHandle::PluginUndefined;
-    
+
     switch (errorCode){
     case KErrWlanUserRejected:
         textId = "txt_occ_dialog_1_auth_failed_user_cert_rej";
         eapType = configurations(OuterType).toInt();
         break;
-        
+
     case KErrWlanUserCertificateExpired:
         textId = "txt_occ_dialog_1_auth_failed_user_cert_exp";
         eapType = configurations(OuterType).toInt();
         break;
-        
+
     case KErrWlanServerCertificateExpired:
         textId = "txt_occ_dialog_1_authentication_failed_server_ce";
         eapType = configurations(OuterType).toInt();
         break;
-        
+
     case KErrWlanCerficateVerifyFailed:
         textId = "txt_occ_dialog_1_authentication_failed_could_not";
         eapType = configurations(OuterType).toInt();
         break;
-        
+
     case KErrWlanNoCipherSuite:
         textId = "txt_occ_dialog_1_authentication_failed_cipher_su";
         eapType = configurations(OuterType).toInt();
         break;
-        
+
     case KErrWlanSimNotInstalled:
         textId = "txt_occ_dialog_1_authentication_failed_check_sim";
         eapType = configurations(OuterType).toInt();
         break;
-        
+
     case KErrWlanEapFastPacStoreCorrupted:
         textId = "txt_occ_dialog_1_authentication_failed_reset_pac";
         eapType = EapQtPluginHandle::PluginEapFast;
         break;
-        
+
     case KErrWlanEapSimFailed:
     case KErrWlanEapTlsFailed:
     case KErrWlanEapPeapFailed:
@@ -207,13 +216,13 @@
         textId = "txt_occ_dialog_1_authentication_failed";
         eapType = configurations(OuterType).toInt();
         break;
-        
+
     case KErrWlanEapMsChapv2:
     case KErrWlanEapGtcFailed:
         textId = "txt_occ_dialog_1_authentication_failed";
         eapType = configurations(InnerType).toInt();
         break;
-       
+
     case KErrWlanNotSubscribed:
     case KErrWlanAccessBarred:
     case KErrWlanPasswordExpired:
@@ -227,65 +236,69 @@
             eapType = configurations(OuterType).toInt();
         }
         break;
-        
+
     default:
         // Return empty string
         break;
     }
-    
+
     QString string;
     if (textId) {
         string = HbParameterLengthLimiter(hbTrId(textId)).arg(eapTypeToString(eapType));
     }
-    
+
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_ERRORSTRING_EXIT );
     return string;
 }
 
 /*!
    Reader method for eap configurations.
-   
+
    See ConfigurationId for further details about the data types in QVariant.
-   
+
    @param [in] confId Defines what configuration is read.
-   
+
    @return configuration value.
  */
 QVariant EapWizardPrivate::configurations(ConfigurationId confId) const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_CONFIGURATIONS_ENTRY );
     Q_ASSERT(mConfigurations.contains(confId));
-    
+
 #ifdef OST_TRACE_COMPILER_IN_USE
     QString tmp;
     QDebug tmpStream(&tmp );
     tmpStream << mConfigurations[confId];
     TPtrC16 string(tmp.utf16(), tmp.length() );
-    
+
     OstTraceExt2( 
         TRACE_NORMAL, 
         EAPWIZARDPRIVATE_CONFIGURATIONS, 
         "EapWizardPrivate::configurations;confId=%{ConfigurationId};string=%S", 
         (TUint)confId, string );
 #endif
-        
+
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_CONFIGURATIONS_EXIT );
     return mConfigurations[confId];
 }
 
 /*!
    Sets EAP configuration value for given configuration identifier.
    See ConfigurationId for further details about the data types in QVariant.
-   
+
    @param [in] confId Configuration Identifier do to be set
    @param [in] value  Value for configuration.
  */
 void EapWizardPrivate::setConfigurations(
     ConfigurationId confId, const QVariant &value)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_SETCONFIGURATIONS_ENTRY );
 #ifdef OST_TRACE_COMPILER_IN_USE
     QString tmp;
     QDebug tmpStream(&tmp );
     tmpStream << value;
     TPtrC16 string( tmp.utf16(), tmp.length() );
-    
+
     OstTraceExt2( 
         TRACE_NORMAL, 
         EAPWIZARDPRIVATE_SETCONFIGURATIONS, 
@@ -294,6 +307,7 @@
 #endif
 
     mConfigurations[confId] = value;
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_SETCONFIGURATIONS_EXIT );
 }
 
 /*!
@@ -301,79 +315,85 @@
  */
 EapQtConfigInterface* EapWizardPrivate::eapConfigurationInterface() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_EAPCONFIGURATIONINTERFACE_ENTRY );
     Q_ASSERT(mEapConfIf.data());
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_EAPCONFIGURATIONINTERFACE_EXIT );
     return mEapConfIf.data();
 }
 
 /*!
    Maps given EAP Qt Plugin handle into string.
-   
+
    @param [in] id EapQtPluginHandle::Handle, id to be mapped to string.
-   
+
    @return EAP String.
  */
 QString EapWizardPrivate::eapTypeToString(int id) const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_EAPTYPETOSTRING_ENTRY );
     QString locId;
     switch (id) {
     case EapQtPluginHandle::PluginEapAka:
         locId = EapWizardUiStrings::EapAka;
         break;
-        
+
     case EapQtPluginHandle::PluginEapFast:
         locId = EapWizardUiStrings::EapFast;
         break;
-        
+
     case EapQtPluginHandle::PluginLeap:
         locId = EapWizardUiStrings::Leap;
         break;
-        
+
     case EapQtPluginHandle::PluginPeap:
         locId = EapWizardUiStrings::Peap;
         break;
-        
+
     case EapQtPluginHandle::PluginEapSim:
         locId = EapWizardUiStrings::EapSim;
         break;
-        
+
     case EapQtPluginHandle::PluginEapTls:
         locId = EapWizardUiStrings::EapTls;
         break;
-        
+
     case EapQtPluginHandle::PluginEapTtls:
         locId = EapWizardUiStrings::EapTtls;
         break;
-        
+
     case EapQtPluginHandle::PluginEapMschapv2:
         locId = EapWizardUiStrings::EapMschapv2;
         break;
-        
+
     case EapQtPluginHandle::PluginEapGtc:
         locId = EapWizardUiStrings::EapGtc;
         break;
-        
+
     case EapQtPluginHandle::PluginPap:
         locId = EapWizardUiStrings::Pap;
         break;
-        
+
     default:
         // Invalid enum
         Q_ASSERT(EapQtPluginHandle::PluginPlainMschapv2 == id);
         locId = EapWizardUiStrings::Mschapv2;
         break;
     }
-    
+
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_EAPTYPETOSTRING_EXIT );
     return locId;
 }
 
 /*!
    Accessor to WLAN Wizard Helper objects.
-   
+
    @return a pointer to helper object.
  */
 WlanWizardHelper *EapWizardPrivate::wizardHelper() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_WIZARDHELPER_ENTRY );
     Q_ASSERT(mWizardHelper);
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_WIZARDHELPER_EXIT );
     return mWizardHelper;
 }
 
@@ -382,74 +402,78 @@
  */
 void EapWizardPrivate::createPages()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_CREATEPAGES_ENTRY );
     mWizardHelper->addPage(
         EapWizardPage::PageOuterType,
         new EapWizardPageOuterType(this));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PageCertificateCa,
         new EapWizardPageCertCa(this));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PageCertificateUser,
         new EapWizardPageCertUser(this));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PageIdentity,
         new EapWizardPageIdentity(this));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PageInnerTypeEapTtls, 
         new EapWizardPageInnerType(
             this, 
             EapQtPluginHandle::PluginEapTtls));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PageInnerTypePeap, 
         new EapWizardPageInnerType(
             this,
             EapQtPluginHandle::PluginPeap));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PageUsernamePassword, 
         new EapWizardPageUsernamePassword(this));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PageNewPacStorePassword, 
         new EapWizardPageNewPacStore(this));
-    
+
     mWizardHelper->addPage(
         EapWizardPage::PagePromptPacStorePassword,
         new EapWizardPagePacStorePasswordConfirm(this));
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_CREATEPAGES_EXIT );
 }
 
 /*!
    Check whether selected outer type has inner method.
-   
+
    @return true if inner method exists, false otherwise.
  */
 bool EapWizardPrivate::hasInnerMethod() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_HASINNERMETHOD_ENTRY );
     int outerType = configurations(EapWizardPrivate::OuterType).toInt();
     bool ret = false;
-    
-    switch (outerType){
+
+    switch (outerType) {
     case EapQtPluginHandle::PluginEapTtls:
     case EapQtPluginHandle::PluginPeap:
     case EapQtPluginHandle::PluginEapFast:
         ret = true;
         break;
     }
-    
+
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_HASINNERMETHOD_EXIT );
     return ret;
 }
 
 
 /*
    Handles TLS methods (PEAP, EAP-TLS and EAP-TTLS) settings.
-   
+
    Stores configurations to eapConf
-   
+
    @param [in,out] eapConf configuration is written to this object.
    @param [in] outerType Outer EAP method
  */
@@ -457,6 +481,7 @@
     EapQtConfig &eapConf,
     EapQtPluginHandle &outerType)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_HANDLETLSMETHODSSETTINGS_ENTRY );
     // Common stuff for all tls methods
     eapConf.setValue(EapQtConfig::UseIdentityPrivacy, false);
     eapConf.setValue(EapQtConfig::VerifyServerRealm, false);
@@ -465,9 +490,9 @@
     eapConf.setValue(EapQtConfig::Username, configurations(TunnelUsername));
     eapConf.setValue(EapQtConfig::RealmAutomatic, configurations(TunnelRealmAutomatic));
     eapConf.setValue(EapQtConfig::Realm, configurations(TunnelRealm));
-    
+
     QVariant certVariant = configurations(CertificateCa);
-    
+
     if (certVariant.canConvert<EapQtCertificateInfo> ()) {
         QList<QVariant> caCerts;
         caCerts.append(certVariant);
@@ -476,23 +501,23 @@
     } else {
         eapConf.setValue(EapQtConfig::AuthorityCertificateAutomatic, true);
     }
-    
+
     // type specific configurations
     if (outerType == EapQtPluginHandle::PluginEapTls) {
         QList<QVariant> userCerts;
         userCerts.append(configurations(CertificateUser));
         eapConf.setValue(EapQtConfig::ClientAuthenticationRequired, true);
         eapConf.setValue(EapQtConfig::UserCertificate, userCerts);
-        
+
     } else if (outerType == EapQtPluginHandle::PluginPeap) {
-        
+
         switch (configurations(InnerType).toInt()) {
         case EapQtPluginHandle::PluginEapMschapv2:
             // EAP-MSCHAPv2: enable v0 only
             eapConf.setValue(EapQtConfig::PeapVersion0Allowed, true);
             eapConf.setValue(EapQtConfig::PeapVersion1Allowed, false);
             break;
-            
+
         case EapQtPluginHandle::PluginEapGtc:
             // EAP-GTC: enable v1 only
             eapConf.setValue(EapQtConfig::PeapVersion0Allowed, false);
@@ -501,20 +526,22 @@
         }
         eapConf.setValue(EapQtConfig::PeapVersion2Allowed, false);
     }
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_HANDLETLSMETHODSSETTINGS_EXIT );
 }
 
 /*!
    Handles configurations for EAP-FAST.
-   
+
    @param [in,out] eapConf EAP Configuration
-   
+
    @param false in case of failure.
  */
 bool EapWizardPrivate::handleEapFastSettings(EapQtConfig &eapConf)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_HANDLEEAPFASTSETTINGS_ENTRY );
     bool ret = true;
     EapQtPacStoreConfig pacStoreConf;
-    
+
     eapConf.setValue(EapQtConfig::ProvisioningModeAuthenticated, false);
     eapConf.setValue(EapQtConfig::ProvisioningModeUnauthenticated, true);
     eapConf.setValue(EapQtConfig::VerifyServerRealm, false);
@@ -526,60 +553,66 @@
         pacStoreConf.setValue(
             EapQtPacStoreConfig::PacStorePassword, 
             configurations(PacStorePassword));
-        
+
         pacStoreConf.setValue(
             EapQtPacStoreConfig::PacStoreSavePassword, 
             true);
-        
+
         if (!mEapConfIf->savePacStoreConfiguration(pacStoreConf)) {
             // no cleaning required
             ret = false;
         }
         break;
-        
+
     default:
         // Do nothing
         break;
     }
-    
+
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_HANDLEEAPFASTSETTINGS_EXIT );
     return ret;
 }
 
 /*!
    Handles configurations for EAP-AKA and EAP-SIM.
-   
+
    @param [in,out] eapConf EAP Configuration
  */
 void EapWizardPrivate::handleEapAkaSimSettings(EapQtConfig &eapConf)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_HANDLEEAPAKASIMSETTINGS_ENTRY );
     eapConf.setValue(EapQtConfig::UsernameAutomatic, true);
     eapConf.setValue(EapQtConfig::RealmAutomatic, true);    
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_HANDLEEAPAKASIMSETTINGS_EXIT );
 }
 
 /*!
    Handles configurations for LEAP.
-   
+
    @param [in,out] eapConf EAP Configuration
  */
 void EapWizardPrivate::handleLeapSettings(EapQtConfig &eapConf)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_HANDLELEAPSETTINGS_ENTRY );
     eapConf.setValue(EapQtConfig::UsernameAutomatic, false);
     eapConf.setValue(EapQtConfig::Username, configurations(Username));
     eapConf.setValue(EapQtConfig::PasswordPrompt, false);
     eapConf.setValue(EapQtConfig::Password, configurations(Password));    
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_HANDLELEAPSETTINGS_EXIT );
 }
 
 /*!
    Store outer type settings.
-   
+
    @param outerType reference to outertype
-    
+
    @return false in case of failure.
  */
 bool EapWizardPrivate::storeOuterTypeSettings(EapQtPluginHandle &outerType)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_STOREOUTERTYPESETTINGS_ENTRY );
     EapQtConfig eapConf;
-    
+
     // 1. Store outer type settings
     switch (outerType.pluginId()) {
     case EapQtPluginHandle::PluginEapTtls: 
@@ -587,65 +620,70 @@
     case EapQtPluginHandle::PluginEapTls:
         handleTlsMethodsSettings(eapConf, outerType);
         break;
-        
+
     case EapQtPluginHandle::PluginEapFast:
         if (!handleEapFastSettings(eapConf)) {
+            OstTraceFunctionExit0( EAPWIZARDPRIVATE_STOREOUTERTYPESETTINGS_EXIT );
             return false;
         }
         break;
-    
+
     case EapQtPluginHandle::PluginEapAka: 
     case EapQtPluginHandle::PluginEapSim:
         handleEapAkaSimSettings(eapConf);
         break;
-    
+
     default:
         Q_ASSERT(outerType == EapQtPluginHandle::PluginLeap);
         handleLeapSettings(eapConf);
         break;
     }
-    
+
     if (hasInnerMethod()) {
         EapQtPluginHandle inner = static_cast<EapQtPluginHandle::Plugin>(
             configurations(InnerType).toInt());
-        
+
         QList<QVariant> innerType;
         innerType.append(qVariantFromValue(inner));
         eapConf.setValue(EapQtConfig::InnerType, innerType);
     }
-    
+
     // store outer type configurations
     if (!mEapConfIf->saveConfiguration(outerType, eapConf)){
         mEapConfIf->deleteConfiguration();
+        OstTraceFunctionExit0( DUP1_EAPWIZARDPRIVATE_STOREOUTERTYPESETTINGS_EXIT );
         return false;
     }
-    
+
     QList<EapQtPluginHandle> selectedOuterTypes;
     selectedOuterTypes.append(outerType);
     if (!mEapConfIf->setSelectedOuterTypes(selectedOuterTypes)){
         mEapConfIf->deleteConfiguration();
+        OstTraceFunctionExit0( DUP2_EAPWIZARDPRIVATE_STOREOUTERTYPESETTINGS_EXIT );
         return false;
     }
-    
+
+    OstTraceFunctionExit0( DUP3_EAPWIZARDPRIVATE_STOREOUTERTYPESETTINGS_EXIT );
     return true;
 }
 
 
 /*!
    Store inner type settings if exists.
-   
+
    @param outerType reference to outertype
-    
+
    @return false in case of failure.
  */
 bool EapWizardPrivate::storeInnerTypeSettings(EapQtPluginHandle &outerType)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPRIVATE_STOREINNERTYPESETTINGS_ENTRY );
     bool ret = true;
-    
+
     if (hasInnerMethod()) {
         EapQtPluginHandle inner = static_cast<EapQtPluginHandle::Plugin>(
             configurations(InnerType).toInt());
-    
+
         // All inner methods supported by wizard use password / username. 
         EapQtConfig eapConfInner;
         eapConfInner.setValue(EapQtConfig::OuterType, qVariantFromValue(outerType));
@@ -653,11 +691,12 @@
         eapConfInner.setValue(EapQtConfig::Username, configurations(Username));
         eapConfInner.setValue(EapQtConfig::PasswordPrompt, false);
         eapConfInner.setValue(EapQtConfig::Password, configurations(Password));
-            
+
         if (!mEapConfIf->saveConfiguration(inner, eapConfInner)){
             mEapConfIf->deleteConfiguration();
             ret = false;
         }
     }
+    OstTraceFunctionExit0( EAPWIZARDPRIVATE_STOREINNERTYPESETTINGS_EXIT );
     return ret;
 }
--- a/wlanutilities/eapwizard/src/eapwizardpage.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpage.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -24,6 +24,11 @@
 // User includes
 #include "eapwizardpage.h"
 #include "eapwizard_p.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpageTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPage
@@ -51,13 +56,15 @@
 
 /*!
    Constructor.
-   
+
    @param [in] parent Pointer to EAP Wizard private implementation.
  */
 EapWizardPage::EapWizardPage(EapWizardPrivate* parent) :
     QObject(parent), 
     mWizard(parent)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGE_EAPWIZARDPAGE_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGE_EAPWIZARDPAGE_EXIT );
 }
 
 /*!
@@ -65,7 +72,9 @@
  */
 EapWizardPage::~EapWizardPage()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGE_EAPWIZARDPAGE_ENTRY );
     mWizard = NULL;
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGE_EAPWIZARDPAGE_EXIT );
 }
 
 /*!
@@ -73,13 +82,15 @@
  */
 int EapWizardPage::nextId(bool &removeFromStack) const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGE_NEXTID_ENTRY );
     removeFromStack = false;
+    OstTraceFunctionExit0( EAPWIZARDPAGE_NEXTID_EXIT );
     return nextId();
 }
 
 /*!
    Loads requested section from given docml file.
-   
+
    @param [in] loader Document loader for docml
    @param [in] orientation Orientation to be loaded
    @param [in] filename the name of docml filename
@@ -93,8 +104,9 @@
     const QString &portraitSection,
     const QString &landscapeSection) const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGE_LOADDOCMLSECTION_ENTRY );
     bool ok;
-    
+
     // Then load the orientation specific section
     if (orientation == Qt::Horizontal) {
         loader->load(filename, landscapeSection, &ok);
@@ -104,4 +116,5 @@
         loader->load(filename, portraitSection, &ok);
         Q_ASSERT(ok);
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGE_LOADDOCMLSECTION_EXIT );
 }
--- a/wlanutilities/eapwizard/src/eapwizardpagecertca.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpagecertca.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -31,6 +31,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizard_p.h"
 #include "eapwizardpagecertca.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpagecertcaTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPageCertCa
@@ -48,7 +53,7 @@
 
 /*!
    Constructor.
-   
+
    @param [in] parent Pointer to EAP Wizard private implementation.
  */
 EapWizardPageCertCa::EapWizardPageCertCa(EapWizardPrivate* parent) :
@@ -58,6 +63,8 @@
     mTitle(NULL), 
     mCertList(NULL)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTCA_EAPWIZARDPAGECERTCA_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTCA_EAPWIZARDPAGECERTCA_EXIT );
 }
 
 /*!
@@ -65,6 +72,8 @@
  */
 EapWizardPageCertCa::~EapWizardPageCertCa()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGECERTCA_EAPWIZARDPAGECERTCA_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGECERTCA_EAPWIZARDPAGECERTCA_EXIT );
 }
 
 /*!
@@ -72,16 +81,17 @@
  */
 HbWidget* EapWizardPageCertCa::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTCA_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         mDocumentLoader.reset( new HbDocumentLoader(
             mWizard->wizardHelper()->mainWindow()) );
-        
+
         bool ok;
         mDocumentLoader->load(":/docml/occ_eap_wizard_01_02_04.docml", &ok);
         Q_ASSERT(ok);
-        
+
         loadDocmlSection(mWizard->wizardHelper()->mainWindow()->orientation());
-        
+
         mWidget = qobject_cast<HbWidget*> (
             mDocumentLoader->findWidget("occ_eap_wizard_01"));
         Q_ASSERT(mWidget);
@@ -89,13 +99,13 @@
         mCertList = qobject_cast<HbRadioButtonList*> (
             mDocumentLoader->findWidget("list"));
         Q_ASSERT(mCertList);
-        
+
         mTitle = qobject_cast<HbLabel*> (mDocumentLoader->findWidget("title"));
         Q_ASSERT(mTitle);
-        
+
         mTitle->setPlainText(
             hbTrId("txt_occ_title_select_authority_certificate"));
-        
+
         ok = connect(
             mWizard->wizardHelper()->mainWindow(),
             SIGNAL(orientationChanged(Qt::Orientation)), 
@@ -103,7 +113,7 @@
             SLOT(loadDocmlSection(Qt::Orientation)));
         Q_ASSERT(ok);
     }
-    
+
     EapQtConfigInterface* confIf = mWizard->eapConfigurationInterface();
     // ignore return value
     confIf->updateCertificates();
@@ -112,15 +122,15 @@
     QStringList list;
     list << hbTrId("txt_occ_setlabel_val_select_automatically");
 
-     for (int i = 0; i < mCerts.count(); ++i) {
-         // TODO: workaround for BBHA-863EJN
-         // graphics memory runs out for long lists and items
-         QString tmp(mCerts.at(i).value(
-             EapQtCertificateInfo::CertificateLabel).toString());
-         tmp.truncate(10);
-         list << tmp;
+    for (int i = 0; i < mCerts.count(); ++i) {
+        // TODO: workaround for BBHA-863EJN
+        // graphics memory runs out for long lists and items
+        QString tmp(mCerts.at(i).value(
+            EapQtCertificateInfo::CertificateLabel).toString());
+        tmp.truncate(10);
+        list << tmp;
     }
-    
+
     // If certificate list has been changed update the content otherwise do not
     // change it
     if (list != mCertList->items()) {
@@ -128,33 +138,37 @@
         // Automatic is selected by default
         mCertList->setSelected(IndexForAutomatic);
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTCA_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
 /*!
    Loads the required orientation of docml.
-   
+
    @param [in] orientation Orientation to be loaded. 
  */
 void EapWizardPageCertCa::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTCA_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_01_02_04.docml",
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTCA_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
    See WlanWizardPage.
-   
+
    @return next wizard page:
    - EapWizardPage::PageCertificateUser: For EAP-TLS 
    - EapWizardPage::PageIdentity: For EAP-TTLS and PEAP
  */
 int EapWizardPageCertCa::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTCA_NEXTID_ENTRY );
     int id = WlanWizardPage::PageNone;
     bool ok;
     int type = mWizard->configurations(EapWizardPrivate::OuterType).toInt(&ok);
@@ -177,5 +191,6 @@
                 selected - AmountOfNonCertItems)));
     }
 
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTCA_NEXTID_EXIT );
     return id;
 }
--- a/wlanutilities/eapwizard/src/eapwizardpagecertuser.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpagecertuser.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -30,6 +30,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizardpagecertuser.h"
 #include "eapwizard_p.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpagecertuserTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPageCertUser
@@ -47,7 +52,7 @@
 
 /*!
    Constructor.
-   
+
    @param [in] parent Pointer to EAP Wizard private implementation.
  */
 
@@ -59,6 +64,8 @@
     mDocumentLoader(NULL),
     mValid(false)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTUSER_EAPWIZARDPAGECERTUSER_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTUSER_EAPWIZARDPAGECERTUSER_EXIT );
 }
 
 /*!
@@ -66,6 +73,8 @@
  */
 EapWizardPageCertUser::~EapWizardPageCertUser()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGECERTUSER_EAPWIZARDPAGECERTUSER_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGECERTUSER_EAPWIZARDPAGECERTUSER_EXIT );
 }
 
 /*!
@@ -73,13 +82,14 @@
  */
 HbWidget* EapWizardPageCertUser::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTUSER_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok;
         mDocumentLoader.reset(new HbDocumentLoader(mWizard->wizardHelper()->mainWindow()));
         mDocumentLoader->load(":/docml/occ_eap_wizard_06.docml", &ok);
         Q_ASSERT(ok);
         loadDocmlSection(mWizard->wizardHelper()->mainWindow()->orientation());
-        
+
         mWidget = qobject_cast<HbWidget*> (mDocumentLoader->findWidget("occ_eap_wizard_06"));
         Q_ASSERT(mWidget);
 
@@ -97,7 +107,7 @@
             this, 
             SLOT(loadDocmlSection(Qt::Orientation)));
         Q_ASSERT(ok);
-        
+
         ok = connect(
             mCertList, SIGNAL(itemSelected(int)), 
             this, SLOT(itemSelected(int)));
@@ -123,7 +133,7 @@
         mCertList->setItems(list);
         mErrorLabel->setVisible(false);
         mCertList->setVisible(true);
-        
+
         if (list.count() == 1) {
             mValid = true;
             mCertList->setSelected(0);
@@ -131,60 +141,69 @@
             mValid = false;
         }
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTUSER_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
 /*!
    Loads the required orientation of docml.
-   
+
    @param [in] orientation Orientation to be loaded. 
  */
 void EapWizardPageCertUser::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTUSER_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_06.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTUSER_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
    See WlanWizardPage. 
-   
+
    @return next wizard page: EapWizardPage::PageIdentity
  */
 int EapWizardPageCertUser::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTUSER_NEXTID_ENTRY );
     mWizard->setConfigurations(
         EapWizardPrivate::CertificateUser, 
         qVariantFromValue(
             mCerts.at(mCertList->selected())));
 
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTUSER_NEXTID_EXIT );
     return EapWizardPage::PageIdentity;
 }
 
 /*!
    See WlanWizardPage.
-   
+
    Validates the content of the page.
-   
+
    @return true if content is valid.
  */
 bool EapWizardPageCertUser::showPage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTUSER_SHOWPAGE_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTUSER_SHOWPAGE_EXIT );
     return mValid;
 }
 
 /*!
    Handler for itemsSelected() signal from HbRadioButtonList.
-   
+
    @param [in] index NOT USED
  */
 void EapWizardPageCertUser::itemSelected(int index)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGECERTUSER_ITEMSELECTED_ENTRY );
     Q_UNUSED(index);
     mValid = true;
     mWizard->wizardHelper()->enableNextButton(mValid);
+    OstTraceFunctionExit0( EAPWIZARDPAGECERTUSER_ITEMSELECTED_EXIT );
 }
 
--- a/wlanutilities/eapwizard/src/eapwizardpageidentity.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpageidentity.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -35,6 +35,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizardpageidentity.h"
 #include "eapwizard_p.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpageidentityTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPageIdentity
@@ -52,7 +57,7 @@
 
 /*!
    Constructor.
-   
+
    @param [in] parent Pointer to EAP Wizard private implementation.
  */
 EapWizardPageIdentity::EapWizardPageIdentity(EapWizardPrivate* parent) :
@@ -68,6 +73,8 @@
     mLabelRealm(NULL),
     mLabelUsername(NULL)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_EXIT );
 }
 
 /*!
@@ -75,6 +82,8 @@
  */
 EapWizardPageIdentity::~EapWizardPageIdentity()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_EXIT );
 }
 
 /*!
@@ -82,6 +91,7 @@
  */
 HbWidget* EapWizardPageIdentity::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok = true;
         mDocumentLoader.reset(
@@ -90,7 +100,7 @@
         Q_ASSERT(ok);
 
         loadDocmlSection(mWizard->wizardHelper()->mainWindow()->orientation());
-        
+
         mWidget = qobject_cast<HbWidget*> (mDocumentLoader->findWidget("occ_eap_wizard_03"));
         Q_ASSERT(mWidget);
 
@@ -105,35 +115,35 @@
 
         mCheckRealm = qobject_cast<HbCheckBox*> (mDocumentLoader->findWidget("setlabel_54_val"));
         Q_ASSERT(mCheckRealm);
-        
+
         mLabelUsername = qobject_cast<HbLabel*> (mDocumentLoader->findWidget("setlabel_53"));
         Q_ASSERT(mLabelUsername);
-        
+
         mLabelRealm = qobject_cast<HbLabel*> (mDocumentLoader->findWidget("setlabel_54"));
         Q_ASSERT(mLabelRealm);
-        
+
         ok = connect(
             mWizard->wizardHelper()->mainWindow(),
             SIGNAL(orientationChanged(Qt::Orientation)), 
             this, 
             SLOT(loadDocmlSection(Qt::Orientation)));
         Q_ASSERT(ok);
-        
+
         ok = connect(
             mEditUsername, SIGNAL(textChanged(const QString &)), 
             this, SLOT(textChanged(const QString &)));
         Q_ASSERT(ok);
-        
+
         ok = connect(
             mEditRealm, SIGNAL(textChanged(const QString &)),
             this, SLOT(textChanged(const QString &)));
         Q_ASSERT(ok);
-        
+
         ok = connect(
             mCheckUsername, SIGNAL(stateChanged(int)), 
             this, SLOT(stateChanged(int)));
         Q_ASSERT(ok);
-        
+
         ok = connect(
             mCheckRealm, SIGNAL(stateChanged(int)), 
             this, SLOT(stateChanged(int)));
@@ -147,7 +157,7 @@
         HbParameterLengthLimiter(
             hbTrId("txt_occ_setlabel_user_name_for_1")).arg(
                 mWizard->eapTypeToString(plugin.pluginId())));
-    
+
     // Configure editors properties
     mValidatorUsername.reset( 
         mWizard->eapConfigurationInterface()->validatorEap(
@@ -163,27 +173,30 @@
     Q_ASSERT(mValidatorRealm.data());
     mValidatorRealm->updateEditor(mEditRealm);
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
 /*!
    Loads the required orientation of docml.
-   
+
    @param [in] orientation Orientation to be loaded. 
  */
 void EapWizardPageIdentity::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_03.docml",
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
    See WlanWizardPage.
-   
+
    @return next wizard page:
    - WlanWizardPage::PageProcessSettings: For EAP-TLS 
    - EapWizardPage::PageInnerTypeEapTtls: For EAP-TTLS
@@ -191,6 +204,7 @@
  */
 int EapWizardPageIdentity::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_NEXTID_ENTRY );
     int id = WlanWizardPage::PageNone;
     bool ok;
     int type = mWizard->configurations(EapWizardPrivate::OuterType).toInt(&ok);
@@ -200,11 +214,11 @@
     case EapQtPluginHandle::PluginEapTls:
         id = WlanWizardPage::PageProcessSettings;
         break;
-        
+
     case EapQtPluginHandle::PluginEapTtls:
         id = EapWizardPage::PageInnerTypeEapTtls;
         break;
-        
+
     case EapQtPluginHandle::PluginPeap:
         id = EapWizardPage::PageInnerTypePeap;
         break;
@@ -212,27 +226,29 @@
 
     mWizard->setConfigurations(EapWizardPrivate::TunnelUsernameAutomatic,
         mCheckUsername->isChecked());
-    
+
     mWizard->setConfigurations(
         EapWizardPrivate::TunnelUsername, mEditUsername->text());
-    
+
     mWizard->setConfigurations(
         EapWizardPrivate::TunnelRealmAutomatic, mCheckRealm->isChecked());
-    
+
     mWizard->setConfigurations(EapWizardPrivate::TunnelRealm, mEditRealm->text());
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_NEXTID_EXIT );
     return id;
 }
 
 /*!
    See WlanWizardPage.
-   
+
    Validates the content of the page.
-   
+
    @return true if content is valid.
  */
 bool EapWizardPageIdentity::showPage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_SHOWPAGE_ENTRY );
     bool valid = false;
 
     if (validateGroup(mEditUsername, mCheckUsername, mValidatorUsername.data()) && 
@@ -240,42 +256,47 @@
         valid = true;
     }
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_SHOWPAGE_EXIT );
     return valid;
 }
 
 /*!
    Slot for textChanged() signal from HbLineEdit.
-   
+
    @param [in] text NOT USED.
  */
 void EapWizardPageIdentity::textChanged(const QString & text)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_TEXTCHANGED_ENTRY );
     Q_UNUSED(text);
     mWizard->wizardHelper()->enableNextButton(showPage());
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_TEXTCHANGED_EXIT );
 }
 
 /*!
    Slot for stateChanged() signal from HbCheckBox.
-   
+
    @param [in] state NOT USED.
  */
 void EapWizardPageIdentity::stateChanged(int state )
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_STATECHANGED_ENTRY );
     Q_UNUSED(state);
     mEditUsername->setEnabled(!mCheckUsername->isChecked());
     mEditRealm->setEnabled(!mCheckRealm->isChecked());
     mWizard->wizardHelper()->enableNextButton(showPage());
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_STATECHANGED_EXIT );
 }
 
 /*!
    Validates the settings group, that is line edit and checkbox using
    given validator.
-   
+
    @param [in] edit pointer to line edit to which content must be validated
    @param [in] checkBox pointer to checkbox
    @param [in] validator pointer to validator which is used to validate the content
                     of the line editor.
-                    
+
    @return true if validation is ok, false otherwise. 
  */
 bool EapWizardPageIdentity::validateGroup(
@@ -283,11 +304,13 @@
     HbCheckBox *checkBox,
     EapQtValidator *validator) const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_VALIDATEGROUP_ENTRY );
     bool status = false;
     if (checkBox->isChecked() || 
         checkBox->isChecked() == false && 
         EapQtValidator::StatusOk == validator->validate(edit->text())) {
         status = true;
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_VALIDATEGROUP_EXIT );
     return status;
 }
--- a/wlanutilities/eapwizard/src/eapwizardpageinnertype.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpageinnertype.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -31,6 +31,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizardpageinnertype.h"
 #include "eapwizard_p.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpageinnertypeTraces.h"
+#endif
+
 
 
 /*!
@@ -49,7 +54,7 @@
 
 /*!
    Constructor.
-   
+
    @param [in] parent Pointer to EAP Wizard private implementation.
    @param [in] outerType Identifies the outer type: Peap or EapTtls
  */
@@ -63,6 +68,8 @@
     mOuterType(outerType),
     mValid(false)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEINNERTYPE_EAPWIZARDPAGEINNERTYPE_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGEINNERTYPE_EAPWIZARDPAGEINNERTYPE_EXIT );
 }
 
 /*!
@@ -70,6 +77,8 @@
  */
 EapWizardPageInnerType::~EapWizardPageInnerType()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGEINNERTYPE_EAPWIZARDPAGEINNERTYPE_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGEINNERTYPE_EAPWIZARDPAGEINNERTYPE_EXIT );
 }
 
 /*!
@@ -77,6 +86,7 @@
  */
 HbWidget* EapWizardPageInnerType::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEINNERTYPE_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok;
         mDocumentLoader.reset(
@@ -85,7 +95,7 @@
         Q_ASSERT(ok);
 
         loadDocmlSection(mWizard->wizardHelper()->mainWindow()->orientation());
-        
+
         mWidget = qobject_cast<HbWidget*> (mDocumentLoader->findWidget("occ_eap_wizard_01"));
         Q_ASSERT(mWidget);
 
@@ -94,20 +104,20 @@
 
         mRadio = qobject_cast<HbRadioButtonList*> (mDocumentLoader->findWidget("list"));
         Q_ASSERT(mRadio);
-        
+
         ok = connect(
             mWizard->wizardHelper()->mainWindow(),
             SIGNAL(orientationChanged(Qt::Orientation)), 
             this, 
             SLOT(loadDocmlSection(Qt::Orientation)));
         Q_ASSERT(ok);
-        
+
         QStringList list;
         switch (mOuterType){
         case EapQtPluginHandle::PluginPeap:
             appendToList(list, EapQtPluginHandle::PluginEapMschapv2);    
             break;
-            
+
         default:
             Q_ASSERT(mOuterType == EapQtPluginHandle::PluginEapTtls);
             appendToList(list, EapQtPluginHandle::PluginPlainMschapv2);
@@ -116,7 +126,7 @@
         }
         appendToList(list, EapQtPluginHandle::PluginEapGtc);
         mRadio->setItems(list);
- 
+
         ok = connect(mRadio, SIGNAL(itemSelected(int)), this, SLOT(itemSelected(int)));
         Q_ASSERT(ok);
     }
@@ -128,65 +138,74 @@
                     mWizard->configurations(
                         EapWizardPrivate::OuterType).toInt())));
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEINNERTYPE_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
 /*!
    Loads the required orientation of docml.
-   
+
    @param [in] orientation Orientation to be loaded. 
  */
 void EapWizardPageInnerType::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEINNERTYPE_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_01_02_04.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGEINNERTYPE_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
    See WlanWizardPage.
-   
+
    @return next wizard page: EapWizardPage::PageUsernamePassword
  */
 int EapWizardPageInnerType::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEINNERTYPE_NEXTID_ENTRY );
     mWizard->setConfigurations(
         EapWizardPrivate::InnerType, 
         mEapTypes.at(mRadio->selected()));
-    
+
+    OstTraceFunctionExit0( EAPWIZARDPAGEINNERTYPE_NEXTID_EXIT );
     return EapWizardPage::PageUsernamePassword;
 }
 
 /*!
    See WlanWizardPage.
-   
+
    Validates the content of the page.
-   
+
    @return true if content is valid.
  */
 bool EapWizardPageInnerType::showPage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEINNERTYPE_SHOWPAGE_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGEINNERTYPE_SHOWPAGE_EXIT );
     return mValid;
 }
 
 /*!
    Handler for itemsSelected() signal from HbRadioButtonList.
-   
+
    @param [in] index NOT USED
  */
 void EapWizardPageInnerType::itemSelected(int index )
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEINNERTYPE_ITEMSELECTED_ENTRY );
     Q_UNUSED(index);
     mValid = true;
     mWizard->wizardHelper()->enableNextButton(mValid);
+    OstTraceFunctionExit0( EAPWIZARDPAGEINNERTYPE_ITEMSELECTED_EXIT );
 }
 
 /*!
    Appends given method to radiobutton list if plugin (method) is supported
-   
+
    @param [in,out] items the content of radiobutton list
    @param [in] pluginHandle EAP Type plugin handle to be added.
  */
@@ -194,9 +213,11 @@
     QStringList &items, 
     EapQtPluginHandle::Plugin innerType)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEINNERTYPE_APPENDTOLIST_ENTRY );
     if (mWizard->eapConfigurationInterface()->isSupportedInnerType(
         static_cast<EapQtPluginHandle::Plugin>(mOuterType), innerType)) {
         items << mWizard->eapTypeToString(innerType);
         mEapTypes.append(innerType);
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGEINNERTYPE_APPENDTOLIST_EXIT );
 }
--- a/wlanutilities/eapwizard/src/eapwizardpagenewpacstore.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpagenewpacstore.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -31,6 +31,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizardpagenewpacstore.h"
 #include "eapwizard_p.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpagenewpacstoreTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPageNewPacStore
@@ -62,6 +67,8 @@
     mTitlePasswordNew(NULL), 
     mTitlePasswordConfirm(NULL)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGENEWPACSTORE_EAPWIZARDPAGENEWPACSTORE_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGENEWPACSTORE_EAPWIZARDPAGENEWPACSTORE_EXIT );
 }
 
 /*!
@@ -69,6 +76,8 @@
  */
 EapWizardPageNewPacStore::~EapWizardPageNewPacStore()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGENEWPACSTORE_EAPWIZARDPAGENEWPACSTORE_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGENEWPACSTORE_EAPWIZARDPAGENEWPACSTORE_EXIT );
 }
 
 /*!
@@ -76,6 +85,7 @@
  */
 HbWidget* EapWizardPageNewPacStore::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGENEWPACSTORE_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok;
         mDocumentLoader.reset( 
@@ -129,6 +139,7 @@
             this, SLOT(textChanged(const QString &)));
         Q_ASSERT(ok);
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGENEWPACSTORE_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -139,12 +150,14 @@
  */
 void EapWizardPageNewPacStore::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGENEWPACSTORE_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_05_07.docml",
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGENEWPACSTORE_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -156,11 +169,13 @@
  */
 bool EapWizardPageNewPacStore::showPage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGENEWPACSTORE_SHOWPAGE_ENTRY );
     bool valid = false;
     if (mValidator->validate(mEditPasswordNew->text()) == EapQtValidator::StatusOk &&
         mEditPasswordNew->text() == mEditPasswordConfirm->text()) {
         valid = true;
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGENEWPACSTORE_SHOWPAGE_EXIT );
     return valid;
 }
 
@@ -171,7 +186,9 @@
  */
 int EapWizardPageNewPacStore::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGENEWPACSTORE_NEXTID_ENTRY );
     mWizard->setConfigurations(EapWizardPrivate::PacStorePassword, mEditPasswordNew->text());
+    OstTraceFunctionExit0( EAPWIZARDPAGENEWPACSTORE_NEXTID_EXIT );
     return EapWizardPage::PageUsernamePassword;
 }
 
@@ -182,6 +199,8 @@
  */
 void EapWizardPageNewPacStore::textChanged(const QString &text)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGENEWPACSTORE_TEXTCHANGED_ENTRY );
     Q_UNUSED(text);
     mWizard->wizardHelper()->enableNextButton(showPage());
+    OstTraceFunctionExit0( EAPWIZARDPAGENEWPACSTORE_TEXTCHANGED_EXIT );
 }
--- a/wlanutilities/eapwizard/src/eapwizardpageoutertype.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpageoutertype.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -32,6 +32,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizard_p.h"
 #include "eapwizardpageoutertype.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpageoutertypeTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPageOuterType
@@ -60,6 +65,8 @@
     mDocumentLoader(NULL),    
     mValid(false)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_EAPWIZARDPAGEOUTERTYPE_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_EAPWIZARDPAGEOUTERTYPE_EXIT );
 }
 
 /*!
@@ -67,6 +74,8 @@
  */
 EapWizardPageOuterType::~EapWizardPageOuterType()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGEOUTERTYPE_EAPWIZARDPAGEOUTERTYPE_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGEOUTERTYPE_EAPWIZARDPAGEOUTERTYPE_EXIT );
 }
 
 /*!
@@ -74,6 +83,7 @@
  */
 HbWidget* EapWizardPageOuterType::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok;
         mDocumentLoader.reset(
@@ -116,6 +126,7 @@
             SLOT(loadDocmlSection(Qt::Orientation)));
         Q_ASSERT(ok);
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -126,12 +137,14 @@
  */
 void EapWizardPageOuterType::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_01_02_04.docml",
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -146,6 +159,7 @@
  */
 int EapWizardPageOuterType::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_NEXTID_ENTRY );
     int id = WlanWizardPage::PageNone;
     EapQtPluginHandle::Plugin handle = 
         static_cast<EapQtPluginHandle::Plugin>(mEapTypes.at(mRadio->selected()));
@@ -173,6 +187,7 @@
     
     mWizard->setConfigurations(EapWizardPrivate::OuterType, handle);
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_NEXTID_EXIT );
     return id;
 }
 
@@ -185,6 +200,8 @@
  */
 bool EapWizardPageOuterType::showPage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_SHOWPAGE_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_SHOWPAGE_EXIT );
     return mValid;
 }
 
@@ -195,9 +212,11 @@
  */
 void EapWizardPageOuterType::itemSelected(int index)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_ITEMSELECTED_ENTRY );
     Q_UNUSED(index);
     mValid = true;
     mWizard->wizardHelper()->enableNextButton(mValid);
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_ITEMSELECTED_EXIT );
 }
 
 /*!
@@ -209,11 +228,13 @@
 void EapWizardPageOuterType::appendToList(
     QStringList &items, int pluginHandle)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_APPENDTOLIST_ENTRY );
     if (mWizard->eapConfigurationInterface()->isSupportedOuterType(
         (EapQtPluginHandle::Plugin)pluginHandle)) {
         items << mWizard->eapTypeToString(pluginHandle);
         mEapTypes.append(pluginHandle);
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_APPENDTOLIST_EXIT );
 }
 
 /*
@@ -223,6 +244,7 @@
  */
 int EapWizardPageOuterType::nextIdForEapFast() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEOUTERTYPE_NEXTIDFOREAPFAST_ENTRY );
     int pageId;
     
     mWizard->setConfigurations(EapWizardPrivate::InnerType,
@@ -256,5 +278,6 @@
         break;
     }
     
+    OstTraceFunctionExit0( EAPWIZARDPAGEOUTERTYPE_NEXTIDFOREAPFAST_EXIT );
     return pageId;
 }
--- a/wlanutilities/eapwizard/src/eapwizardpagepacstorepasswordconfirm.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpagepacstorepasswordconfirm.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -31,6 +31,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizardpagepacstorepasswordconfirm.h"
 #include "eapwizard_p.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpagepacstorepasswordconfirmTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPagePacStorePasswordConfirm
@@ -60,6 +65,8 @@
     mEditPasswordConfirm(NULL),
     mLabelError(NULL)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EXIT );
 }
 
 /*!
@@ -67,6 +74,8 @@
  */
 EapWizardPagePacStorePasswordConfirm::~EapWizardPagePacStorePasswordConfirm()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EXIT );
 }
 
 /*!
@@ -74,6 +83,7 @@
  */
 HbWidget* EapWizardPagePacStorePasswordConfirm::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok;
         mDocumentLoader.reset(
@@ -112,6 +122,7 @@
         Q_ASSERT(ok);
     }
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -123,12 +134,14 @@
  */
 void EapWizardPagePacStorePasswordConfirm::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_08.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -140,6 +153,7 @@
  */
 int EapWizardPagePacStorePasswordConfirm::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_NEXTID_ENTRY );
     int id;
     if (mValidator->validate(mEditPasswordConfirm->text()) == 
         EapQtValidator::StatusOk) {
@@ -154,6 +168,7 @@
         mLabelError->setPlainText(hbTrId("txt_occ_info_incorrect_password"));
     }
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_NEXTID_EXIT );
     return id;
 }
 
@@ -166,7 +181,9 @@
  */
 bool EapWizardPagePacStorePasswordConfirm::showPage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_SHOWPAGE_ENTRY );
     mEditPasswordConfirm->setFocus();
+    OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_SHOWPAGE_EXIT );
     return true;
 }
 
@@ -180,8 +197,10 @@
 bool EapWizardPagePacStorePasswordConfirm::eventFilter(
     QObject *obj, QEvent *event)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EVENTFILTER_ENTRY );
     if (obj == mEditPasswordConfirm && event->type() == QEvent::FocusIn) {
         mLabelError->setPlainText("");
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EVENTFILTER_EXIT );
     return false;
 }
--- a/wlanutilities/eapwizard/src/eapwizardpageusernamepassword.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/eapwizard/src/eapwizardpageusernamepassword.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -33,6 +33,11 @@
 #include "wlanwizardhelper.h"
 #include "eapwizardpageusernamepassword.h"
 #include "eapwizard_p.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "eapwizardpageusernamepasswordTraces.h"
+#endif
+
 
 /*!
    \class EapWizardPageUsernamePassword
@@ -50,7 +55,7 @@
 
 /*!
    Constructor.
-   
+
    @param [in] parent Pointer to EAP Wizard private implementation.
  */
 EapWizardPageUsernamePassword::EapWizardPageUsernamePassword(
@@ -65,6 +70,8 @@
     mTitleUsername(NULL), 
     mTitlePassword(NULL)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEUSERNAMEPASSWORD_EAPWIZARDPAGEUSERNAMEPASSWORD_ENTRY );
+    OstTraceFunctionExit0( EAPWIZARDPAGEUSERNAMEPASSWORD_EAPWIZARDPAGEUSERNAMEPASSWORD_EXIT );
 }
 
 /*!
@@ -72,6 +79,8 @@
  */
 EapWizardPageUsernamePassword::~EapWizardPageUsernamePassword()
 {
+    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGEUSERNAMEPASSWORD_EAPWIZARDPAGEUSERNAMEPASSWORD_ENTRY );
+    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGEUSERNAMEPASSWORD_EAPWIZARDPAGEUSERNAMEPASSWORD_EXIT );
 }
 
 /*!
@@ -79,6 +88,7 @@
  */
 HbWidget* EapWizardPageUsernamePassword::initializePage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEUSERNAMEPASSWORD_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok = true;
         mDocumentLoader.reset(
@@ -101,21 +111,21 @@
 
         mEditPassword = qobject_cast<HbLineEdit*> (mDocumentLoader->findWidget("lineEditPassword"));
         Q_ASSERT(mEditPassword);
-        
+
         mTitlePassword->setPlainText(hbTrId("txt_occ_setlabel_eap_password"));
-        
+
         ok = connect(
             mWizard->wizardHelper()->mainWindow(),
             SIGNAL(orientationChanged(Qt::Orientation)), 
             this, 
             SLOT(loadDocmlSection(Qt::Orientation)));
         Q_ASSERT(ok);
-        
+
         ok = connect(
             mEditUsername, SIGNAL(textChanged(const QString &)), 
             this, SLOT(textChanged(const QString &)));
         Q_ASSERT(ok);
-        
+
         ok = connect(
             mEditPassword, SIGNAL(textChanged(const QString &)), 
             this, SLOT(textChanged(const QString &)));
@@ -127,7 +137,7 @@
     if (eapType != EapQtPluginHandle::PluginLeap) {
         eapType = mWizard->configurations(EapWizardPrivate::InnerType).toInt();
     }
-    
+
     EapQtPluginHandle plugin(static_cast<EapQtPluginHandle::Plugin>(eapType));
 
     mValidatorUsername.reset(
@@ -143,68 +153,77 @@
             EapQtConfig::Password));
     Q_ASSERT(mValidatorPassword.data());
     mValidatorPassword->updateEditor(mEditPassword);
-    
+
     mTitleUsername->setPlainText(
         HbParameterLengthLimiter(
             hbTrId("txt_occ_setlabel_user_name_for_1")).arg(
                 mWizard->eapTypeToString(eapType)));
 
+    OstTraceFunctionExit0( EAPWIZARDPAGEUSERNAMEPASSWORD_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
 /*!
    Loads the required orientation of docml.
-   
+
    @param [in] orientation Orientation to be loaded. 
  */
 void EapWizardPageUsernamePassword::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEUSERNAMEPASSWORD_LOADDOCMLSECTION_ENTRY );
     EapWizardPage::loadDocmlSection(
         mDocumentLoader.data(),
         orientation,
         ":/docml/occ_eap_wizard_05_07.docml",
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( EAPWIZARDPAGEUSERNAMEPASSWORD_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
    See WlanWizardPage.
-   
+
    Validates the content of the page.
-   
+
    @return true if content is valid.
  */
 bool EapWizardPageUsernamePassword::showPage()
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEUSERNAMEPASSWORD_SHOWPAGE_ENTRY );
     bool valid = false;
     if (mValidatorUsername->validate(mEditUsername->text()) == 
         EapQtValidator::StatusOk && 
         mValidatorPassword->validate(mEditPassword->text()) == 
-        EapQtValidator::StatusOk) {
+            EapQtValidator::StatusOk) {
         valid = true;
     }
+    OstTraceFunctionExit0( EAPWIZARDPAGEUSERNAMEPASSWORD_SHOWPAGE_EXIT );
     return valid;
 }
 
 /*!
    See WlanWizardPage.
-   
+
    @return next wizard page: EapWizardPage::PageProcessSettings
  */
 int EapWizardPageUsernamePassword::nextId() const
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEUSERNAMEPASSWORD_NEXTID_ENTRY );
     mWizard->setConfigurations(EapWizardPrivate::Username, mEditUsername->text());
     mWizard->setConfigurations(EapWizardPrivate::Password, mEditPassword->text());
+    OstTraceFunctionExit0( EAPWIZARDPAGEUSERNAMEPASSWORD_NEXTID_EXIT );
     return EapWizardPage::PageProcessSettings;
 }
 
 /*!
    Slot for textChanged() signal from HbLineEdit.
-   
+
    @param [in] text NOT USED.
  */
 void EapWizardPageUsernamePassword::textChanged(const QString & text )
 {
+    OstTraceFunctionEntry0( EAPWIZARDPAGEUSERNAMEPASSWORD_TEXTCHANGED_ENTRY );
     Q_UNUSED(text);
     mWizard->wizardHelper()->enableNextButton(showPage());
+    OstTraceFunctionExit0( EAPWIZARDPAGEUSERNAMEPASSWORD_TEXTCHANGED_EXIT );
 }
--- a/wlanutilities/wlanindicatorplugin/inc/wlanindicatorplugin.h	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanindicatorplugin/inc/wlanindicatorplugin.h	Fri Jul 09 10:38:19 2010 +0300
@@ -22,6 +22,10 @@
 #include <QtCore/QProcess>
 #include <hbindicatorplugininterface.h>
 #include <hbindicatorinterface.h>
+#include <QSharedPointer>
+
+// Forward declarations
+class HbTranslator;
 
 const int wlanNotConnected = 0;
 const int wlanConnected = 1;
@@ -51,7 +55,7 @@
     bool handleClientRequest (RequestType type, const QVariant &parameter);
     bool handleInteraction (InteractionType type); 
     QVariant indicatorData(int role) const;
-    
+
 private:
     
     Q_DISABLE_COPY(WlanIndicatorPlugin)
@@ -59,5 +63,6 @@
     int mError;                   // Indicator error
     QVariant mParameter;          // Used to contain the status of wlan    
     QProcess process;             // Process to start external programs
+    QSharedPointer<HbTranslator> mTranslator; // Translator for the localisation Text Id's
 };
 #endif //WLANINDICATORPLUGIN_H
--- a/wlanutilities/wlanindicatorplugin/src/wlanindicatorplugin.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanindicatorplugin/src/wlanindicatorplugin.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -96,8 +96,8 @@
     Q_UNUSED(indicatorType)
     
     // Install localization
-    HbTranslator *translator(new HbTranslator("wlanindicatorplugin"));
-    
+    mTranslator = QSharedPointer<HbTranslator>(new HbTranslator("wlanindicatorplugin"));
+
     OstTraceFunctionExit1(WLANINDICATORPLUGIN_CREATEINDICATOR_EXIT, this);
     return this;
 }
--- a/wlanutilities/wlanlogin/wlanloginapp/src/wlanloginengine.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanlogin/wlanloginapp/src/wlanloginengine.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -46,6 +46,7 @@
 // External function prototypes
 
 // Local constants
+const QString iapIdentifierPrefix = "I_";
 
 // ======== LOCAL FUNCTIONS ========
 
@@ -86,8 +87,10 @@
 WlanLoginEngine::~WlanLoginEngine()
 {
     OstTraceFunctionEntry0(WLANLOGINENGINE_DESTRUCTOR_ENTRY);
-   
-    mNetworkSession->close();
+
+    if (mNetworkSession) {
+        mNetworkSession->close();
+    }
     
     OstTraceFunctionExit0(WLANLOGINENGINE_DESTRUCTOR_EXIT);
 }
@@ -228,7 +231,8 @@
     setEngineState(WlanLoginEngine::OpeningNetworkSession);
     
     //Get configuration that matches the provided IAP
-    QNetworkConfiguration netConfiguration = mNetConfigurationManager->configurationFromIdentifier(QString::number(mIap));    
+	//Note that identifier must be given in format I_ + IAP ID
+    QNetworkConfiguration netConfiguration = mNetConfigurationManager->configurationFromIdentifier(iapIdentifierPrefix + QString::number(mIap));    
     
     OstTrace1(
         TRACE_NORMAL,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wlanutilities/wlanqtutilities/tsrc/stubs/ictswlanlogininterface.h	Fri Jul 09 10:38:19 2010 +0300
@@ -0,0 +1,68 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* ICTS Wlan Login Interface stubbing for WLAN Qt Utilities.
+*/
+
+#ifndef ICTSWLANLOGININTERFACE_H
+#define ICTSWLANLOGININTERFACE_H
+
+// System includes
+#include <QObject>
+
+// User includes
+
+// Forward declarations
+
+// External data types
+
+// Constants
+
+// Class declaration
+class IctsWlanLoginInterface: public QObject
+{
+    Q_OBJECT
+
+public:
+    
+    // Data types
+    
+    /*!
+        Internet connectivity test result type
+    */  
+    enum ictsResultType {
+        IctsPassed = 0,     //!< Internet connectivity test passed
+        IctsHotspotPassed,  //!< Internet connectivity test passed against hotspot access point
+        IctsCanceled,       //!< Internet connectivity test was cancelled due to user action
+        IctsFailed          //!< internet connectivity test failed
+    };
+    
+    IctsWlanLoginInterface(QObject *parent);
+
+    ~IctsWlanLoginInterface();
+
+public:
+     
+    void start(int iapId, int netId);
+
+    void stop();
+
+signals:
+
+    void ictsResult(int ictsResult);
+    
+    void hotspotCase();
+};
+
+#endif // ICTSWLANLOGININTERFACE_H
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wlanutilities/wlanqtutilities/tsrc/stubs/stub_ictswlanlogininterface.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -0,0 +1,56 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* ICTS Wlan Login Interface stubbing for WLAN Qt Utilities.
+*/
+
+#include "ictswlanlogininterface.h"
+
+#include "wlanqtutilstestcontext.h"
+
+extern WlanQtUtilsTestContext testContext;
+
+/*!
+    Constructor.
+*/
+IctsWlanLoginInterface::IctsWlanLoginInterface(QObject *parent)
+{
+    Q_UNUSED(parent);
+}
+
+/*!
+    Destructor.
+*/
+IctsWlanLoginInterface::~IctsWlanLoginInterface()
+{ 
+}
+
+/*!
+    Function for launching Wlan login application.
+    
+    @param [in] iapId Internet accesspoint id to be tested
+    @param [in] netId network identifier of the connection to be used
+*/
+void IctsWlanLoginInterface::start(int iapId, int netId)
+{    
+    Q_UNUSED(iapId);
+    Q_UNUSED(netId);
+}
+
+/*!
+    Function for stopping launched Wlan login application.
+*/
+void IctsWlanLoginInterface::stop()
+{ 
+}
--- a/wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -1183,14 +1183,11 @@
 
     // Connection test automatically started at this point. Call result function explicitly
     // No interface exists that we could check that the IAP is moved to Internet SNAP correctly
-#if 0       // TODO: Make this work with the new WLAN login interface 
-    TBuf<5> string;
-    wlanQtUtils_->d_ptr->mConnTestWrapper->d_ptr_->ConnectivityObserver(EConnectionOk, string);
+    wlanQtUtils_->d_ptr->updateIctResult(IctsWlanLoginInterface::IctsPassed);
 
-    subTestSignalWaitAndTake(signalIctResult_, &arguments); 
+    subTestSignalWaitAndTake(signalIctResult_, &arguments);
     QCOMPARE(arguments.at(0).toInt(), iapId); 
-    QCOMPARE(arguments.at(1).toBool(), true);
-#endif    
+    QCOMPARE(arguments.at(1).toInt(), (int)WlanQtUtils::IctPassed);
 }
 
 /**
@@ -1200,7 +1197,7 @@
 {
     // Create and connect an IAP and request ICT to be run
     QScopedPointer<WlanQtUtilsAp> wlanAp(subTestNewAp());
-    wlanAp->setValue(WlanQtUtilsAp::ConfIdSsid, "testConnectionTestErr");
+    wlanAp->setValue(WlanQtUtilsAp::ConfIdSsid, "testConnectionTestErr1");
     wlanAp->setValue(WlanQtUtilsAp::ConfIdSecurityMode, CMManagerShim::WlanSecModeWpa);
     
     int iapId = wlanQtUtils_->createIap(wlanAp.data());
@@ -1225,14 +1222,109 @@
 
     // Connection test automatically started at this point. Call result function explicitly
     // No interface exists that we could check that IAP is not moved to another SNAP
-#if 0       // TODO: Make this work with the new WLAN login interface 
-    TBuf<5> string;
-    wlanQtUtils_->d_ptr->mConnTestWrapper->d_ptr_->ConnectivityObserver(EHttpAuthenticationNeeded, string);
+    wlanQtUtils_->d_ptr->updateIctResult(IctsWlanLoginInterface::IctsFailed);
+
+    subTestSignalWaitAndTake(signalIctResult_, &arguments);
+    QCOMPARE(arguments.at(0).toInt(), iapId); 
+    QCOMPARE(arguments.at(1).toInt(), (int)WlanQtUtils::IctFailed);
+
+    // Repeat with cancel status
+    // Send event for connection status change -> closed.
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonConnectionStatusChange(
+        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
+        0,
+        KLinkLayerClosed));
+
+    // Send event for connection deletion.
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonEventBase(
+            EConnMonDeleteConnection,
+            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
+
+    subTestSignalWaitAndTake(signalWlanNetworkClosed_, &arguments);
+    QCOMPARE(arguments.at(0).toInt(), iapId);
+    QCOMPARE(arguments.at(1).toInt(), KErrNone);
+
+    wlanAp->setValue(WlanQtUtilsAp::ConfIdSsid, "testConnectionTestErr2");
+    
+    iapId = wlanQtUtils_->createIap(wlanAp.data());
+    wlanQtUtils_->connectIap(iapId, true);
+
+    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, iapId);
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonEventBase(
+            EConnMonCreateConnection,
+            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonConnectionStatusChange(
+        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
+        0,
+        KConnectionOpen));
+    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments); 
+    QCOMPARE(arguments.at(0).toInt(), iapId); 
+
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonConnectionStatusChange(
+        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
+        0,
+        KLinkLayerOpen));
+
+    // Connection test automatically started at this point. Call result function explicitly
+    // No interface exists that we could check that IAP is not moved to another SNAP
+    wlanQtUtils_->d_ptr->updateIctResult(IctsWlanLoginInterface::IctsCanceled);
+
+    subTestSignalWaitAndTake(signalIctResult_, &arguments);
+    QCOMPARE(arguments.at(0).toInt(), iapId); 
+    QCOMPARE(arguments.at(1).toInt(), (int)WlanQtUtils::IctCancelled);
+}
 
-    subTestSignalWaitAndTake(signalIctResult_, &arguments); 
+/**
+ * This function tests ICT when connection test passes in hotspot case.
+ */
+void TestWlanQtUtils::testConnectionTestHotspot()
+{
+    // Create new IAP to test
+    QScopedPointer<WlanQtUtilsAp> wlanAp(subTestNewAp());
+    wlanAp->setValue(WlanQtUtilsAp::ConfIdSsid, "testConnectionTestHotspot");
+    int iapId = wlanQtUtils_->createIap(wlanAp.data());
+    QVERIFY(iapId != WlanQtUtils::IapIdNone);
+
+    testContext.esock_.startRetValue_ = KErrNone;
+
+    // Esock stub completes connection creation immediately
+    wlanQtUtils_->connectIap(iapId, true);
+
+    // Connection creation in ConnMon interface
+    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, iapId);
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonEventBase(
+            EConnMonCreateConnection,
+            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
+
+    // Connection status change in ConnMon interface
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonConnectionStatusChange(
+        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
+        0,
+        KConnectionOpen));
+    
+    // Receive signal for connection opening (caused by connectIap, which completed immediately)
+    QList<QVariant> arguments;
+    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments); 
     QCOMPARE(arguments.at(0).toInt(), iapId); 
-    QCOMPARE(arguments.at(1).toBool(), false);
-#endif
+
+    // Connection status change to opened in ConnMon interface. Sub test cases between test
+    // cases check that no extra signals are sent
+    wlanQtUtils_->d_ptr->mConMonWrapper->d_ptrInfo->EventL(CConnMonConnectionStatusChange(
+        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
+        0,
+        KLinkLayerOpen));
+
+    // Connection test automatically started at this point.
+    // Call hotspot case slot explicitly
+    wlanQtUtils_->d_ptr->updateIctHotspotCase();
+    
+    // Call result function explicitly
+    // No interface exists that we could check that the IAP is not moved to another SNAP
+    wlanQtUtils_->d_ptr->updateIctResult(IctsWlanLoginInterface::IctsHotspotPassed);
+
+    subTestSignalWaitAndTake(signalIctResult_, &arguments);
+    QCOMPARE(arguments.at(0).toInt(), iapId); 
+    QCOMPARE(arguments.at(1).toInt(), (int)WlanQtUtils::IctHotspotPassed);
 }
 
 /**
--- a/wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.h	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.h	Fri Jul 09 10:38:19 2010 +0300
@@ -99,6 +99,7 @@
     // Test functions for private implementation (tested via public interface)
     void testConnectionTestOk();
     void testConnectionTestErr();
+    void testConnectionTestHotspot();
 
     void testConnMonEventGprs();
     void testConnMonEventCreatedBeforeConstructor();
--- a/wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.pro	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanqtutilities/tsrc/testwlanqtutils.pro	Fri Jul 09 10:38:19 2010 +0300
@@ -38,8 +38,8 @@
 
 INCLUDEPATH += \
     . \
+    stubs \
     ../../inc \
-    stubs \
     ../base/inc \
     ../wrapper/inc \
     ../traces
@@ -78,6 +78,7 @@
         ../wrapper/inc/wlanqtutilsconmonwrapperinfo_symbian.h \
         ../wrapper/inc/wlanqtutilsesockwrapper_symbian.h \
         ../wrapper/inc/wlanqtutilsscan_symbian.h \
+        stubs/ictswlanlogininterface.h \
         stubs/wlanmgmtclient.h \
         stubs/wlanscaninfo.h
 
@@ -88,8 +89,9 @@
         ../wrapper/src/wlanqtutilsscan_symbian.cpp \
         stubs/stub_connmon.cpp \
         stubs/stub_esock.cpp \
+        stubs/stub_ictswlanlogininterface.cpp \
         stubs/stub_wlanmgmtclient.cpp \
         stubs/stub_wlanscaninfo.cpp
 }
 
-LIBS += -lconnmon -lconnection_settings_shim -lextendedconnpref -lnetmeta -lesock -lictswlanlogininterface
+LIBS += -lconnmon -lconnection_settings_shim -lextendedconnpref -lnetmeta -lesock -lcharconv
Binary file wlanutilities/wlanqtutilities/tsrc/tools/default.cre has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wlanutilities/wlanqtutilities/tsrc/tools/variantdata_wlanqtutils.xml	Fri Jul 09 10:38:19 2010 +0300
@@ -0,0 +1,764 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Use this file if you need to make changes to the default.cre commsdat for unit tests -->
+<!-- See testwlanqtutils.h for specification of IAPs and SNAPs required by test cases currently -->
+<data>
+  <Global>
+    <Attachmode>whenneeded</Attachmode>
+    <DefaultDnIcon>11</DefaultDnIcon>
+    <PriorityLan>0</PriorityLan>
+    <PriorityWlan>1</PriorityWlan>
+    <PriorityPan>2</PriorityPan>
+    <PriorityGprsOut>3</PriorityGprsOut>
+    <PriorityGprsIn>4</PriorityGprsIn>
+    <PriorityDialOut>6</PriorityDialOut>
+    <PriorityDialIn>7</PriorityDialIn>
+    <PriorityVpn>256</PriorityVpn>
+    <PriorityMip>256</PriorityMip>
+    <UIPriorityLan>9</UIPriorityLan>
+    <UIPriorityWlan>0</UIPriorityWlan>
+    <UIPriorityPan>8</UIPriorityPan>
+    <UIPriorityGprsOut>1</UIPriorityGprsOut>
+    <UIPriorityGprsIn>2</UIPriorityGprsIn>
+    <UIPriorityDialOut>4</UIPriorityDialOut>
+    <UIPriorityDialIn>5</UIPriorityDialIn>
+    <UIPriorityVpn>6</UIPriorityVpn>
+    <UIPriorityMip>7</UIPriorityMip>
+    <DefaultConnectionType>Destination</DefaultConnectionType>
+    <DefaultConnectionName>Internet</DefaultConnectionName>
+    <UsageOfWlan>Known</UsageOfWlan>
+    <CellularDataUsageHome>Confirm</CellularDataUsageHome>
+    <CellularDataUsageVisitor>Wlan only</CellularDataUsageVisitor>
+    <GprsLastSocketActivityTimeout>-1</GprsLastSocketActivityTimeout>
+    <GprsLastSessionClosedTimeout>1</GprsLastSessionClosedTimeout>
+    <GprsLastSocketClosedTimeout>-1</GprsLastSocketClosedTimeout>
+    <WlanLastSocketActivityTimeout>-1</WlanLastSocketActivityTimeout>
+    <WlanLastSessionClosedTimeout>1</WlanLastSessionClosedTimeout>
+    <WlanLastSocketClosedTimeout>-1</WlanLastSocketClosedTimeout>
+    <WlanBGScanInterval>-1</WlanBGScanInterval>
+    <WlanUseDefSettings>1</WlanUseDefSettings>
+    <WlanLongRetry>4</WlanLongRetry>
+    <WlanShortRetry>7</WlanShortRetry>
+    <WlanRTS>2347</WlanRTS>
+    <WlanTxPowerLevel>100</WlanTxPowerLevel>
+    <WlanRadioMeasurements>1</WlanRadioMeasurements>
+    <WlanPowerMode>0</WlanPowerMode>
+  </Global>
+  <APs>
+    <AP>
+      <ConnectionName>packet data 1</ConnectionName>
+      <ConnectionId>1</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ConfirmFirst</Seamlessness>
+      <NetworkType>IPv4</NetworkType>
+      <GPRS_AP_Name>packetdata1</GPRS_AP_Name>
+      <UserName/>
+      <PromptPassword>No</PromptPassword>
+      <Password/>
+      <PasswordAuthenticationType>Normal</PasswordAuthenticationType>
+      <WAPGatewayIP/>
+      <StartingPage>http://www.nokia.com</StartingPage>
+      <WTLS_Security>On</WTLS_Security>
+      <WAP_ConnectionType>Continuous</WAP_ConnectionType>
+      <PhoneIP/>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <ProxyServerAddress/>
+      <ProxyPortNumber>0</ProxyPortNumber>
+      <ProxyProtocolName/>
+      <GprsUseEdge>Yes</GprsUseEdge>
+      <IspType>0</IspType>
+      <Linger/>
+    </AP>
+    <AP>
+      <ConnectionName>packet data 2</ConnectionName>
+      <ConnectionId>3</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ConfirmFirst</Seamlessness>
+      <NetworkType>IPv4</NetworkType>
+      <GPRS_AP_Name>packetdata2</GPRS_AP_Name>
+      <UserName/>
+      <PromptPassword>No</PromptPassword>
+      <Password/>
+      <PasswordAuthenticationType>Normal</PasswordAuthenticationType>
+      <WAPGatewayIP/>
+      <StartingPage>http://www.nokia.com</StartingPage>
+      <WTLS_Security>On</WTLS_Security>
+      <WAP_ConnectionType>Continuous</WAP_ConnectionType>
+      <PhoneIP/>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <ProxyServerAddress/>
+      <ProxyPortNumber>0</ProxyPortNumber>
+      <ProxyProtocolName/>
+      <GprsUseEdge>Yes</GprsUseEdge>
+      <IspType>0</IspType>
+      <Linger/>
+    </AP>
+    <AP>
+      <ConnectionName>packet data 3</ConnectionName>
+      <ConnectionId>4</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ConfirmFirst</Seamlessness>
+      <NetworkType>IPv4</NetworkType>
+      <GPRS_AP_Name>packetdata3</GPRS_AP_Name>
+      <UserName/>
+      <PromptPassword>No</PromptPassword>
+      <Password/>
+      <PasswordAuthenticationType>Normal</PasswordAuthenticationType>
+      <WAPGatewayIP/>
+      <StartingPage>http://www.nokia.com</StartingPage>
+      <WTLS_Security>On</WTLS_Security>
+      <WAP_ConnectionType>Continuous</WAP_ConnectionType>
+      <PhoneIP/>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <ProxyServerAddress/>
+      <ProxyPortNumber>0</ProxyPortNumber>
+      <ProxyProtocolName/>
+      <GprsUseEdge>Yes</GprsUseEdge>
+      <IspType>0</IspType>
+      <Linger/>
+    </AP>
+    <AP>
+      <ConnectionName>Streaming</ConnectionName>
+      <ConnectionId>9</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ConfirmFirst</Seamlessness>
+      <NetworkType>IPv4</NetworkType>
+      <GPRS_AP_Name>streaming</GPRS_AP_Name>
+      <UserName/>
+      <PromptPassword>No</PromptPassword>
+      <Password/>
+      <PasswordAuthenticationType>Normal</PasswordAuthenticationType>
+      <WAPGatewayIP/>
+      <StartingPage>http://www.nokia.com</StartingPage>
+      <WTLS_Security>On</WTLS_Security>
+      <WAP_ConnectionType>Continuous</WAP_ConnectionType>
+      <PhoneIP/>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <ProxyServerAddress/>
+      <ProxyPortNumber>0</ProxyPortNumber>
+      <ProxyProtocolName/>
+      <GprsUseEdge>Yes</GprsUseEdge>
+      <IspType>0</IspType>
+      <Linger/>
+    </AP>
+    </APs>
+  <WLAN_APs>
+    <WLAN_AP>
+      <ConnectionName>WLAN IAP 1</ConnectionName>
+      <ConnectionId>5</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ShowProgress</Seamlessness>
+      <NetworkName>WLAN IAP 1</NetworkName>
+      <StartingPage/>
+      <NetworkMode>Infrastructure</NetworkMode>
+      <SecurityMode>Open</SecurityMode>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <WlanIpGatewayAddress/>
+      <WlanIpNetMask/>
+      <ProxyServerAddress/>
+      <ProxyPortNumber/>
+      <ProxyProtocolName/>
+      <WLANScanSSID>No</WLANScanSSID>
+      <WlanChannelId/>
+      <PhoneIP/>
+      <WEPKeyInUse>key1</WEPKeyInUse>
+      <WEPAuthType>Shared</WEPAuthType>
+      <WEPKey1Length>64</WEPKey1Length>
+      <WEPKey1Format>ASCII</WEPKey1Format>
+      <WEPKey1Data/>
+      <WEPKey2Length>64</WEPKey2Length>
+      <WEPKey2Format>ASCII</WEPKey2Format>
+      <WEPKey2Data/>
+      <WEPKey3Length>64</WEPKey3Length>
+      <WEPKey3Format>ASCII</WEPKey3Format>
+      <WEPKey3Data/>
+      <WEPKey4Length>64</WEPKey4Length>
+      <WEPKey4Format>ASCII</WEPKey4Format>
+      <WEPKey4Data/>
+      <WPAPresharedKey/>
+      <WPAUseOfPresharedKey>No</WPAUseOfPresharedKey>
+      <WPAKeyLength>0</WPAKeyLength>
+      <WPAListOfEAPs/>
+      <EapGtcUsername/>
+      <EapGtcSessionValidityTime/>
+      <EapGtcEncapsulation/>
+      <EapTlsUsername/>
+      <EapTlsRealm/>
+      <EapTlsVerifyServerRealm/>
+      <EapTlsRequireClientAuth/>
+      <EapTlsSessionValidityTime/>
+      <EapTlsCipherSuites/>
+      <EapTlsUserCertSubjectKeyId/>
+      <EapTlsUserCertIssuerName/>
+      <EapTlsUserCertSerialNumber/>
+      <EapTlsCaCertSubjectKeyId/>
+      <EapTlsCaCertIssuerName/>
+      <EapTlsCaCertSerialNumber/>
+      <EapTlsEncapsulation/>
+      <EapLeapUsername/>
+      <EapLeapPassword/>
+      <EapLeapSessionValidityTime/>
+      <EapSimUsername/>
+      <EapSimRealm/>
+      <EapSimUsePseudonyms/>
+      <EapSimSessionValidityTime/>
+      <EapSimEncapsulation/>
+      <EapTtlsUsername/>
+      <EapTtlsRealm/>
+      <EapTtlsVerifyServerRealm/>
+      <EapTtlsRequireClientAuth/>
+      <EapTtlsSessionValidityTime/>
+      <EapTtlsCipherSuites/>
+      <EapTtlsEncapsulatedTypes/>
+      <EapTtlsUserCertSubjectKeyId/>
+      <EapTtlsUserCertIssuerName/>
+      <EapTtlsUserCertSerialNumber/>
+      <EapTtlsCaCertSubjectKeyId/>
+      <EapTtlsCaCertIssuerName/>
+      <EapTtlsCaCertSerialNumber/>
+      <EapAkaUsername/>
+      <EapAkaRealm/>
+      <EapAkaUsePseudonyms/>
+      <EapAkaSessionValidityTime/>
+      <EapAkaEncapsulation/>
+      <EapPeapUsername/>
+      <EapPeapRealm/>
+      <EapPeapVerifyServerRealm/>
+      <EapPeapRequireClientAuth/>
+      <EapPeapSessionValidityTime/>
+      <EapPeapCipherSuites/>
+      <EapPeapV0Allowed/>
+      <EapPeapV1Allowed/>
+      <EapPeapV2Allowed/>
+      <EapPeapEncapsulatedTypes/>
+      <EapPeapUserCertSubjectKeyId/>
+      <EapPeapUserCertIssuerName/>
+      <EapPeapUserCertSerialNumber/>
+      <EapPeapCaCertSubjectKeyId/>
+      <EapPeapCaCertIssuerName/>
+      <EapPeapCaCertSerialNumber/>
+      <EapMschapv2Username/>
+      <EapMschapv2Password/>
+      <EapMschapv2SessionValidityTime/>
+      <EapMschapv2Encapsulation/>
+      <EapFastUsername/>
+      <EapFastRealm/>
+      <EapFastVerifyServerRealm/>
+      <EapFastRequireClientAuth/>
+      <EapFastSessionValidityTime/>
+      <EapFastCipherSuites/>
+      <EapFastEncapsulatedTypes/>
+      <EapFastAuthProvModeAllowed/>
+      <EapFastUnauthProvModeAllowed/>
+      <EapFastWarnADHPNoPAC/>
+      <EapFastWarnADHPNoMatchingPAC/>
+      <EapFastWarnNotDefaultServer/>
+      <EapFastUserCertSubjectKeyId/>
+      <EapFastUserCertIssuerName/>
+      <EapFastUserCertSerialNumber/>
+      <EapFastCaCertSubjectKeyId/>
+      <EapFastCaCertIssuerName/>
+      <EapFastCaCertSerialNumber/>
+      <Mschapv2Username/>
+      <Mschapv2Password/>
+      <Mschapv2SessionValidityTime/>
+      <Mschapv2Encapsulation/>
+    </WLAN_AP>
+    <WLAN_AP>
+      <ConnectionName>WLAN IAP 2</ConnectionName>
+      <ConnectionId>6</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ConfirmFirst</Seamlessness>
+      <NetworkName>WLAN IAP 2</NetworkName>
+      <StartingPage>http://themaximus.security.max</StartingPage>
+      <NetworkMode>Ad-hoc</NetworkMode>
+      <SecurityMode>WEP</SecurityMode>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <WlanIpGatewayAddress/>
+      <WlanIpNetMask/>
+      <ProxyServerAddress>192.168.100.200</ProxyServerAddress>
+      <ProxyPortNumber>8000</ProxyPortNumber>
+      <ProxyProtocolName/>
+      <WLANScanSSID>No</WLANScanSSID>
+      <WlanChannelId/>
+      <PhoneIP/>
+      <WEPKeyInUse>key1</WEPKeyInUse>
+      <WEPAuthType>Open</WEPAuthType>
+      <WEPKey1Length>64</WEPKey1Length>
+      <WEPKey1Format>ASCII</WEPKey1Format>
+      <WEPKey1Data>w2key</WEPKey1Data>
+      <WEPKey2Length>64</WEPKey2Length>
+      <WEPKey2Format>Hexadecimal</WEPKey2Format>
+      <WEPKey2Data/>
+      <WEPKey3Length>64</WEPKey3Length>
+      <WEPKey3Format>ASCII</WEPKey3Format>
+      <WEPKey3Data/>
+      <WEPKey4Length>64</WEPKey4Length>
+      <WEPKey4Format>ASCII</WEPKey4Format>
+      <WEPKey4Data/>
+      <WPAPresharedKey/>
+      <WPAUseOfPresharedKey>No</WPAUseOfPresharedKey>
+      <WPAKeyLength>0</WPAKeyLength>
+      <WPAListOfEAPs/>
+      <EapGtcUsername/>
+      <EapGtcSessionValidityTime/>
+      <EapGtcEncapsulation/>
+      <EapTlsUsername/>
+      <EapTlsRealm/>
+      <EapTlsVerifyServerRealm/>
+      <EapTlsRequireClientAuth/>
+      <EapTlsSessionValidityTime/>
+      <EapTlsCipherSuites/>
+      <EapTlsUserCertSubjectKeyId/>
+      <EapTlsUserCertIssuerName/>
+      <EapTlsUserCertSerialNumber/>
+      <EapTlsCaCertSubjectKeyId/>
+      <EapTlsCaCertIssuerName/>
+      <EapTlsCaCertSerialNumber/>
+      <EapTlsEncapsulation/>
+      <EapLeapUsername/>
+      <EapLeapPassword/>
+      <EapLeapSessionValidityTime/>
+      <EapSimUsername/>
+      <EapSimRealm/>
+      <EapSimUsePseudonyms/>
+      <EapSimSessionValidityTime/>
+      <EapSimEncapsulation/>
+      <EapTtlsUsername/>
+      <EapTtlsRealm/>
+      <EapTtlsVerifyServerRealm/>
+      <EapTtlsRequireClientAuth/>
+      <EapTtlsSessionValidityTime/>
+      <EapTtlsCipherSuites/>
+      <EapTtlsEncapsulatedTypes/>
+      <EapTtlsUserCertSubjectKeyId/>
+      <EapTtlsUserCertIssuerName/>
+      <EapTtlsUserCertSerialNumber/>
+      <EapTtlsCaCertSubjectKeyId/>
+      <EapTtlsCaCertIssuerName/>
+      <EapTtlsCaCertSerialNumber/>
+      <EapAkaUsername/>
+      <EapAkaRealm/>
+      <EapAkaUsePseudonyms/>
+      <EapAkaSessionValidityTime/>
+      <EapAkaEncapsulation/>
+      <EapPeapUsername/>
+      <EapPeapRealm/>
+      <EapPeapVerifyServerRealm/>
+      <EapPeapRequireClientAuth/>
+      <EapPeapSessionValidityTime/>
+      <EapPeapCipherSuites/>
+      <EapPeapV0Allowed/>
+      <EapPeapV1Allowed/>
+      <EapPeapV2Allowed/>
+      <EapPeapEncapsulatedTypes/>
+      <EapPeapUserCertSubjectKeyId/>
+      <EapPeapUserCertIssuerName/>
+      <EapPeapUserCertSerialNumber/>
+      <EapPeapCaCertSubjectKeyId/>
+      <EapPeapCaCertIssuerName/>
+      <EapPeapCaCertSerialNumber/>
+      <EapMschapv2Username/>
+      <EapMschapv2Password/>
+      <EapMschapv2SessionValidityTime/>
+      <EapMschapv2Encapsulation/>
+      <EapFastUsername/>
+      <EapFastRealm/>
+      <EapFastVerifyServerRealm/>
+      <EapFastRequireClientAuth/>
+      <EapFastSessionValidityTime/>
+      <EapFastCipherSuites/>
+      <EapFastEncapsulatedTypes/>
+      <EapFastAuthProvModeAllowed/>
+      <EapFastUnauthProvModeAllowed/>
+      <EapFastWarnADHPNoPAC/>
+      <EapFastWarnADHPNoMatchingPAC/>
+      <EapFastWarnNotDefaultServer/>
+      <EapFastUserCertSubjectKeyId/>
+      <EapFastUserCertIssuerName/>
+      <EapFastUserCertSerialNumber/>
+      <EapFastCaCertSubjectKeyId/>
+      <EapFastCaCertIssuerName/>
+      <EapFastCaCertSerialNumber/>
+      <Mschapv2Username/>
+      <Mschapv2Password/>
+      <Mschapv2SessionValidityTime/>
+      <Mschapv2Encapsulation/>
+    </WLAN_AP>
+    <WLAN_AP>
+      <ConnectionName>WLAN IAP 3</ConnectionName>
+      <ConnectionId>7</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ConfirmFirst</Seamlessness>
+      <NetworkName>WLAN IAP 3</NetworkName>
+      <StartingPage/>
+      <NetworkMode>Infrastructure</NetworkMode>
+      <SecurityMode>WPA</SecurityMode>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <WlanIpGatewayAddress/>
+      <WlanIpNetMask/>
+      <ProxyServerAddress/>
+      <ProxyPortNumber/>
+      <ProxyProtocolName/>
+      <WLANScanSSID>No</WLANScanSSID>
+      <WlanChannelId/>
+      <PhoneIP/>
+      <WEPKeyInUse>key1</WEPKeyInUse>
+      <WEPAuthType>Shared</WEPAuthType>
+      <WEPKey1Length>64</WEPKey1Length>
+      <WEPKey1Format>ASCII</WEPKey1Format>
+      <WEPKey1Data/>
+      <WEPKey2Length>64</WEPKey2Length>
+      <WEPKey2Format>ASCII</WEPKey2Format>
+      <WEPKey2Data/>
+      <WEPKey3Length>64</WEPKey3Length>
+      <WEPKey3Format>ASCII</WEPKey3Format>
+      <WEPKey3Data/>
+      <WEPKey4Length>64</WEPKey4Length>
+      <WEPKey4Format>ASCII</WEPKey4Format>
+      <WEPKey4Data/>
+      <WPAPresharedKey>wlan3key</WPAPresharedKey>
+      <WPAUseOfPresharedKey>Yes</WPAUseOfPresharedKey>
+      <WPAKeyLength>8</WPAKeyLength>
+      <WPAListOfEAPs/>
+      <EapGtcUsername/>
+      <EapGtcSessionValidityTime/>
+      <EapGtcEncapsulation/>
+      <EapTlsUsername/>
+      <EapTlsRealm/>
+      <EapTlsVerifyServerRealm/>
+      <EapTlsRequireClientAuth/>
+      <EapTlsSessionValidityTime/>
+      <EapTlsCipherSuites/>
+      <EapTlsUserCertSubjectKeyId/>
+      <EapTlsUserCertIssuerName/>
+      <EapTlsUserCertSerialNumber/>
+      <EapTlsCaCertSubjectKeyId/>
+      <EapTlsCaCertIssuerName/>
+      <EapTlsCaCertSerialNumber/>
+      <EapTlsEncapsulation/>
+      <EapLeapUsername/>
+      <EapLeapPassword/>
+      <EapLeapSessionValidityTime/>
+      <EapSimUsername/>
+      <EapSimRealm/>
+      <EapSimUsePseudonyms/>
+      <EapSimSessionValidityTime/>
+      <EapSimEncapsulation/>
+      <EapTtlsUsername/>
+      <EapTtlsRealm/>
+      <EapTtlsVerifyServerRealm/>
+      <EapTtlsRequireClientAuth/>
+      <EapTtlsSessionValidityTime/>
+      <EapTtlsCipherSuites/>
+      <EapTtlsEncapsulatedTypes/>
+      <EapTtlsUserCertSubjectKeyId/>
+      <EapTtlsUserCertIssuerName/>
+      <EapTtlsUserCertSerialNumber/>
+      <EapTtlsCaCertSubjectKeyId/>
+      <EapTtlsCaCertIssuerName/>
+      <EapTtlsCaCertSerialNumber/>
+      <EapAkaUsername/>
+      <EapAkaRealm/>
+      <EapAkaUsePseudonyms/>
+      <EapAkaSessionValidityTime/>
+      <EapAkaEncapsulation/>
+      <EapPeapUsername/>
+      <EapPeapRealm/>
+      <EapPeapVerifyServerRealm/>
+      <EapPeapRequireClientAuth/>
+      <EapPeapSessionValidityTime/>
+      <EapPeapCipherSuites/>
+      <EapPeapV0Allowed/>
+      <EapPeapV1Allowed/>
+      <EapPeapV2Allowed/>
+      <EapPeapEncapsulatedTypes/>
+      <EapPeapUserCertSubjectKeyId/>
+      <EapPeapUserCertIssuerName/>
+      <EapPeapUserCertSerialNumber/>
+      <EapPeapCaCertSubjectKeyId/>
+      <EapPeapCaCertIssuerName/>
+      <EapPeapCaCertSerialNumber/>
+      <EapMschapv2Username/>
+      <EapMschapv2Password/>
+      <EapMschapv2SessionValidityTime/>
+      <EapMschapv2Encapsulation/>
+      <EapFastUsername/>
+      <EapFastRealm/>
+      <EapFastVerifyServerRealm/>
+      <EapFastRequireClientAuth/>
+      <EapFastSessionValidityTime/>
+      <EapFastCipherSuites/>
+      <EapFastEncapsulatedTypes/>
+      <EapFastAuthProvModeAllowed/>
+      <EapFastUnauthProvModeAllowed/>
+      <EapFastWarnADHPNoPAC/>
+      <EapFastWarnADHPNoMatchingPAC/>
+      <EapFastWarnNotDefaultServer/>
+      <EapFastUserCertSubjectKeyId/>
+      <EapFastUserCertIssuerName/>
+      <EapFastUserCertSerialNumber/>
+      <EapFastCaCertSubjectKeyId/>
+      <EapFastCaCertIssuerName/>
+      <EapFastCaCertSerialNumber/>
+      <Mschapv2Username/>
+      <Mschapv2Password/>
+      <Mschapv2SessionValidityTime/>
+      <Mschapv2Encapsulation/>
+    </WLAN_AP>
+    <WLAN_AP>
+      <ConnectionName>Home WLAN</ConnectionName>
+      <ConnectionId>8</ConnectionId>
+      <Protected>No</Protected>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Seamlessness>ShowProgress</Seamlessness>
+      <NetworkName>Home WLAN</NetworkName>
+      <StartingPage/>
+      <NetworkMode>Infrastructure</NetworkMode>
+      <SecurityMode>Open</SecurityMode>
+      <PrimaryNameServer/>
+      <SecondaryNameServer/>
+      <PrimaryIP6NameServer/>
+      <SecondaryIP6NameServer/>
+      <WlanIpGatewayAddress/>
+      <WlanIpNetMask/>
+      <ProxyServerAddress/>
+      <ProxyPortNumber/>
+      <ProxyProtocolName/>
+      <WLANScanSSID>No</WLANScanSSID>
+      <WlanChannelId/>
+      <PhoneIP/>
+      <WEPKeyInUse>key1</WEPKeyInUse>
+      <WEPAuthType>Shared</WEPAuthType>
+      <WEPKey1Length>64</WEPKey1Length>
+      <WEPKey1Format>ASCII</WEPKey1Format>
+      <WEPKey1Data/>
+      <WEPKey2Length>64</WEPKey2Length>
+      <WEPKey2Format>ASCII</WEPKey2Format>
+      <WEPKey2Data/>
+      <WEPKey3Length>64</WEPKey3Length>
+      <WEPKey3Format>ASCII</WEPKey3Format>
+      <WEPKey3Data/>
+      <WEPKey4Length>64</WEPKey4Length>
+      <WEPKey4Format>ASCII</WEPKey4Format>
+      <WEPKey4Data/>
+      <WPAPresharedKey/>
+      <WPAUseOfPresharedKey>No</WPAUseOfPresharedKey>
+      <WPAKeyLength>0</WPAKeyLength>
+      <WPAListOfEAPs/>
+      <EapGtcUsername/>
+      <EapGtcSessionValidityTime/>
+      <EapGtcEncapsulation/>
+      <EapTlsUsername/>
+      <EapTlsRealm/>
+      <EapTlsVerifyServerRealm/>
+      <EapTlsRequireClientAuth/>
+      <EapTlsSessionValidityTime/>
+      <EapTlsCipherSuites/>
+      <EapTlsUserCertSubjectKeyId/>
+      <EapTlsUserCertIssuerName/>
+      <EapTlsUserCertSerialNumber/>
+      <EapTlsCaCertSubjectKeyId/>
+      <EapTlsCaCertIssuerName/>
+      <EapTlsCaCertSerialNumber/>
+      <EapTlsEncapsulation/>
+      <EapLeapUsername/>
+      <EapLeapPassword/>
+      <EapLeapSessionValidityTime/>
+      <EapSimUsername/>
+      <EapSimRealm/>
+      <EapSimUsePseudonyms/>
+      <EapSimSessionValidityTime/>
+      <EapSimEncapsulation/>
+      <EapTtlsUsername/>
+      <EapTtlsRealm/>
+      <EapTtlsVerifyServerRealm/>
+      <EapTtlsRequireClientAuth/>
+      <EapTtlsSessionValidityTime/>
+      <EapTtlsCipherSuites/>
+      <EapTtlsEncapsulatedTypes/>
+      <EapTtlsUserCertSubjectKeyId/>
+      <EapTtlsUserCertIssuerName/>
+      <EapTtlsUserCertSerialNumber/>
+      <EapTtlsCaCertSubjectKeyId/>
+      <EapTtlsCaCertIssuerName/>
+      <EapTtlsCaCertSerialNumber/>
+      <EapAkaUsername/>
+      <EapAkaRealm/>
+      <EapAkaUsePseudonyms/>
+      <EapAkaSessionValidityTime/>
+      <EapAkaEncapsulation/>
+      <EapPeapUsername/>
+      <EapPeapRealm/>
+      <EapPeapVerifyServerRealm/>
+      <EapPeapRequireClientAuth/>
+      <EapPeapSessionValidityTime/>
+      <EapPeapCipherSuites/>
+      <EapPeapV0Allowed/>
+      <EapPeapV1Allowed/>
+      <EapPeapV2Allowed/>
+      <EapPeapEncapsulatedTypes/>
+      <EapPeapUserCertSubjectKeyId/>
+      <EapPeapUserCertIssuerName/>
+      <EapPeapUserCertSerialNumber/>
+      <EapPeapCaCertSubjectKeyId/>
+      <EapPeapCaCertIssuerName/>
+      <EapPeapCaCertSerialNumber/>
+      <EapMschapv2Username/>
+      <EapMschapv2Password/>
+      <EapMschapv2SessionValidityTime/>
+      <EapMschapv2Encapsulation/>
+      <EapFastUsername/>
+      <EapFastRealm/>
+      <EapFastVerifyServerRealm/>
+      <EapFastRequireClientAuth/>
+      <EapFastSessionValidityTime/>
+      <EapFastCipherSuites/>
+      <EapFastEncapsulatedTypes/>
+      <EapFastAuthProvModeAllowed/>
+      <EapFastUnauthProvModeAllowed/>
+      <EapFastWarnADHPNoPAC/>
+      <EapFastWarnADHPNoMatchingPAC/>
+      <EapFastWarnNotDefaultServer/>
+      <EapFastUserCertSubjectKeyId/>
+      <EapFastUserCertIssuerName/>
+      <EapFastUserCertSerialNumber/>
+      <EapFastCaCertSubjectKeyId/>
+      <EapFastCaCertIssuerName/>
+      <EapFastCaCertSerialNumber/>
+      <Mschapv2Username/>
+      <Mschapv2Password/>
+      <Mschapv2SessionValidityTime/>
+      <Mschapv2Encapsulation/>
+    </WLAN_AP>
+  </WLAN_APs>
+  <DNs>
+    <DN>
+      <Name>Internet</Name>
+      <DNId>3</DNId>
+      <Metadata>Internet</Metadata>
+      <Protection>2</Protection>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>Yes</Highlighted>
+      <Icon>0</Icon>
+      <EmbeddedDN/>
+      <IAP>packet data 1</IAP>
+      <IAP2>packet data 2</IAP2>
+      <IAP3>packet data 3</IAP3>
+      <IAP4>WLAN IAP 1</IAP4>
+      <IAP5>WLAN IAP 2</IAP5>
+      <IAP6>WLAN IAP 3</IAP6>
+      <IAP7/>
+      <IAP8/>
+      <IAP9/>
+      <IAP10/>
+    </DN>
+    <DN>
+      <Name>Multimedia msg.</Name>
+      <DNId>4</DNId>
+      <Metadata>MMS</Metadata>
+      <Protection>2</Protection>
+      <Hidden>No</Hidden>
+      <HiddenAgent>Yes</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Icon>2</Icon>
+      <EmbeddedDN/>
+      <IAP/>
+      <IAP2/>
+      <IAP3/>
+      <IAP4/>
+      <IAP5/>
+      <IAP6/>
+      <IAP7/>
+      <IAP8/>
+      <IAP9/>
+      <IAP10/>
+    </DN>
+    <DN>
+      <Name>WAP services</Name>
+      <DNId>5</DNId>
+      <Metadata>Operator</Metadata>
+      <Protection>2</Protection>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Icon>4</Icon>
+      <EmbeddedDN/>
+      <IAP/>
+      <IAP2/>
+      <IAP3/>
+      <IAP4/>
+      <IAP5/>
+      <IAP6/>
+      <IAP7/>
+      <IAP8/>
+      <IAP9/>
+      <IAP10/>
+    </DN>
+    <DN>
+      <Name>>My SNAP</Name>
+      <DNId>6</DNId>
+      <Metadata/>
+      <Protection>2</Protection>
+      <Hidden>No</Hidden>
+      <HiddenAgent>No</HiddenAgent>
+      <Highlighted>No</Highlighted>
+      <Icon>3</Icon>
+      <EmbeddedDN/>
+      <IAP>Home WLAN</IAP>
+      <IAP2>Streaming</IAP2>
+      <IAP3/>
+      <IAP4/>
+      <IAP5/>
+      <IAP6/>
+      <IAP7/>
+      <IAP8/>
+      <IAP9/>
+      <IAP10/>
+    </DN>
+  </DNs>
+</data>
\ No newline at end of file
Binary file wlanutilities/wlanqtutilities/ut/context/commsdat_files/50_default.cre has changed
Binary file wlanutilities/wlanqtutilities/ut/context/commsdat_files/default.cre has changed
--- a/wlanutilities/wlanqtutilities/ut/context/wlanqtutilstestcontext.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,237 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* This is the source file for Connection Utilities test context.
-*/
-
-#include <QObject>
-#include <QTest>
-#include <rconnmon.h>
-#include <nifvar.h>
-#include "wlanqtutilscommon.h"
-#include "wlanqtutilstestcontext.h"
-#include "wlanqtutilswlanap.h"
-#include "wlanqtutilsactiveconn.h"
-
-// ---------------------------------------------------------
-// class WlanQtUtilsCtxEsock
-// ---------------------------------------------------------
-
-WlanQtUtilsCtxEsock::WlanQtUtilsCtxEsock() : startRetValue_(KErrNone)
-{
-}
-
-WlanQtUtilsCtxEsock::~WlanQtUtilsCtxEsock()
-{
-}
-
-void WlanQtUtilsCtxEsock::initialize()
-{
-    startRetValue_ = KErrNone;
-}
-
-// ---------------------------------------------------------
-// class WlanQtUtilsCtxActiveConn
-// ---------------------------------------------------------
-
-WlanQtUtilsCtxActiveConn::WlanQtUtilsCtxActiveConn() :
-    WlanQtUtilsActiveConn(),
-    connMonBearerType_(EBearerUnknown),
-    connMonConnectionStatus_(KConnectionUninitialised),
-    connMonWlanConnectionMode_(-1),
-    connMonWlanSecurityMode_(-1),
-    applicationUids_()
-{
-}
-
-WlanQtUtilsCtxActiveConn::~WlanQtUtilsCtxActiveConn()
-{
-}
-
-// ---------------------------------------------------------
-// class WlanQtUtilsCtxActiveConnections
-// ---------------------------------------------------------
-
-WlanQtUtilsCtxActiveConnections::WlanQtUtilsCtxActiveConnections() : activeConnList_()
-{
-}
-
-WlanQtUtilsCtxActiveConnections::~WlanQtUtilsCtxActiveConnections()
-{
-    clearActiveConnList();
-}
-
-void WlanQtUtilsCtxActiveConnections::initialize()
-{
-    clearActiveConnList();
-}
-
-void WlanQtUtilsCtxActiveConnections::createDefaultActiveConnList(int numberOfActiveConns, int firstIapId)
-{
-    clearActiveConnList();
-    for (int i = 0; i < numberOfActiveConns; i++) {
-        WlanQtUtilsCtxActiveConn *activeConn = new WlanQtUtilsCtxActiveConn();
-
-        activeConn->setConnectionId((i + 1) * 100);
-        activeConn->setIapId(firstIapId + i);
-        activeConn->connMonConnectionStatus_ = KConnectionOpen;
-        activeConn->setConnectionStatus(WlanQtUtilsConnectionStatusConnected);
-        
-        // WLAN connection.
-        activeConn->connMonBearerType_ = EBearerWLAN;
-        activeConn->setBearerType(WlanQtUtilsBearerTypeWlan);
-        activeConn->connMonWlanSecurityMode_ = EConnMonSecurityOpen;
-        activeConn->connMonWlanConnectionMode_ = EConnMonInfraStructure;
-        activeConnList_.append(activeConn);
-    }
-}
-
-void WlanQtUtilsCtxActiveConnections::clearActiveConnList()
-{
-    Q_FOREACH(WlanQtUtilsCtxActiveConn* activeConn, activeConnList_) {
-        delete activeConn;
-    }
-    activeConnList_.clear();
-}
-
-void WlanQtUtilsCtxActiveConnections::verifyActiveConnList(QList<WlanQtUtilsActiveConn*> activeConnList)
-{
-    QCOMPARE(activeConnList.count(), activeConnList_.count());
-
-    for (int i = 0; i < activeConnList_.count(); i++) {
-        QCOMPARE(activeConnList[i]->connectionId(), activeConnList_[i]->connectionId());
-        QCOMPARE(activeConnList[i]->iapId(), activeConnList_[i]->iapId());
-        QCOMPARE(activeConnList[i]->connectionStatus(), activeConnList_[i]->connectionStatus());
-        QCOMPARE(activeConnList[i]->bearerType(), activeConnList_[i]->bearerType());
-    }
-}
-
-WlanQtUtilsCtxActiveConn *WlanQtUtilsCtxActiveConnections::findActiveConn(uint connectionId) const
-{
-    WlanQtUtilsCtxActiveConn *activeConn = NULL;
-    for (int i = 0; i < activeConnList_.count(); i++) {
-        if (activeConnList_[i]->connectionId() == connectionId) {
-            activeConn = activeConnList_[i];
-        }
-    }
-    Q_ASSERT(activeConn != NULL);
-    return activeConn;
-}
-
-// ---------------------------------------------------------
-// class WlanQtUtilsWlanScanResult
-// ---------------------------------------------------------
-
-WlanQtUtilsWlanScanResult::WlanQtUtilsWlanScanResult() : wlanScanResultList_()
-{
-}
-
-WlanQtUtilsWlanScanResult::~WlanQtUtilsWlanScanResult()
-{
-    clearWlanScanResultList();
-}
-
-void WlanQtUtilsWlanScanResult::initialize()
-{
-    clearWlanScanResultList();
-}
-
-void WlanQtUtilsWlanScanResult::createDefaultWlanScanResultList(int numberOfWlanAps)
-{
-    clearWlanScanResultList();
-    for (int i = 0; i < numberOfWlanAps; i++) {
-        WlanQtUtilsWlanAp *ap = new WlanQtUtilsWlanAp();
-        ap->setSsid("TestWlanAp" + QString::number(i+1));
-        ap->setBssid("addMAC"); // TODO: Generate something when bssid retrieval works.
-        ap->setSignalStrength(20);
-        ap->setConnectionMode(EConnMonInfraStructure);
-        ap->setSecurityMode(WlanQtUtilsWlanSecModeOpen);
-        // TODO: Create constructor to WlanQtUtilsWlanAp which takes all member variables as parameter.
-        wlanScanResultList_.append(ap);
-    }
-}
-
-void WlanQtUtilsWlanScanResult::clearWlanScanResultList()
-{
-    Q_FOREACH(WlanQtUtilsWlanAp* ap, wlanScanResultList_) {
-        delete ap;
-    }
-    wlanScanResultList_.clear();
-}
-
-void WlanQtUtilsWlanScanResult::verifyWlanScanResultList(QList<WlanQtUtilsWlanAp*> wlanApList)
-{
-    QCOMPARE(wlanApList.count(), wlanScanResultList_.count());
-
-    for (int i = 0; i < wlanScanResultList_.count(); i++) {
-        QCOMPARE(wlanApList[i]->ssid(), wlanScanResultList_[i]->ssid());
-        QCOMPARE(wlanApList[i]->bssid(), wlanScanResultList_[i]->bssid());
-        QCOMPARE(wlanApList[i]->signalStrength(), wlanScanResultList_[i]->signalStrength());
-        QCOMPARE(wlanApList[i]->connectionMode(), wlanScanResultList_[i]->connectionMode());
-        QCOMPARE(wlanApList[i]->securityMode(), wlanScanResultList_[i]->securityMode());
-    }
-}
-
-// ---------------------------------------------------------
-// class WlanQtUtilsCtxConnMon
-// ---------------------------------------------------------
-
-WlanQtUtilsCtxConnMon::WlanQtUtilsCtxConnMon() : wlanScanResult_()
-{
-}
-
-WlanQtUtilsCtxConnMon::~WlanQtUtilsCtxConnMon()
-{
-}
-
-void WlanQtUtilsCtxConnMon::initialize()
-{
-    wlanScanResult_.initialize();
-    activeConnections_.initialize();
-}
-
-// ---------------------------------------------------------
-// class WlanQtUtilsCtxIct
-// ---------------------------------------------------------
-
-WlanQtUtilsCtxIct::WlanQtUtilsCtxIct()
-{
-}
-
-WlanQtUtilsCtxIct::~WlanQtUtilsCtxIct()
-{
-}
-
-void WlanQtUtilsCtxIct::initialize()
-{
-}
-
-// ---------------------------------------------------------
-// class WlanQtUtilsTestContext
-// ---------------------------------------------------------
-
-WlanQtUtilsTestContext::WlanQtUtilsTestContext() : esock_(), connMon_(), ict_()
-{
-}
-
-WlanQtUtilsTestContext::~WlanQtUtilsTestContext()
-{
-}
-
-void WlanQtUtilsTestContext::initialize()
-{
-    esock_.initialize();
-    connMon_.initialize();
-    ict_.initialize();
-}
--- a/wlanutilities/wlanqtutilities/ut/context/wlanqtutilstestcontext.h	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,250 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* This is the header file for Wlan Qt Utilities test context.
-*/
- 
-#ifndef WLANQTUTILSTESTCONTEXT_H
-#define WLANQTUTILSTESTCONTEXT_H
-
-#include <QObject>
-
-#include "wlanqtutilsactiveconn.h"
-
-class WlanQtUtilsWlanAp;
-
-/**
- * This is context for esock library.
- */
-class WlanQtUtilsCtxEsock : public QObject
-{
-    Q_OBJECT
-
-public:
-    WlanQtUtilsCtxEsock();
-    ~WlanQtUtilsCtxEsock();
-
-    /**
-     * Initializes context.
-     */
-    void initialize();
-
-    /** Return value of RConnection::Start(). */
-    int startRetValue_;
-};
-
-/**
- * This class is a helper class for testing purposes. It derives all properties of WlanQtUtilsActiveConn.
- * In addition, this class contains member variables for setting some Connection Monitor specific
- * values which cannot be easily generated from member variables of WlanQtUtilsActiveConn.
- * E.g., connection status has different enum in Connection Monitor and Wlan Qt Utilities. This class
- * enables setting both of those. Connmon version is set so that the stub can return it when
- * requested, and Wlan Qt Utilities version is used for verifying that tested code returns right
- * value.
- */
-class WlanQtUtilsCtxActiveConn : public WlanQtUtilsActiveConn
-{
-public:
-    WlanQtUtilsCtxActiveConn();
-    ~WlanQtUtilsCtxActiveConn();
-
-    /** Bearer type in connmon format. */
-    int connMonBearerType_;
-    /** Connection status in connmon format. */
-    int connMonConnectionStatus_;
-    /** WLAN connection mode in connmon format. */
-    int connMonWlanConnectionMode_;
-    /** WLAN security mode in connmon format. */
-    int connMonWlanSecurityMode_;
-    /** Application UIDs that map to application strings. */
-    QList<int> applicationUids_;
-};
-
-/**
- * This class represents active connections.
- */
-class WlanQtUtilsCtxActiveConnections : public QObject
-{
-    Q_OBJECT
-
-public:
-    WlanQtUtilsCtxActiveConnections();
-    ~WlanQtUtilsCtxActiveConnections();
-
-    /**
-     * Initializes context.
-     */
-    void initialize();
-
-    /**
-     * Creates a list of active connections for scan results.
-     * 
-     * @param[in] numberOfActiveConns Number of active connections that are created.
-     * @param[in] firstIapId IAP ID of the first connection to be created.
-     */
-    void createDefaultActiveConnList(int numberOfActiveConns, int firstIapId);
-
-    /**
-     * Verifies that the given active connection list returned by the real application matches
-     * with the one in the context.
-     * 
-     * @param[in] activeConnList Active connections that are verified against the context.
-     */
-    void verifyActiveConnList(QList<WlanQtUtilsActiveConn *> activeConnList);
-
-    /**
-     * Finds an active connection matching with the given connection ID from the context.
-     * Asserts if connection with given connection ID is not found.
-     * 
-     * @param connectionId Connection ID.
-     * @return Active connection.
-     */
-    WlanQtUtilsCtxActiveConn *findActiveConn(uint connectionId) const;
-
-    /**
-     * List of active connections that RConnectionMonitor stub will return in response to
-     * RConnectionMonitor::Get*Attribute() functions.
-     */
-    QList<WlanQtUtilsCtxActiveConn *> activeConnList_;
-
-    // TODO: We need return values for all different RConnectionMonitor::Get*Attribute() functions
-    //       to test error cases.
-
-private:
-    
-    /**
-     * Destroys and clears the list of WLAN APs.
-     */
-    void clearActiveConnList();
-};
-
-/**
- * This class represents WLAN APs that represent the results of WLAN scanning triggered by
- * RConnectionMonitor::GetPckgAttribute()
- */
-class WlanQtUtilsWlanScanResult : public QObject
-{
-    Q_OBJECT
-
-public:
-    WlanQtUtilsWlanScanResult();
-    ~WlanQtUtilsWlanScanResult();
-
-    /**
-     * Initializes context.
-     */
-    void initialize();
-
-    /**
-     * Creates a list of WLAN APs for scan results.
-     * 
-     * @param[in] numberOfWlanAps Number of WLAN APs that are created.
-     */
-    void createDefaultWlanScanResultList(int numberOfWlanAps);
-
-    /**
-     * Verifies that the given WLAN AP list returned by the real application matches
-     * with the one in the context.
-     * 
-     * @param[in] wlanApList WLAN APs that are verified against the context.
-     */
-    void verifyWlanScanResultList(QList<WlanQtUtilsWlanAp *> wlanApList); // TODO: Maybe boolean return value
-
-    /**
-     * List of WLAN access points that RConnectionMonitor stub will return in response to
-     * RConnectionMonitor::GetPckgAttribute().
-     */
-    QList<WlanQtUtilsWlanAp *> wlanScanResultList_;
-    
-private:
-    
-    /**
-     * Destroys and clears the list of WLAN APs.
-     */
-    void clearWlanScanResultList();
-};
-
-/**
- * Test context for RConnectionMonitor.
- */
-class WlanQtUtilsCtxConnMon : public QObject
-{
-    Q_OBJECT
-
-public:
-    WlanQtUtilsCtxConnMon();
-    ~WlanQtUtilsCtxConnMon();
-
-    /**
-     * Initializes context.
-     */
-    void initialize();
-
-    /** Results of WLAN scanning. */
-    WlanQtUtilsWlanScanResult wlanScanResult_;
-
-    /** List of active connections. */
-    WlanQtUtilsCtxActiveConnections activeConnections_;
-};
-
-/**
- * Test context for Internet connectivity test library.
- */
-class WlanQtUtilsCtxIct : public QObject
-{
-    Q_OBJECT
-
-public:
-    WlanQtUtilsCtxIct();
-    ~WlanQtUtilsCtxIct();
-
-    /**
-     * Initializes context.
-     */
-    void initialize();
-};
-
-/**
- * Test context. The purpose of this context is to provide values that are used in stubs
- * and in verification of outputs in test cases.
- * 
- * In stubs, context is used to verify the inputs of parameters and to set output
- * parameters into a specific value.
- * 
- * In test cases, context is used to verify that the output parameters match with the once
- * set in the stub.
- */
-class WlanQtUtilsTestContext : public QObject
-{
-    Q_OBJECT
-
-public:
-    WlanQtUtilsTestContext();
-    ~WlanQtUtilsTestContext();
-    
-    /**
-     * Initializes context.
-     */
-    void initialize();
-
-    /** Context for esock library. */
-    WlanQtUtilsCtxEsock esock_;
-    /** Context for connmon library. */
-    WlanQtUtilsCtxConnMon connMon_;
-    /** Context for ICTS library. */
-    WlanQtUtilsCtxIct ict_;
-};
-
-#endif /* WLANQTUTILSTESTCONTEXT_H */
-
--- a/wlanutilities/wlanqtutilities/ut/stubs/wlanqtutilsconnmonstub.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,637 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* This is a source file for connmon library stub functions
-*/
-
-#include <QString>
-#include <QObject>
-#include <rconnmon.h>
-#include <nifvar.h>
-#include "wlanqtutilswlanap.h"
-
-#ifdef __WINS__
-
-// TODO: This function is copied from ConnMonWLANNetworksArrayPckg_v2.cpp because this
-// function, although being in rconnmon.h, is not in the interface because IMPORT_C/EXPORT_C
-// declarations are not used for this particular constructor. The only change that was made to 
-// this version was to remove traces and some empty lines. This function is needed when
-// creating output in RConnectionMonitor::GetPckgAttribute() for WLAN scan results.
-// This is needed for both UT and emulator compilation.
-CConnMonWlanNetworksPtrArrayPckg::CConnMonWlanNetworksPtrArrayPckg(
-    const RPointerArray<CConnMonWlanNetwork>& aRef,
-    TUint aBufLen )
-    {
-    RPointerArray<HBufC> items;
-    TUint len( 0 );
-
-    for ( TUint i( 0 ); i < aRef.Count(); ++i )
-        {
-        const HBufC* item( aRef[i]->ToBuf() );
-        if ( item )
-            {
-            // Is there room in buffer
-            TUint countFields( 3 ); // aRef.Count(); items->Count(); item->Length()
-            if ( (countFields + len + item->Length()) > aBufLen )
-                {
-                delete item;
-                item = NULL;
-                break;
-                }
-            items.Append( item );
-            ++( len += item->Length() ); // ++ is for item's size
-            }
-        else
-            {
-            ; // There was a trace.
-            }
-        }
-    // Check that given buflen (aBufLen) is not smaller than one
-    // item (TConnMonWLANNetwork) + aRef count + items count
-    // + item length
-    if ( items.Count() == 0 && aRef.Count() > 0 )
-        {
-        aBufLen = 2; // aRef.Count(), items.Count()
-        }
-
-    iBuf = HBufC::New( aBufLen ); // Set size exactly to a buffer length
-    if ( !iBuf )
-        {
-        items.ResetAndDestroy();
-        items.Close();
-        return;
-        }
-    iBuf->Des().Append( aRef.Count() ); // Total amount of data
-    iBuf->Des().Append( items.Count() );  // Amount of transferring data
-    for ( TUint i(0); i<items.Count(); ++i )
-        {
-        iBuf->Des().Append( items[i]->Length() );
-        iBuf->Des().Append( *items[i] );
-        }
-    items.ResetAndDestroy();
-    items.Close();
-    }
-
-// -----------------------------------------------------------------------------
-// CConnMonEventBase::CConnMonEventBase
-// -----------------------------------------------------------------------------
-//
-CConnMonEventBase::CConnMonEventBase( const TInt aEventType, const TUint aConnectionId )
-    {
-    iEventType = aEventType;
-    iConnectionId = aConnectionId;
-    }
-
-// Destructor
-CConnMonEventBase::~CConnMonEventBase()
-    {
-    }
-
-// -----------------------------------------------------------------------------
-// CConnMonEventBase::EventType
-// -----------------------------------------------------------------------------
-//
-TInt CConnMonEventBase::EventType() const
-    {
-    return iEventType;
-    }
-
-// -----------------------------------------------------------------------------
-// CConnMonConnectionStatusChange::CConnMonConnectionStatusChange
-// -----------------------------------------------------------------------------
-//
-CConnMonConnectionStatusChange::CConnMonConnectionStatusChange(
-    const TUint aConnectionId,
-    const TUint aSubConnectionId,
-    const TInt aConnectionStatus ) :
-    CConnMonEventBase(EConnMonConnectionStatusChange, aConnectionId)
-    {
-    iSubConnectionId = aSubConnectionId;
-    iConnectionStatus = aConnectionStatus;
-    }
-
-// Destructor
-CConnMonConnectionStatusChange::~CConnMonConnectionStatusChange()
-    {
-    }
-
-#ifdef WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-
-// ----------------------------------------------
-// Stub functions for connmon library, used in UT
-// ----------------------------------------------
-
-#include "wlanqtutilstestcontext.h"
-
-extern WlanQtUtilsTestContext testContext;
-
-EXPORT_C void RConnectionMonitor::GetConnectionCount(
-    TUint& aConnectionCount,
-    TRequestStatus& aStatus)
-{
-    aConnectionCount = testContext.connMon_.activeConnections_.activeConnList_.count();
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-EXPORT_C TInt RConnectionMonitor::GetConnectionInfo(
-        const TUint aIndex,
-        TUint& aConnectionId,
-        TUint& aSubConnectionCount ) const
-{
-    aConnectionId = testContext.connMon_.activeConnections_.activeConnList_[aIndex - 1]->connectionId();
-    aSubConnectionCount = 0;
-    return KErrNone; // TODO: put return value into context.
-}
-
-EXPORT_C void RConnectionMonitor::GetIntAttribute(
-        const TUint aConnectionId,
-        const TUint /* aSubConnectionId */,
-        const TUint aAttribute,
-        TInt& aValue,
-        TRequestStatus& aStatus )
-{
-    WlanQtUtilsCtxActiveConn *activeConn = testContext.connMon_.activeConnections_.findActiveConn(aConnectionId);
-    if (aAttribute == KBearer) {
-        aValue = activeConn->connMonBearerType_;
-    } else if (aAttribute == KConnectionStatus) {
-        aValue = activeConn->connMonConnectionStatus_;
-    } else {
-        Q_ASSERT(false);
-    }
-    User::RequestComplete(&aStatus, KErrNone); // TODO: Take return value from the context.
-}
-
-EXPORT_C void RConnectionMonitor::GetUintAttribute(
-        const TUint aConnectionId,
-        const TUint /* aSubConnectionId */,
-        const TUint aAttribute,
-        TUint& aValue,
-        TRequestStatus& aStatus )
-{
-    WlanQtUtilsCtxActiveConn *activeConn = testContext.connMon_.activeConnections_.findActiveConn(aConnectionId);
-    if (aAttribute == KIAPId) {
-        aValue = activeConn->iapId();
-    } else {
-        Q_ASSERT(false);
-    }
-
-    User::RequestComplete(&aStatus, KErrNone); // TODO: Take return value from the context.
-}
-
-EXPORT_C void RConnectionMonitor::GetPckgAttribute(
-    const TUint aConnectionId,
-    const TUint aSubConnectionId,
-    const TUint aAttribute,
-    TDes8& aValue,
-    TRequestStatus& aStatus ) const
-{
-    // This is copy-paste from real implementation and we'll use that for other requests.
-    TIpcArgs args(aConnectionId, aSubConnectionId, aAttribute, &aValue);
-    SendReceive(EReqGetPckgAttribute, args, aStatus);
-}
-
-// ---------------------------------------------------------
-// connUtils2ConnMonSecModeMap()
-// Local function to map WlanQtUtilsWlanSecMode into Connection
-// monitor's security mode. Currently for UT use only.
-// ---------------------------------------------------------
-//
-static TUint connUtils2ConnMonSecModeMap(WlanQtUtilsWlanSecMode connUtilsWlanSecMode)
-{
-    TUint ret;
-    switch (connUtilsWlanSecMode) {
-    case WlanQtUtilsWlanSecModeWep:
-        ret = EConnMonSecurityWep;
-        break;
-    case WlanQtUtilsWlanSecMode802_1x:
-        ret = EConnMonSecurity802d1x;        
-        break;
-    case WlanQtUtilsWlanSecModeWpa:
-        ret = EConnMonSecurityWpa;
-        break;
-    case WlanQtUtilsWlanSecModeWpa2:
-        ret = EConnMonSecurityWpaPsk;
-        break;
-    default:
-        ret = EConnMonSecurityOpen;
-        break;
-    }
-    return ret;
-}
-
-
-
-EXPORT_C void RConnectionMonitor::GetPckgAttribute(
-    const TUint /* aConnectionId */,
-    const TUint /* aSubConnectionId */,
-    const TUint /* aAttribute */,
-    TDes16& aValue,
-    TRequestStatus& aStatus ) const
-    {
-    // TODO: verify input parameters, i.e., first three params...
-    
-    RConnMonWlanNetworksPtrArray wlanPtrArray;
-    RBuf vendorData;
-
-    for (int i = 0; i < testContext.connMon_.wlanScanResult_.wlanScanResultList_.count(); i++) {
-        WlanQtUtilsWlanAp* ap = testContext.connMon_.wlanScanResult_.wlanScanResultList_[i];
-        TBufC<CConnMonWlanNetwork::KMaxNameLength> name(ap->ssid().utf16());
-
-        TBufC<CConnMonWlanNetwork::KWlanBssId> bssid16(QString("addMAC").utf16());
-        TBuf8<CConnMonWlanNetwork::KWlanBssId> bssid;
-        bssid.Copy(bssid16);
-        
-        CConnMonWlanNetwork* wlanAp = CConnMonWlanNetwork::NewL(
-            name,
-            ap->connectionMode(),
-            ap->signalStrength(),
-            connUtils2ConnMonSecModeMap(ap->securityMode()),
-            bssid,
-            vendorData );
-        wlanPtrArray.Append(wlanAp);
-    }
-
-    CConnMonWlanNetworksPtrArrayPckg wlanBuf(wlanPtrArray, 2560);
-    aValue.Copy(wlanBuf.Buf()->Des());
-    
-    User::RequestComplete(&aStatus, KErrNone); // TODO: enable return value modification.
-    }
-
-#else // WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-
-// ----------------------------------------------------
-// Stub functions for connmon library, used in emulator
-// ----------------------------------------------------
-
-#if 0
-// In emulator, there are always two active connections.
-// The following functions return different properties of these active connection
-// so that it's easy to test in emulator.
-
-EXPORT_C void RConnectionMonitor::GetConnectionCount(
-    TUint& aConnectionCount,
-    TRequestStatus& aStatus)
-{
-    aConnectionCount = 2;
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-EXPORT_C TInt RConnectionMonitor::GetConnectionInfo(
-        const TUint aIndex,
-        TUint& aConnectionId,
-        TUint& aSubConnectionCount ) const
-{
-    if (aIndex == 1) {
-        aConnectionId = 10;
-    } else if (aIndex == 2) {
-        aConnectionId = 20;
-    } else {
-        Q_ASSERT(false);
-    }
-
-    aSubConnectionCount = 0;
-    return KErrNone;
-}
-
-EXPORT_C void RConnectionMonitor::GetIntAttribute(
-        const TUint aConnectionId,
-        const TUint /* aSubConnectionId */,
-        const TUint aAttribute,
-        TInt& aValue,
-        TRequestStatus& aStatus )
-{
-    if (aAttribute == KBearer) {
-        if (aConnectionId == 10) {
-            aValue = EBearerGPRS;
-        } else if (aConnectionId == 20) {
-            aValue = EBearerWLAN;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KConnectionStatus) {
-        if (aConnectionId == 10) {
-            aValue = KConnectionOpen;
-        } else if (aConnectionId == 20) {
-            aValue = KStartingConnection;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KSignalStrength) {
-        if (aConnectionId == 10) {
-            Q_ASSERT(false);
-        } else if (aConnectionId == 20) {
-            aValue = 78;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KNetworkMode) {
-        if (aConnectionId == 10) {
-            Q_ASSERT(false);
-        } else if (aConnectionId == 20) {
-            aValue = EConnMonInfraStructure;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KSecurityMode) {
-        if (aConnectionId == 10) {
-            Q_ASSERT(false);
-        } else if (aConnectionId == 20) {
-            aValue = EConnMonSecurityWpaPsk;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else {
-        Q_ASSERT(false);
-    }
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-EXPORT_C void RConnectionMonitor::GetUintAttribute(
-        const TUint aConnectionId,
-        const TUint /* aSubConnectionId */,
-        const TUint aAttribute,
-        TUint& aValue,
-        TRequestStatus& aStatus )
-{
-    if (aAttribute == KIAPId) {
-        if (aConnectionId == 10) {
-            aValue = 1;
-        } else if (aConnectionId == 20) {
-            aValue = 10;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KDownlinkData) {
-        if (aConnectionId == 10) {
-            aValue = 123;
-        } else if (aConnectionId == 20) {
-            aValue = 12345;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KUplinkData) {
-        if (aConnectionId == 10) {
-            aValue = 987654321;
-        } else if (aConnectionId == 20) {
-            aValue = 1234567890;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KTransmitPower) {
-        if (aConnectionId == 10) {
-            Q_ASSERT(false);
-        } else if (aConnectionId == 20) {
-            aValue = 50;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else {
-        Q_ASSERT(false);
-    }
-
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-EXPORT_C void RConnectionMonitor::GetBoolAttribute(
-        const TUint aConnectionId,
-        const TUint /* aSubConnectionId */,
-        const TUint aAttribute,
-        TBool& aValue,
-        TRequestStatus& aStatus )
-{
-    if (aAttribute == KConnectionActive) {
-        if (aConnectionId == 10) {
-            aValue = EFalse;
-        } else if (aConnectionId == 20) {
-            aValue = ETrue;
-        } else {
-            Q_ASSERT(false);
-        }
-    } else {
-        Q_ASSERT(false);
-    }
-
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-EXPORT_C void RConnectionMonitor::GetStringAttribute(
-    const TUint aConnectionId,
-    const TUint /* aSubConnectionId */,
-    const TUint aAttribute,
-    TDes& aValue,
-    TRequestStatus& aStatus ) const
-{
-    if (aAttribute == KIAPName) {
-        if (aConnectionId == 10) {
-            _LIT(iapNameLit, "PACKET DATA 1");
-            TBufC<KConnMonMaxStringAttributeLength> iapName(iapNameLit);
-            aValue = iapName.Des();
-        } else if (aConnectionId == 20) {
-            _LIT(iapNameLit, "WLAN IAP 3");
-            TBufC<KConnMonMaxStringAttributeLength> iapName(iapNameLit);
-            aValue = iapName.Des();
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KNetworkName) {
-        if (aConnectionId == 10) {
-            Q_ASSERT(false);
-        } else if (aConnectionId == 20) {
-            _LIT(ssidLit, "WLAN SSID 3");
-            TBufC<KConnMonMaxStringAttributeLength> ssid(ssidLit);
-            aValue = ssid.Des();
-        } else {
-            Q_ASSERT(false);
-        }
-    } else if (aAttribute == KAccessPointName) {
-        if (aConnectionId == 10) {
-            _LIT(iapNameLit, "PACKET DATA 1");
-            TBufC<KConnMonMaxStringAttributeLength> iapName(iapNameLit);
-            aValue = iapName.Des();
-        } else if (aConnectionId == 20) {
-            Q_ASSERT(false);
-        } else {
-            Q_ASSERT(false);
-        }
-    } else {
-        Q_ASSERT(false);
-    }
-
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-EXPORT_C void RConnectionMonitor::GetPckgAttribute(
-    const TUint aConnectionId,
-    const TUint aSubConnectionId,
-    const TUint aAttribute,
-    TDes8& aValue,
-    TRequestStatus& aStatus ) const
-{
-    if (aAttribute == KStartTime) {
-        if (aConnectionId == 10) {
-            TDateTime dateTime(2009, EMarch, 31-1, 15, 15, 15, 0);
-            TTime time(dateTime);
-            TConnMonTimeBuf timePckg(time);
-            aValue.Copy(timePckg);
-        } else if (aConnectionId == 20) {
-            TTime time;
-            time.UniversalTime();
-            TConnMonTimeBuf timePckg(time);
-            aValue.Copy(timePckg);
-        } else {
-            Q_ASSERT(false);
-        }
-        User::RequestComplete(&aStatus, KErrNone);
-    } else if (aAttribute == KClientInfo) {
-        TConnMonClientEnum applications;
-        if (aConnectionId == 10) {
-            applications.iCount = 1;
-            applications.iUid[0].iUid = 0x10008D39; // Web
-            applications.iUid[1].iUid = 0;
-            applications.iUid[2].iUid = 0;
-            applications.iUid[3].iUid = 0;
-            applications.iUid[4].iUid = 0;
-            applications.iUid[5].iUid = 0;
-            applications.iUid[6].iUid = 0;
-            applications.iUid[7].iUid = 0;
-            applications.iUid[8].iUid = 0;
-            applications.iUid[9].iUid = 0;
-        } else if (aConnectionId == 20) {
-            applications.iCount = 7;
-            applications.iUid[0].iUid = 0x101fd9c5; // KBannedServerUID
-            applications.iUid[1].iUid = 0x1020728E; // KFeedsServerUid
-            applications.iUid[2].iUid = 0x10008D60; // KDownloadMgrServerUid
-            applications.iUid[3].iUid = 0x1000484b; // KMessagingServerUid
-            applications.iUid[4].iUid = 0x102033E6; // KJavaVMUid
-            applications.iUid[5].iUid = 0x102073CA; // KSUPLServerUid
-            applications.iUid[6].iUid = 0x200212F3; // Connect Screen
-            applications.iUid[7].iUid = 0;
-            applications.iUid[8].iUid = 0;
-            applications.iUid[9].iUid = 0;
-        } else {
-            Q_ASSERT(false);
-        }
-        TPckgBuf< TConnMonClientEnum > applicationsPckg( applications );
-        aValue.Copy(applicationsPckg);
-        User::RequestComplete(&aStatus, KErrNone);
-    } else {
-        // This is copy-paste from real implementation and we'll use that for other requests.
-        TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &aValue );
-        SendReceive( EReqGetPckgAttribute, args, aStatus );
-    }
-}
-#endif
-
-// This function returns WLAN scan results.
-// Six results in every second scan and the others have two.
-EXPORT_C void RConnectionMonitor::GetPckgAttribute(
-    const TUint /* aConnectionId */,
-    const TUint /* aSubConnectionId */,
-    const TUint aAttribute,
-    TDes16& aValue,
-    TRequestStatus& aStatus ) const {
-
-    if (aAttribute == KWlanNetworks) {
-        RConnMonWlanNetworksPtrArray wlanPtrArray;
-        RBuf vendorData;
-    
-        TBufC<CConnMonWlanNetwork::KWlanBssId> bssid16(QString("addMAC").utf16());
-        TBuf8<CConnMonWlanNetwork::KWlanBssId> bssid;
-        bssid.Copy(bssid16);
-    
-        _LIT(wlanAp1Name, "Test AP 1");
-        TBufC<CConnMonWlanNetwork::KMaxNameLength> name1(wlanAp1Name);
-        CConnMonWlanNetwork* wlanAp1 = CConnMonWlanNetwork::NewL(
-            name1,
-            EConnMonInfraStructure,
-            20,
-            EConnMonSecurityOpen,
-            bssid,
-            vendorData );
-        wlanPtrArray.Append(wlanAp1);
-    
-        _LIT(wlanAp2Name, "Test AP 2");
-        TBufC<CConnMonWlanNetwork::KMaxNameLength> name2(wlanAp2Name);
-        CConnMonWlanNetwork* wlanAp2 = CConnMonWlanNetwork::NewL(
-            name2,
-            EConnMonAdHoc,
-            20,
-            EConnMonSecurityOpen,
-            bssid,
-            vendorData );
-        wlanPtrArray.Append(wlanAp2);
-    
-        static bool refresh = true;
-    
-        if (refresh) {
-            _LIT(wlanAp3Name, "Test AP 3");
-            TBufC<CConnMonWlanNetwork::KMaxNameLength> name3(wlanAp3Name);
-            CConnMonWlanNetwork* wlanAp3 = CConnMonWlanNetwork::NewL(
-                name3,
-                EConnMonInfraStructure,
-                20,
-                EConnMonSecurityWep,
-                bssid,
-                vendorData );
-            wlanPtrArray.Append(wlanAp3);
-    
-            _LIT(wlanAp4Name, "Test AP 4");
-            TBufC<CConnMonWlanNetwork::KMaxNameLength> name4(wlanAp4Name);
-            CConnMonWlanNetwork* wlanAp4 = CConnMonWlanNetwork::NewL(
-                name4,
-                EConnMonInfraStructure,
-                20,
-                EConnMonSecurityOpen,
-                bssid,
-                vendorData );
-            wlanPtrArray.Append(wlanAp4);
-    
-            _LIT(wlanAp5Name, "Test AP 5");
-            TBufC<CConnMonWlanNetwork::KMaxNameLength> name5(wlanAp5Name);
-            CConnMonWlanNetwork* wlanAp5 = CConnMonWlanNetwork::NewL(
-                name5,
-                EConnMonInfraStructure,
-                20,
-                EConnMonSecurityWpa,
-                bssid,
-                vendorData );
-            wlanPtrArray.Append(wlanAp5);
-    
-            _LIT(wlanAp6Name, "Test AP 6");
-            TBufC<CConnMonWlanNetwork::KMaxNameLength> name6(wlanAp6Name);
-            CConnMonWlanNetwork* wlanAp6 = CConnMonWlanNetwork::NewL(
-                name6,
-                EConnMonInfraStructure,
-                20,
-                EConnMonSecurityWpaPsk,
-                bssid,
-                vendorData );
-            wlanPtrArray.Append(wlanAp6);
-    
-            refresh = false;
-        } else {
-            refresh = true;
-        }
-    
-        CConnMonWlanNetworksPtrArrayPckg wlanBuf(wlanPtrArray, 2560); // TODO: buffer size to more dynamic or use constant
-        aValue.Copy(wlanBuf.Buf()->Des());
-    } else {
-        Q_ASSERT(false);
-    }
-    
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-#endif // WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-#endif // __WINS__
--- a/wlanutilities/wlanqtutilities/ut/stubs/wlanqtutilsconnteststub.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* This is a source file for connmon library stub functions
-*/
-
-#include <ictsclientinterface.h>
-
-#ifdef __WINS__
-
-#ifdef WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-
-// ----------------------------------------------
-// Stub functions for ICT library, used in UT
-// ----------------------------------------------
-
-#include "wlanqtutilstestcontext.h"
-
-extern WlanQtUtilsTestContext testContext;
-
-// ----------------------------------------------------
-// NewL is not stubbed -> parameters are not checked at all
-// ----------------------------------------------------
-
-/**
- * Empty implementation to prevent actual ICT from starting. Result callback is called directly
- * in the test cases.
- */
-EXPORT_C void CIctsClientInterface::StartL()
-    {
-    }
-
-#endif // WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-
-// ----------------------------------------------------
-// No stubs used in emulator
-// ----------------------------------------------------
-#endif // __WINS__
--- a/wlanutilities/wlanqtutilities/ut/stubs/wlanqtutilsesockstub.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* This is a source file for esock library stub functions
-*/
-
-#include <es_sock.h>
-
-#ifdef __WINS__
-
-#ifdef WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-
-// ----------------------------------------------
-// Stub functions for esock library, used in UT
-// ----------------------------------------------
-
-#include "wlanqtutilstestcontext.h"
-
-extern WlanQtUtilsTestContext testContext;
-
-/**
- * Returns value from test context.
- * 
- * TConnPref value cannot be verified easily because the real value passed to the function is
- * TCommDbConnPref. Dynamic cast from TConnPref to TCommDbConnPref does not work because
- * TConnPref does not have virtual functions which means that type information for the 
- * class hierarchy is not created by the compiler.
- */
-void RConnection::Start(class TConnPref &, class TRequestStatus &aStatus)
-{
-    User::RequestComplete(&aStatus, testContext.esock_.startRetValue_);
-}
-
-#else // WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-
-// ----------------------------------------------------
-// Stub functions for esock library, used in emulator
-// ----------------------------------------------------
-
-/**
- * Return always success in emulator.
- */
-void RConnection::Start(class TConnPref &, class TRequestStatus &aStatus)
-{
-    User::RequestComplete(&aStatus, KErrNone);
-}
-
-#endif // WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-#endif // __WINS__
--- a/wlanutilities/wlanqtutilities/ut/t_wlanqtutils/t_wlanqtutils.pro	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,99 +0,0 @@
-#
-# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-# All rights reserved.
-# This component and the accompanying materials are made available
-# under the terms of "Eclipse Public License v1.0"
-# which accompanies this distribution, and is available
-# at the URL "http://www.eclipse.org/legal/epl-v10.html".
-#
-# Initial Contributors:
-# Nokia Corporation - initial contribution.
-#
-# Contributors:
-#
-# Description:
-#
-
-QT += testlib
-
-TEMPLATE = app
-TARGET = t_wlanqtutils
-
-TARGET.CAPABILITY = ALL -TCB
-
-DEPENDPATH += .
-
-#Store generated .moc files to their own directory
-MOC_DIR = moc
-
-#BUILD_DLL macro is used to define export macro
-DEFINES += BUILD_WLANQTUTILITIES_DLL
-
-#Following macros MW_LAYER_SYSTEMINCLUDE and OS_LAYER_SYSTEMINCLUDE are defined 
-#in X:\QT\mkspecs\features\symbian\platform_paths.prf that is always inluded in
-#QT compilation
-
-INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE \
-               $$OS_LAYER_SYSTEMINCLUDE \
-               . \
-               ../../base/inc \
-               ../../wrapper/inc \
-               ../../traces \
-               /epoc32/include/domain/osextensions
-
-# Input
-HEADERS += testwlanqtutils.h \
-    ../context/wlanqtutilstestcontext.h \
-    ../../base/inc/wlanqtutils.h \
-    ../../base/inc/wlanqtutils_p.h \
-    ../../base/inc/wlanqtutilsiap.h \
-    ../../base/inc/wlanqtutilswlaniap.h \
-    ../../base/inc/wlanqtutilswlanap.h \
-    ../../base/inc/wlanqtutilsactiveconn.h \
-    ../../wrapper/inc/wlanqtutilscmmwrapper.h \
-    ../../wrapper/inc/wlanqtutilsconmonwrapper.h \
-    ../../wrapper/inc/wlanqtutilsconntestwrapper.h \
-    ../../wrapper/inc/wlanqtutilsesockwrapper.h \
-    ../../traces/OstTraceDefinitions.h
-
-SOURCES += testwlanqtutils.cpp \
-    ../context/wlanqtutilstestcontext.cpp \
-    ../../base/src/wlanqtutils.cpp \
-    ../../base/src/wlanqtutils_p.cpp \
-    ../../base/src/wlanqtutilsiap.cpp \
-    ../../base/src/wlanqtutilswlaniap.cpp \
-    ../../base/src/wlanqtutilswlanap.cpp \
-    ../../base/src/wlanqtutilsactiveconn.cpp \
-    ../../wrapper/src/wlanqtutilscmmwrapper.cpp \
-    ../../wrapper/src/wlanqtutilsconmonwrapper.cpp \
-    ../../wrapper/src/wlanqtutilsconntestwrapper.cpp \
-    ../../wrapper/src/wlanqtutilsesockwrapper.cpp
-    
-symbian: { 
-    HEADERS += ../../wrapper/inc/wlanqtutilscmmwrapper_s60_p.h \
-               ../../wrapper/inc/wlanqtutilsconmonwrapper_s60_p.h \
-               ../../wrapper/inc/wlanqtutilsconntestwrapper_s60_p.h \
-               ../../wrapper/inc/wlanqtutilsesockwrapper_s60_p.h
-
-    SOURCES += ../../wrapper/src/wlanqtutilscmmwrapper_s60.cpp \
-               ../../wrapper/src/wlanqtutilsconmonwrapper_s60.cpp \
-               ../../wrapper/src/wlanqtutilsconntestwrapper_s60.cpp \
-               ../../wrapper/src/wlanqtutilsesockwrapper_s60.cpp \
-               ../stubs/wlanqtutilsconnmonstub.cpp \
-               ../stubs/wlanqtutilsconnteststub.cpp \
-               ../stubs/wlanqtutilsesockstub.cpp
-}
-
-LIBS += -lcmmanager -lconnmon -lcommdb -lesock -lictsclientinterface
-
-#UT flag is set
-DEFINES += WLANQTUTILS_T_WLANQTUTILS_UT_FLAG
-
-coverage_test: {
-message(*** Coverage test mode build - no OST traces.)
-#NO_OST_TRACES flag is set
-DEFINES += WLANQTUTILS_NO_OST_TRACES_FLAG 'Q_ASSERT(test)='
-}
-else {
-message(*** Normal Symbian-mode build.)
-}
\ No newline at end of file
--- a/wlanutilities/wlanqtutilities/ut/t_wlanqtutils/testwlanqtutils.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,683 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* This is the source file for testing Wlan Qt Utilities library.
-*/
-
-#include <QtCore>
-#include <QTest>
-#include <QSignalSpy>
-#include <rconnmon.h>
-#include <nifvar.h>
-#include "wlanqtutilscommon.h"
-#include "wlanqtutilswlanap.h"
-#include "wlanqtutilsiap.h"
-#include "wlanqtutilswlaniap.h"
-#include "wlanqtutils.h"
-#include "wlanqtutils_p.h"
-#include "wlanqtutilsconmonwrapper.h"
-#include "wlanqtutilsconmonwrapper_s60_p.h"
-#include "wlanqtutilsconntestwrapper.h"
-#include "wlanqtutilsconntestwrapper_s60_p.h"
-#include "testwlanqtutils.h"
-#include "wlanqtutilstestcontext.h"
-
-WlanQtUtilsTestContext testContext;
-
-const QString TestWlanQtUtils::commsDatDefault_ = "default.cre";
-
-// ---------------------------------------------------------
-// FRAMEWORK FUNCTIONS
-// ---------------------------------------------------------
-
-/**
- * This function will be called before the first test function is executed.
- */
-void TestWlanQtUtils::initTestCase()
-{
-    wlanQtUtils_ = NULL;
-    signalScanReady_ = NULL;
-    signalWlanNetworkOpened_ = NULL;
-    signalWlanNetworkClosed_ = NULL;
-
-    //If Active scheduler exists then don't install a new one as it will cause panic
-    if (CActiveScheduler::Current() == NULL) {
-        CActiveScheduler *scheduler = new CActiveScheduler();
-        CActiveScheduler::Install(scheduler);
-    }
-}
-
-/**
- * This function will be called after the last test function was executed.
- */
-void TestWlanQtUtils::cleanupTestCase()
-{
-    // CommsDat file is initialized.
-    subTestLoadCommsDatFile(commsDatDefault_);
-
-    // TODO: Can we get rid of this delay?
-    QWARN(": \n *********** \n * PASSED! * \n *********** \n\n\n");
-    QWARN(": \n *** Window will be closed in 5s... \n\n\n");    
-    QTest::qSleep(5000);
-}
-
-/**
- * This function will be called before each test function is executed.
- */
-void TestWlanQtUtils::init()
-{
-    // CommsDat file is initialized.
-    subTestLoadCommsDatFile(commsDatDefault_);
-
-    testContext.initialize();
-
-    QVERIFY(wlanQtUtils_ == NULL);
-    QVERIFY(signalScanReady_ == NULL);
-    QVERIFY(signalWlanNetworkOpened_ == NULL);
-    QVERIFY(signalWlanNetworkClosed_ == NULL);
-    subTestNewWlanQtUtils();
-}
-
-/**
- * This function will be called after each test function is executed.
- */
-void TestWlanQtUtils::cleanup()
-{
-    delete wlanQtUtils_;
-    wlanQtUtils_ = NULL;
-
-    QCOMPARE(signalScanReady_->count(), 0);
-    delete signalScanReady_;
-    signalScanReady_ = NULL;
-
-    QCOMPARE(signalWlanNetworkOpened_->count(), 0);
-    delete signalWlanNetworkOpened_;
-    signalWlanNetworkOpened_ = NULL;
-
-    QCOMPARE(signalWlanNetworkClosed_->count(), 0);
-    delete signalWlanNetworkClosed_;
-    signalWlanNetworkClosed_ = NULL;
-}
-
-// ---------------------------------------------------------
-// TEST CASES
-// ---------------------------------------------------------
-
-/**
- * Test available WLAN APs when scan is triggered by client.
- * Two scan results have the same SSID and the latter one of those will be removed.
- * Two scan results have the same SSID but different security mode
- * and both are included in the results.
- */
-void TestWlanQtUtils::testAvailableWlanAps()
-{
-    testContext.connMon_.wlanScanResult_.createDefaultWlanScanResultList(10);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[0]->setSsid("Same SSID");
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[2]->setSsid("Same SSID");
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[5]->setSsid("Same SSID, different SecMode");
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[5]->setSecurityMode(WlanQtUtilsWlanSecModeWpa);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[8]->setSsid("Same SSID, different SecMode");
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[8]->setSecurityMode(WlanQtUtilsWlanSecModeOpen);
-
-    // Request a scan to get result signal
-    wlanQtUtils_->scanWlans();
-    
-    // Let active object run and verify signal.
-    subTestSignalWaitAndTake(signalScanReady_, NULL);
-
-    // Get and verify the list of available WLAN APs.
-    QList<WlanQtUtilsWlanIap *> iaps;
-    QList<WlanQtUtilsWlanAp *> aps;
-    wlanQtUtils_->availableWlanAps(iaps, aps);
-
-    // First remove AP that has duplicate SSID.
-    // Then order APs alphabetically.
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_.removeAt(2);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_.move(4, 1);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_.move(7, 1);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_.move(8, 3);
-    testContext.connMon_.wlanScanResult_.verifyWlanScanResultList(aps);
-    QCOMPARE(iaps.count(), 0);
-    aps.clear(); // TODO: Free AP pointers too.
-}
-
-/**
- * Test available WLAN APs when there are also WLAN IAPs available.
- */
-void TestWlanQtUtils::testAvailableWlanApsWithIaps()
-{
-    testContext.connMon_.wlanScanResult_.createDefaultWlanScanResultList(7);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[1]->setSsid("WLAN IAP 3");
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[1]->setSecurityMode(WlanQtUtilsWlanSecModeWpa);    
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[3]->setSsid("");
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[5]->setSsid("WLAN IAP 1");
-    // Todo: security mode not compared yet due to an issue with CMM vs ConnMon WLAN security
-    // modes under investigation
-    // SSID is found in Internet Snap, but security mode does not match:
-    // testContext.connMon_.wlanScanResult_.wlanScanResultList_[6]->setSsid("WLAN IAP 2");
-    // testContext.connMon_.wlanScanResult_.wlanScanResultList_[6]->setSecurityMode(WlanQtUtilsWlanSecModeWpa);    
-    
-    // Request a scan to get result signal
-    wlanQtUtils_->scanWlans();
-    
-    // Let active object run and verify signal.
-    subTestSignalWaitAndTake(signalScanReady_, NULL);
-
-    // Get and verify the list of available WLAN APs.
-    QList<WlanQtUtilsWlanIap *> iaps;
-    QList<WlanQtUtilsWlanAp *> aps;
-    wlanQtUtils_->availableWlanAps(iaps, aps);
-
-    // Verify WLAN AP list. First, remove scan results that will not appear
-    // because they are hidden WLANs or WLAN IAPs.
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_.removeAt(5);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_.removeAt(3);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_.removeAt(1);
-    testContext.connMon_.wlanScanResult_.verifyWlanScanResultList(aps);
-
-    // Verify WLAN IAP list
-    QCOMPARE(iaps.count(), 2);
-    QCOMPARE(iaps[0]->id(), 5);
-    QCOMPARE(iaps[0]->name(), QString("WLAN IAP 1"));
-    QCOMPARE(iaps[0]->bearerType(), WlanQtUtilsBearerTypeWlan);
-    QCOMPARE(iaps[0]->ssid(), QString("WLAN IAP 1"));
-    QCOMPARE(iaps[1]->id(), 7);
-    QCOMPARE(iaps[1]->name(), QString("WLAN IAP 3"));
-    QCOMPARE(iaps[1]->bearerType(), WlanQtUtilsBearerTypeWlan);
-    QCOMPARE(iaps[1]->ssid(), QString("WLAN IAP 3"));
-    iaps.clear(); // TODO: Free IAP pointers too.
-    aps.clear(); // TODO: Free AP pointers too.
-}
-
-/**
- * Test refereshing of WLAN APs when client requests sequential scans.
- */
-void TestWlanQtUtils::testAvailableWlanApsSequence()
-{
-    // **************** Before 1st scan ********************
-    QList<WlanQtUtilsWlanIap *> iaps;
-    QList<WlanQtUtilsWlanAp *> aps;
-    wlanQtUtils_->availableWlanAps(iaps, aps);
-    // Verify we have no results
-    QCOMPARE(aps.count(), 0);
-    QCOMPARE(iaps.count(), 0);
-    
-    // **************** 1st scan ********************
-    // 6 APs are required for this scan
-    testContext.connMon_.wlanScanResult_.createDefaultWlanScanResultList(6);
-
-    wlanQtUtils_->scanWlans();
-    subTestSignalWaitAndTake(signalScanReady_, NULL);
-
-    // Get the results for the 1st scan
-    wlanQtUtils_->availableWlanAps(iaps, aps);
-    // Verify the results for the scan
-    testContext.connMon_.wlanScanResult_.verifyWlanScanResultList(aps);
-    QCOMPARE(iaps.count(), 0);
-    aps.clear(); // TODO: free memory of pointers too.
-
-    // **************** 2nd scan ********************
-    // 2 APs are required for this scan
-    testContext.connMon_.wlanScanResult_.createDefaultWlanScanResultList(2);
-
-    wlanQtUtils_->scanWlans();
-    subTestSignalWaitAndTake(signalScanReady_, NULL);
-
-    // Get the results for the 2nd scan
-    wlanQtUtils_->availableWlanAps(iaps, aps);
-    // Verify the results for the scan
-    testContext.connMon_.wlanScanResult_.verifyWlanScanResultList(aps);
-    QCOMPARE(iaps.count(), 0);
-    aps.clear(); // TODO: Free memory
-
-    // **************** 3rd scan ********************
-    // 4 APs are required for the 3rd scan
-    testContext.connMon_.wlanScanResult_.createDefaultWlanScanResultList(4);
-
-    wlanQtUtils_->scanWlans();
-    subTestSignalWaitAndTake(signalScanReady_, NULL);
-    
-    // Get the results for the 3rd scan
-    wlanQtUtils_->availableWlanAps(iaps, aps);
-    // Verify the results for the scan
-    testContext.connMon_.wlanScanResult_.verifyWlanScanResultList(aps);
-    QCOMPARE(iaps.count(), 0);
-    aps.clear(); // TODO: Free memory    
-}
-
-/**
- * This function tests creation of WLAN IAP in a succesful manner.
- * - WLAN scan is made because otherwise we cannot verify that IAP creation is successful.
- * - Check that there are no available WLAN IAPs.
- * - Fetch SNAP list.
- * - Create WLAN IAP.
- * - Check that WLAN IAP has been created and that this IAP is not in WLAN AP scan results.
- */
-void TestWlanQtUtils::testCreateWlanIapOk()
-{
-    testContext.connMon_.wlanScanResult_.createDefaultWlanScanResultList(1);
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[0]->setSsid("New WLAN IAP");
-    testContext.connMon_.wlanScanResult_.wlanScanResultList_[0]->setSecurityMode(WlanQtUtilsWlanSecModeWpa2);
-
-    // Create a new instance in order to test functionality triggered in constructor.
-    WlanQtUtils *utils = new WlanQtUtils();
-    QSignalSpy spy(utils, SIGNAL(wlanScanReady()));
-    QVERIFY(spy.isValid() == true);
-    subTestSignalWaitAndTake(&spy, NULL);
-
-    // Ensure there are no WLAN IAPs but there is one scan result.
-    QList<WlanQtUtilsWlanIap *> iaps;
-    QList<WlanQtUtilsWlanAp *> aps;    
-    utils->availableWlanAps(iaps, aps);
-
-    QCOMPARE(iaps.count(), 0);
-    testContext.connMon_.wlanScanResult_.verifyWlanScanResultList(aps);
-
-    // Execute createWlanIap() function
-    WlanQtUtilsWlanAp wlanAp("New WLAN IAP", "abcdef", 90, EConnMonInfraStructure, WlanQtUtilsWlanSecModeWpa2);
-    int iapId = utils->createWlanIap(&wlanAp);
-
-    // Verify that created IAP is in the IAP list and AP list is empty.
-    utils->availableWlanAps(iaps, aps);
-    QCOMPARE(iaps.count(), 1);
-    QCOMPARE(iaps[0]->id(), iapId);
-    QCOMPARE(iaps[0]->name(), QString("New WLAN IAP"));
-    QCOMPARE(iaps[0]->bearerType(), WlanQtUtilsBearerTypeWlan);
-    QCOMPARE(iaps[0]->ssid(), QString("New WLAN IAP"));
-    // Todo: should be Wpa2, CMM vs ConnMon WLAN security modes under investigation
-    QCOMPARE(iaps[0]->securityMode(), WlanQtUtilsWlanSecModeWpa);
-    QCOMPARE(aps.count(), 0);
-    iaps.clear(); // TODO: memory leak.
-    delete utils;
-}
-
-/**
- * This function tests connecting to IAP in a succesful manner.
- */
-void TestWlanQtUtils::testConnectIapOk()
-{
-    testContext.esock_.startRetValue_ = KErrNone;
-
-    // Esock stub completes connection creation immediately
-    wlanQtUtils_->connectIap(5);
-
-    // Connection creation in ConnMon interface
-    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, 5);
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonEventBase(
-            EConnMonCreateConnection,
-            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
-
-    // Connection status change in ConnMon interface
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KConnectionOpen));
-    
-    // Receive signal for connection opening (caused by connectIap, which completed immediately)
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments); 
-    QCOMPARE(arguments.at(0).toInt(), 5); 
-
-    // Connection status change to opened in ConnMon interface. Sub test cases between test
-    // cases check that no extra signals are sent
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KLinkLayerOpen));
-}
-
-/**
- * This function tests connecting to IAP in unsuccesful manner.
- */
-void TestWlanQtUtils::testConnectIapErr()
-{
-    testContext.esock_.startRetValue_ = KErrGeneral;
-
-    wlanQtUtils_->connectIap(7);
-
-    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, 7);
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonEventBase(
-            EConnMonCreateConnection,
-            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KConnectionOpen));
-    
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonEventBase(
-            EConnMonDeleteConnection,
-            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
-    
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkClosed_, &arguments); 
-    QCOMPARE(arguments.at(0).toInt(), 7);
-}
-
-// TODO: testDisconnectFail cases are needed when fail branches are
-// implemented into the connmon wrapper
-/**
- * This function tests IAP disconnecting functionality.
- */
-void TestWlanQtUtils::testDisconnectIapOk()
-{
-    // Create and connect an IAP we can then disconnect
-    WlanQtUtilsWlanAp wlanAp("Disconnect IAP", "abcdef", 90, EConnMonInfraStructure, WlanQtUtilsWlanSecModeWpa2);
-    int iapId = wlanQtUtils_->createWlanIap(&wlanAp);
-    testContext.esock_.startRetValue_ = KErrNone;
-    wlanQtUtils_->connectIap(iapId);
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments); 
-    QCOMPARE(arguments.at(0).toInt(), iapId); 
-    
-    // The disconnect function does not have any return values or
-    // signals related to the disconnection, thus plain
-    // function call is done for the test.
-    wlanQtUtils_->disconnectIap(iapId);
-}
-
-/**
- * This function tests IAP getter with existing IAP ID.
- */
-void TestWlanQtUtils::testIapFound()
-{
-    // Create the IAP we want to find with the getter
-    WlanQtUtilsWlanAp wlanAp("testIapFound", "abcdef", 90, EConnMonInfraStructure, WlanQtUtilsWlanSecModeWpa2);
-    int iapId = wlanQtUtils_->createWlanIap(&wlanAp);
-    
-    // Execute the function under test and check that we got the correct IAP
-    WlanQtUtilsIap *iap = wlanQtUtils_->iap(iapId);
-    QVERIFY(iap != NULL);
-    QCOMPARE(iap->id(), iapId);
-    QCOMPARE(iap->name(), QString("testIapFound"));
-    QCOMPARE(iap->bearerType(), WlanQtUtilsBearerTypeWlan);
-}
-
-/**
- * This function tests IAP getter with non-existing IAP ID.
- */
-void TestWlanQtUtils::testIapNotFound()
-{
-    // Execute the function under test and check that we get no IAP as result
-    WlanQtUtilsIap *iap = wlanQtUtils_->iap(1000);
-    QVERIFY(iap == NULL);
-}
-
-/**
- * This function tests connected WLAN IAP getter with existing connection.
- */
-void TestWlanQtUtils::testConnectedWlanIdFound()
-{
-    // Create the IAP we want to find with the getter
-    WlanQtUtilsWlanAp wlanAp("testConnectedWlanIdFound", "abcdef", 90, EConnMonInfraStructure, WlanQtUtilsWlanSecModeWpa2);
-    int iapId = wlanQtUtils_->createWlanIap(&wlanAp);
-    
-    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, iapId);
-
-    // Send event for connection creation.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonEventBase(
-            EConnMonCreateConnection,
-            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
-
-    // Send events for connection status change -> opened.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KStartingConnection));
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KLinkLayerOpen));
-
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments);
-    QCOMPARE(arguments.at(0).toInt(), iapId);
-        
-    // Execute the function under test and check that we get valid ID as result
-    int id = wlanQtUtils_->connectedWlanId();
-    QCOMPARE(id, iapId);
-}
-
-/**
- * This function tests connected WLAN IAP getter with connection existing already during dll construction.
- */
-void TestWlanQtUtils::testConnectedWlanIdFoundConstructor()
-{
-    // IAP ID 5 exists in default commsdat file
-    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, 5);
-
-    // Create a new instance in order to test functionality triggered in constructor.
-    WlanQtUtils *utils = new WlanQtUtils();
-
-    // Execute the function under test and check that we get valid ID as result
-    int id = utils->connectedWlanId();
-    QCOMPARE(id, 5);
-
-    delete utils;
-}
-
-/**
- * This function tests connected WLAN IAP getter without existing connection.
- */
-void TestWlanQtUtils::testConnectedWlanIdNotFound()
-{
-    // Execute the function under test and check that we get invalid ID as result
-    int id = wlanQtUtils_->connectedWlanId();
-    QCOMPARE(id, WlanQtUtilsInvalidIapId);
-}
-
-/**
- * Test WLAN scan triggering interface.
- */
-void TestWlanQtUtils::testScanWlans()
-{
-    // Execute function under test
-    wlanQtUtils_->scanWlans();
-
-    // No need to verify scan results here, testAvailableWlanAps* test cases
-    // are for that. Just make sure the result signal is received.
-    subTestSignalWaitAndTake(signalScanReady_, NULL);
-}
-
-/**
- * This function tests Wlan network opening signal when network is not opened by the dll.
- */
-void TestWlanQtUtils::testWlanNetworkOpened()
-{
-    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, 5);
-
-    // Send event for connection creation.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonEventBase(
-            EConnMonCreateConnection,
-            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
-
-    // Send events for connection status change -> opened.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KConnectionOpen));
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KLinkLayerOpen));
-
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments);
-    QCOMPARE(arguments.at(0).toInt(), 5);
-}
-
-/**
- * This function tests Wlan network closing signal when network is not closed by the dll.
- */
-void TestWlanQtUtils::testWlanNetworkClosed()
-{
-    // First create a connection
-    testContext.connMon_.activeConnections_.createDefaultActiveConnList(1, 5);
-
-    // Send event for connection creation.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonEventBase(
-            EConnMonCreateConnection,
-            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
-
-    // Send events for connection status change -> opened.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KConnectionOpen));
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KLinkLayerOpen));
-
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments);
-    QCOMPARE(arguments.at(0).toInt(), 5);
-
-    // Send event for connection status change -> closed.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonConnectionStatusChange(
-        testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId(),
-        0,
-        KLinkLayerClosed));
-
-    // Send event for connection deletion.
-    wlanQtUtils_->d_ptr->conMonWrapper_->d_ptrConnInfo->EventL(CConnMonEventBase(
-            EConnMonDeleteConnection,
-            testContext.connMon_.activeConnections_.activeConnList_[0]->connectionId()));
-
-    subTestSignalWaitAndTake(signalWlanNetworkClosed_, &arguments);
-    QCOMPARE(arguments.at(0).toInt(), 5);
-}
-
-/**
- * This function tests ICT when connection test passes.
- */
-void TestWlanQtUtils::testConnectionTestPass()
-{
-    // Create and connect an IAP we can then test
-    WlanQtUtilsWlanAp wlanAp("Connection test IAP", "abcdef", 90, EConnMonInfraStructure, WlanQtUtilsWlanSecModeWpa2);
-    int iapId = wlanQtUtils_->createWlanIap(&wlanAp);
-    testContext.esock_.startRetValue_ = KErrNone;
-    wlanQtUtils_->connectIap(iapId);
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments); 
-    QCOMPARE(arguments.at(0).toInt(), iapId); 
-
-    // Connection test automatically started at this point. Call result function explicitly
-    // No interface exists that we could check that the IAP is moved to Internet SNAP correctly
-    TBuf<5> string;
-    wlanQtUtils_->d_ptr->connTestWrapper_->d_ptr_->ConnectivityObserver(EConnectionOk, string);
-}
-
-/**
- * This function tests ICT when connection test fails.
- */
-void TestWlanQtUtils::testConnectionTestFail()
-{
-    // Create and connect an IAP we can then test
-    WlanQtUtilsWlanAp wlanAp("Connection test IAP", "abcdef", 90, EConnMonInfraStructure, WlanQtUtilsWlanSecModeWpa2);
-    int iapId = wlanQtUtils_->createWlanIap(&wlanAp);
-    testContext.esock_.startRetValue_ = KErrNone;
-    wlanQtUtils_->connectIap(iapId);
-    QList<QVariant> arguments;
-    subTestSignalWaitAndTake(signalWlanNetworkOpened_, &arguments); 
-    QCOMPARE(arguments.at(0).toInt(), iapId); 
-
-    // Connection test automatically started at this point. Call result function explicitly
-    // No interface exists that we could check that IAP is not moved to another SNAP
-    // Todo: Repeat for all possible error codes to gain coverage
-    TBuf<5> string;
-    wlanQtUtils_->d_ptr->connTestWrapper_->d_ptr_->ConnectivityObserver(EHttpAuthenticationNeeded, string);
-}
-
-// ---------------------------------------------------------
-// SUB TEST CASES
-// ---------------------------------------------------------
-
-/**
- * This function waits for active objects to get time to run, takes the arguments of the
- * first signal and returns them from the given signal spy.
- * This function also verifies that the number of signals is 1.
- * 
- * @param[in] spy Signal spy.
- * @param[out] arguments Arguments of the first signal in the given signal spy. NULL if arguments not needed.
- */
-void TestWlanQtUtils::subTestSignalWaitAndTake(QSignalSpy* spy, QList<QVariant>* arguments)
-{
-    QTest::qWait(1);
-    QCOMPARE(spy->count(), 1);
-    QList<QVariant> arguments_tmp = spy->takeFirst();
-    if (arguments != NULL) {
-        *arguments = arguments_tmp;
-    }
-}
-
-/**
- * This function loads given CommsDat file, replacing current one.
- * If CommsDat file doesn't exist, it can be re-created by commanding WST script.
- * Using help switch is a quick way:
- *     run_wst HELP
- * 
- * @param newCommsdatFilename Filename of the new CommsDat to be loaded. 
- */
-void TestWlanQtUtils::subTestLoadCommsDatFile(QString newCommsdatFilename)
-{
-    // EPOC's CommsDat filename   
-    const QString epocCommsdatFilename("cccccc00.cre");
-    // EPOC's directory for CommsDat file
-    const QString commsdatDir("c:\\private\\10202be9\\persists\\");
-    // Created backup directory under EPOC for CommsDat files
-    const QString storeDir("c:\\private\\10202be9\\persists\\backup\\");
-    QString nameOld = commsdatDir + epocCommsdatFilename;
-    QString nameDefault = storeDir + newCommsdatFilename;
-
-    // First remove the old CommsDat file.
-    Q_ASSERT(QFile::remove(nameOld) == TRUE);
-    
-    // Copy the stored default CommsDat file.
-    Q_ASSERT(QFile::copy(nameDefault, nameOld) == TRUE);
-}
-
-/**
- * 
- */
-void TestWlanQtUtils::subTestNewWlanQtUtils()
-{
-    if (wlanQtUtils_ != NULL) {
-        delete wlanQtUtils_;
-    }
-    wlanQtUtils_ = new WlanQtUtils();
-
-    if (signalScanReady_ != NULL) {
-        delete signalScanReady_;
-    }
-    signalScanReady_ = new QSignalSpy(wlanQtUtils_, SIGNAL(wlanScanReady()));
-    QVERIFY(signalScanReady_->isValid() == true);
-
-    if (signalWlanNetworkOpened_ != NULL) {
-        delete signalWlanNetworkOpened_;
-    }
-    signalWlanNetworkOpened_ = new QSignalSpy(wlanQtUtils_, SIGNAL(wlanNetworkOpened(int)));
-    QVERIFY(signalWlanNetworkOpened_->isValid() == true);
-    
-    if (signalWlanNetworkClosed_ != NULL) {
-        delete signalWlanNetworkClosed_;
-    }
-    signalWlanNetworkClosed_ = new QSignalSpy(wlanQtUtils_, SIGNAL(wlanNetworkClosed(int)));
-    QVERIFY(signalWlanNetworkClosed_->isValid() == true);
-    
-    // Let first active objects to run. First WLAN scan is done in engine contructor.
-    subTestSignalWaitAndTake(signalScanReady_, NULL);
-}
-
-// Create main function using QTest marco.
-QTEST_MAIN(TestWlanQtUtils)
--- a/wlanutilities/wlanqtutilities/ut/t_wlanqtutils/testwlanqtutils.h	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,97 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* This is the header file for testing Wlan Qt Utilities library.
-*/
-
-#ifndef TESTWLANQTUTILS_H_
-#define TESTWLANQTUTILS_H_
-
-#include <QObject>
-
-class QSignalSpy;
-class WlanQtUtils;
-
-class TestWlanQtUtils: public QObject
-{
-    Q_OBJECT
-    
-private slots:
-
-    // Functions from QTest framework.
-    void initTestCase();
-    void cleanupTestCase();
-    void init();
-    void cleanup();
-
-    // Test functions for public interface.
-    void testAvailableWlanAps();
-    void testAvailableWlanApsWithIaps();
-    void testAvailableWlanApsSequence();
-
-    void testCreateWlanIapOk();
-    
-    void testConnectIapOk();
-    void testConnectIapErr();
-    
-    void testDisconnectIapOk();
-
-    void testIapFound();
-    void testIapNotFound();
-    
-    void testConnectedWlanIdFound();
-    void testConnectedWlanIdFoundConstructor();
-    void testConnectedWlanIdNotFound();
-
-    void testScanWlans();
-    
-    void testWlanNetworkOpened();
-    void testWlanNetworkClosed();
-    
-    // Test functions for private implementation (tested via public interface)
-    void testConnectionTestPass();
-    void testConnectionTestFail();
-    
-private:
-    
-    // Helper functions, that is, sub test cases.
-    void subTestSignalWaitAndTake(QSignalSpy *spy, QList<QVariant> *arguments);
-    void subTestLoadCommsDatFile(QString newCommsdatFilename);
-    void subTestNewWlanQtUtils();
-
-    // Member variables.
-    WlanQtUtils *wlanQtUtils_;
-    QSignalSpy *signalScanReady_;
-    QSignalSpy *signalWlanNetworkOpened_;
-    QSignalSpy *signalWlanNetworkClosed_;
-    
-    /* Default CommsDat file name
-    SNAP ID=3: Internet:
-        IAP ID = 1: packet data 1
-        IAP ID = 3: packet data 2
-        IAP ID = 4: packet data 3
-        IAP ID = 5: WLAN IAP 1, EWlanSecModeOpen
-        IAP ID = 6: WLAN IAP 2, EWlanSecModeWep, w2key
-        IAP ID = 7: WLAN IAP 3, EWlanSecModeWpa, wlan3key
-    SNAP ID = 4: Multimedia msg.
-    SNAP ID = 5: WAP services
-    SNAP ID = 6: My Snap:
-        IAP ID = 8: Home WLAN, EWlanSecModeOpen
-        IAP ID = 9: Streaming
-     */
-    static const QString commsDatDefault_;
-};
-
-#endif /* TESTWLANQTUTILS_H_ */
-
--- a/wlanutilities/wlanqtutilities/wst/run_wst.bat	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,173 +0,0 @@
-::=============================================================================
-:: Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-:: All rights reserved.
-:: This component and the accompanying materials are made available
-:: under the terms of "Eclipse Public License v1.0"
-:: which accompanies this distribution, and is available
-:: at the URL "http://www.eclipse.org/legal/epl-v10.html".
-::
-:: Initial Contributors:
-:: Nokia Corporation - initial contribution.
-::
-:: Contributors:
-::
-:: Description:
-::
-::=============================================================================
-
-:: Script(s) uses following environment settings:
-:: - CD
-:: - DATE
-:: - TIME
-:: - TEMP
-
-
-::-----------------------------------------------------------------------------
-:: Do the preparations:
-:: - Don't show the commands
-:: - Use local parameters -- don't pollute the global one
-:: - Dim the lights for time of script execution
-:: - Store the current working directory
-::-----------------------------------------------------------------------------
-
-@echo off
-echo *** RUN_WST: START:
-setlocal
-color 08
-pushd .
-if not exist run_wst.bat goto INVALID_DIR
-
-
-::-----------------------------------------------------------------------------
-:: Set the local variables
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: SET VARIABLES:
-set wst_root_dir=%cd%
-set wst_log_dir=%wst_root_dir%\wst_log
-set wst_report_dir=%wst_root_dir%\wst_report
-set log_file=%wst_log_dir%\wst_log.txt
-set build_script=%wst_root_dir%\wst_script\wst_make.bat
-set epoc_commsdat_dir=\epoc32\winscw\c\private\10202be9\persists
-if not exist %epoc_commsdat_dir% goto INVALID_DIR
-set epoc_backup_dir=%epoc_commsdat_dir%\backup
-set ut_commsdat_dir=%wst_root_dir%\..\ut\context\commsdat_files
-if not exist %ut_commsdat_dir% goto INVALID_DIR
-set ut_commsdat_file_default=%ut_commsdat_dir%\default.cre
-if not exist %ut_commsdat_file_default% goto INVALID_DIR
-set ut_commsdat_files=%ut_commsdat_dir%\*.cre
-if not exist %ut_commsdat_files% goto INVALID_DIR
-
-
-::-----------------------------------------------------------------------------
-:: Copy commsdat file to emulator directory and also to backup directory
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: COPY FILES:
-copy %ut_commsdat_file_default% %epoc_commsdat_dir%\cccccc00.cre /y
-if not exist %epoc_backup_dir% mkdir %epoc_backup_dir%
-copy %ut_commsdat_files% %epoc_backup_dir% /y
-
-
-::-----------------------------------------------------------------------------
-:: Check that script exists
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: SOME CHECKS:
-if not exist %build_script% goto INVALID_DIR
-:: Create output directory if it does not exist
-if not exist %wst_log_dir% mkdir %wst_log_dir%
-if not exist %wst_report_dir% mkdir %wst_report_dir%
-:: Create log file
-echo *** WST_LOG: BEGIN *** > %log_file%
-
-
-::-----------------------------------------------------------------------------
-:: Check parameters
-::-----------------------------------------------------------------------------
-
-set command=ERROR
-if [%1]==[] set command=CLEAN_OLD_FILES COMPILE_WLANQTUTILS COMPILE_TEST_CASES RUN_TEST_CASES GENERATE_REPORTS SHOW_RESULTS
-if [%1]==[CLEAN_OLD] set command=CLEAN_OLD_FILES
-if [%1]==[WLANQTUTILS] set command=COMPILE_WLANQTUTILS
-if [%1]==[CASES] set command=COMPILE_TEST_CASES
-if [%1]==[RUN] set command=RUN_TEST_CASES
-if [%1]==[REPORTS] set command=GENERATE_REPORTS
-if [%1]==[RESULTS] set command=SHOW_RESULTS
-if [%1]==[BROWSE] set command=START_BROWSER
-if [%1]==[/?] goto HELP
-if [%1]==[HELP] goto HELP
-if [%1]==[/h] goto HELP
-if [%1]==[-h] goto HELP
-
-::-----------------------------------------------------------------------------
-:PARSE_COMMANDS
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: COMMAND: %command%
-echo *** RUN_WST: CALL SCRIPT:
-for %%i IN ( %command% ) DO (
-    call %build_script% %wst_root_dir% wst_log.txt %%i
-    for /f "tokens=3 delims= " %%x in ('find /C " Error " %log_file%') do (
-        if not [%%x]==[0] goto ERROR
-    )
-)
-
-goto THE_END
-
-
-::-----------------------------------------------------------------------------
-:INVALID_DIR
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: INVALID DIR:
-echo *** Test script sub-script not found!
-echo *** Please be sure to run the script in same directory,
-echo *** i.e. .\run_wst.bat , and NOT .\wst\run_wst.bat
-
-goto THE_END
-
-
-::-----------------------------------------------------------------------------
-:ERROR
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: ERROR:
-color 48
-echo Error in compilation:
-findstr /C:" Error " < %log_file%
-echo.
-Echo Quitting WST.
-
-goto THE_END
-
-
-::-----------------------------------------------------------------------------
-:HELP
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: HELP:
-echo Run Wlan Qt Utilities Workstation Testing
-echo.
-echo RUN_WST [param]
-echo.
-echo   param
-echo     [none]  - Do all, from CLEAN_OLD to RESULTS
-echo.
-echo     CLEAN_OLD - Clean metrics and other generated files
-echo     WLANQTUTILS - Build only Wlan Qt Utilities components
-echo     CASES   - Build only Tester components
-echo     RUN     - Run Tester
-echo     REPORTS - Generate reports
-echo     RESULTS - Show results
-echo     BROWSE  - Start browser
-echo.
-
-
-::-----------------------------------------------------------------------------
-:THE_END
-::-----------------------------------------------------------------------------
-
-echo *** RUN_WST: END:
-color
-popd
--- a/wlanutilities/wlanqtutilities/wst/wst_script/wst_make.bat	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,199 +0,0 @@
-::=============================================================================
-:: Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-:: All rights reserved.
-:: This component and the accompanying materials are made available
-:: under the terms of "Eclipse Public License v1.0"
-:: which accompanies this distribution, and is available
-:: at the URL "http://www.eclipse.org/legal/epl-v10.html".
-::
-:: Initial Contributors:
-:: Nokia Corporation - initial contribution.
-::
-:: Contributors:
-::
-:: Description:
-::
-::=============================================================================
-::
-:: Following commands are implemented:
-:: - CLEAN_OLD_FILES
-:: - COMPILE_WLANQTUTILS
-:: - COMPILE_TEST_CASES
-:: - RUN_TEST_CASES
-:: - GENERATE_REPORTS
-:: - SHOW_RESULTS
-:: - START_BROWSER
-::=============================================================================
-
-::-----------------------------------------------------------------------------
-:: Do the preparations:
-:: - Don't show the commands
-:: - Use local parameters -- don't pollute the global one
-::-----------------------------------------------------------------------------
-@echo off
-
-echo *** WST_MAKE: START:
-setlocal
-
-::-----------------------------------------------------------------------------
-:: Check input
-:: 
-:: Parameters that are required:
-:: 1) wst_root_dir
-:: 2) log_file_name
-:: 3) the command
-::-----------------------------------------------------------------------------
-
-:: (1)
-if not exist %1 goto ERROR
-if [%1]==[] goto ERROR
-set wst_root_dir=%1
-set wst_log_dir=%1\wst_log
-set wst_report_dir=%1\wst_report
-set wlanqtutils_root_dir=%1\..
-set wlanqtutils_test_dir=%1\..\ut\t_wlanqtutils
-
-:: (2)
-if [%2]==[] goto ERROR
-set log_file_name=%2
-set log_file=%wst_log_dir%\%log_file_name%
-if not exist %log_file% goto ERROR
-echo *** DATE AND TIME: %date%, %time% >> %log_file%
-echo *** WST_MAKE: INFO: Wlan Qt Utilities root dir: %wlanqtutils_root_dir%
-echo *** WST_MAKE: INFO: Wlan Qt Utilities test dir: %wlanqtutils_test_dir%
-echo *** WST_MAKE: INFO: WST log dir:             %wst_log_dir%
-echo *** WST_MAKE: INFO: WST log file:            %log_file%
-
-:: (3)
-if [%3]==[] goto ERROR
-goto %3
-
-:: Error if label not found.
-goto ERROR
-
-::-----------------------------------------------------------------------------
-:CLEAN_OLD_FILES
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: CLEAN_OLD_FILES:
-echo *** WST_LOG: CLEAN_OLD_FILES >> %log_file%
-
-move %wst_log_dir%\%log_file_name% %wst_root_dir%
-del /F /S /Q %wst_log_dir%\*
-del /F /S /Q %wst_report_dir%\*
-rmdir /S /Q %wst_log_dir%\CMTHTML
-rmdir /S /Q %wst_log_dir%\CTCHTML
-move %wst_root_dir%\%log_file_name% %wst_log_dir% 
-del \epoc32\winscw\c\data\wlanqtutils_qtest_log.txt
-
-goto THE_END
-
-::-----------------------------------------------------------------------------
-:COMPILE_WLANQTUTILS
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: COMPILE_WLANQTUTILS:
-echo *** WST_LOG: COMPILE_WLANQTUTILS >> %log_file%
-
-cd %wlanqtutils_root_dir%
-call qmake >> %log_file% 2>&1
-call bldmake bldfiles >> %log_file% 2>&1
-call abld reallyclean winscw >> %log_file% 2>&1
-call abld build winscw udeb >> %log_file% 2>&1
-
-goto THE_END
-
-::-----------------------------------------------------------------------------
-:COMPILE_TEST_CASES
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: COMPILE_TEST_CASES:
-echo *** WST_LOG: COMPILE_TEST_CASES >> %log_file%
-
-cd %wlanqtutils_test_dir%
-call qmake "CONFIG += coverage_test" >> %log_file% 2>&1
-call bldmake bldfiles >> %log_file% 2>&1
-call abld reallyclean winscw >> %log_file% 2>&1
-:: Call CTC instrumentation script. Source directories hard coded, because NO_EXCLUDE does not like % characters...
-call ctcwrap -C EXCLUDE=* -C NO_EXCLUDE+..\..\base\src\*.cpp,..\..\wrapper\src\*.cpp -n %wst_log_dir%\MON.sym -i m -v abld build winscw udeb >> %log_file% 2>&1
-
-goto THE_END
-
-::-----------------------------------------------------------------------------
-:RUN_TEST_CASES
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: RUN_TEST_CASES:
-echo *** WST_LOG: RUN_TEST_CASES >> %log_file%
-
-call \epoc32\release\winscw\udeb\t_wlanqtutils.exe -o c:\data\wlanqtutils_qtest_log.txt
-
-goto THE_END
-
-::-----------------------------------------------------------------------------
-:GENERATE_REPORTS
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: GENERATE_REPORTS:
-echo *** WST_LOG: GENERATE_REPORTS >> %log_file%
-
-cd %wst_log_dir%
-
-call ctcpost -p %wst_log_dir%\ctc_coverage.txt
-call ctc2html -nsb -i %wst_log_dir%\ctc_coverage.txt
-
-call dir /s /b %wlanqtutils_root_dir%\*.cpp > %wst_log_dir%\raw_filelist.txt
-
-call findstr /I /V "moc_" %wst_log_dir%\raw_filelist.txt > %wst_log_dir%\filelist.txt
-call cmt -f %wst_log_dir%\filelist.txt -o cmt_metrics.txt  >> %log_file%
-call cmt2html -nsb -i cmt_metrics.txt
-
-:: Clean up temp files
-call del %wst_log_dir%\*filelist.txt
-
-echo *** WST_MAKE: COPY LOGS:
-call copy %TEMP%\epocwind.out %wst_log_dir%\epocwind.txt
-
-goto THE_END
-
-::-----------------------------------------------------------------------------
-:SHOW_RESULTS
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: SHOW_RESULTS:
-echo *** WST_LOG: SHOW_RESULTS >> %log_file%
-echo *** Module tests:
-call findstr /C:"Totals: " \epoc32\winscw\c\data\wlanqtutils_qtest_log.txt
-echo *** Coverage:
-call findstr /C:"Number of " %wst_log_dir%\ctc_coverage.txt
-call findstr /C:"TER       " %wst_log_dir%\ctc_coverage.txt
-
-goto THE_END 
-
-::-----------------------------------------------------------------------------
-:START_BROWSER
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: START_BROWSER:
-echo *** WST_LOG: START_BROWSER >> %log_file%
-echo.
-echo Starting up browser to show the results
-
-start %wst_root_dir%\wst_report\coverage.html
-
-goto THE_END
-
-::-----------------------------------------------------------------------------
-:ERROR
-::-----------------------------------------------------------------------------
-
-echo *** WST_MAKE: ERROR:
-endlocal
-echo wst_make *** Error (unknown parameter) >> %log_file%
-
-goto THE_END
-
-::-----------------------------------------------------------------------------
-:THE_END
-::-----------------------------------------------------------------------------
-echo *** WST_MAKE: END:
--- a/wlanutilities/wlansettingsui/group/bld.inf	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-/*
-* Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies). 
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  Build information for the wlansettingsui
-*
-*/
-
-
-#include <platform_paths.hrh>
-
-PRJ_EXPORTS
-
-PRJ_PLATFORMS
-DEFAULT
-
-PRJ_EXPORTS
-
-PRJ_MMPFILES
--- a/wlanutilities/wlansniffer/inc/wlansniffer.h	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#ifndef WLANSNIFFER_H
-#define WLANSNIFFER_H
-
-#include <HbApplication>
-
-class QTranslator;
-class WlanSnifferMainWindow;
-class WlanQtUtils;
-
-class WlanSniffer : public HbApplication
-    {
-    Q_OBJECT
-    
-public:
-    WlanSniffer(int argc, char* argv[]);
-    virtual ~WlanSniffer();
-    
-    /**
-     * This function (from QObject) handles timers. Initiates a new WLAN scan.
-     * 
-     * @param Unused.
-     */
-    void timerEvent(QTimerEvent *event);
-
-    WlanQtUtils *wlanQtUtils() const;
-    
-private slots:
-    void exitApplication();
-    
-private:
-    QTranslator* mTranslator;
-    WlanQtUtils *mWlanQtUtils;
-    // Todo: why does the example use QSharedPointer for these?
-    WlanSnifferMainWindow *mMainWindow; // owned
-    int mScanTimerId;
-    };
-
-#endif
-
-// End of File
--- a/wlanutilities/wlansniffer/inc/wlansnifferlistview.h	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#ifndef WLANSNIFFERLISTVIEW_H
-#define WLANSNIFFERLISTVIEW_H
-
-#include <HbView>
-#include "wlanqtutilscommon.h"
-
-class HbListWidget;
-class HbListWidgetItem;
-class HbLabel;
-class WlanSniffer;
-class WlanQtUtilsWlanIap;
-class WlanQtUtilsWlanAp;
-
-class WlanSnifferListView : public HbView
-    {
-    Q_OBJECT
-    
-public:
-    WlanSnifferListView(WlanSniffer *appRef);
-    virtual ~WlanSnifferListView();
-    
-    void update();
-    void updateConnectionOpened(int iapId);
-    void updateConnectionClosed(int iapId);
-
-signals:
-    void detailsTriggered(int);
-    void completeServiceTriggered();
-
-public slots:
-    void handleContextMenuClosed();
-
-private slots:
-    void handleListItemActivated(HbListWidgetItem *item);
-    void handleListItemLongPressed(HbListWidgetItem *item, const QPointF &coords);
-    void handleListItemDisconnect();
-    void handleDisconnect();
-    
-private:
-    QString signalStrengthIconChoose(int signalStrength, WlanQtUtilsWlanSecMode secMode);
-    HbListWidgetItem *wlanListItemIapCreate(const WlanQtUtilsWlanIap *iap);
-    HbListWidgetItem *wlanListItemApCreate(const WlanQtUtilsWlanAp *ap);
-    
-private:
-    HbListWidget *mWlanList;
-    HbLabel *mStatusLabel;
-    WlanSniffer *mAppRef;
-    int mConnectingIapId;
-    /*!
-     * Data identifying the network for which the context menu has been
-     * opened: WlanQtUtilsAp class, or int IAP ID
-     */
-    QVariant mContextMenuData;
-    HbMenu *mContextMenu; //!< Context menu reference, if one is open
-    };
-
-#endif
--- a/wlanutilities/wlansniffer/inc/wlansniffermainwindow.h	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#ifndef WLANSNIFFERMAINWINDOW_H
-#define WLANSNIFFERMAINWINDOW_H
-
-#include <QObject>
-
-#include <HbMainWindow>
-
-class HbAction;
-class WlanSnifferListView;
-class WlanSniffer;
-class WlanSnifferService;
-
-class WlanSnifferMainWindow : public HbMainWindow
-    {
-    Q_OBJECT
-
-public:
-    WlanSnifferMainWindow(WlanSniffer *appRef);
-    virtual ~WlanSnifferMainWindow();
-
-public slots:
-    void toListView();
-    void toDetailsView(int iapId);
-    
-    void updateListView();
-    void updateListViewConnectionOpened(int iapId);
-    void updateListViewConnectionClosed(int iapId);
-
-signals:
-    void exitTriggered();
-
-private slots:
-    void completeService();
-
-private:
-    // Methods to add views to the main window
-    void addListView();
-    
-private:
-    WlanSniffer *mAppRef;
-    WlanSnifferListView *mListView;
-    WlanSnifferService* mService;
-    };
-
-#endif
--- a/wlanutilities/wlansniffer/inc/wlansnifferservice.h	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0""
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  
-*
-*/
-
-#ifndef WLANSNIFFERSERVICE_H
-#define WLANSNIFFERSERVICE_H
-
-#include <xqserviceprovider.h>
-
-class WlanSnifferService: public XQServiceProvider
-{
-    Q_OBJECT
-
-public:
-    WlanSnifferService( QObject *parent = 0 );
-    ~WlanSnifferService();
-    void complete();
-
-signals:
-    void toListView();
-    void exitTriggered();
-    
-public slots:
-    void listView();
-    
-private:
-    int mAsyncRequestIndex;
-};
-
-#endif // WLANSNIFFERSERVICE_H
--- a/wlanutilities/wlansniffer/res/qgn_indi_wifi_protected_add.svg	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" baseProfile="tiny" height="13.003px" version="1.1" viewBox="0 0 13 13.003" width="13px" x="0px" y="0px">
-<g>
-<path d="M12.482,4.687c-0.107-0.278-0.295-1.325-1.732-2.848c0.092-0.449,0.078-1.618-1.25-1.818   C7.719-0.123,7.047,0.846,6.701,0.958C6.494,1.024,3.891,1.705,2.582,3.59C2.203,4.135,1.438,5.471,1.764,7.733   C1.596,7.782,0.938,7.954,0.625,8.096c-0.16,0.072-0.109,0.171-0.109,0.171s0.25,1.282,1.779,2.875   c-0.043,0.215-0.232,1.47,1.229,1.855L3.535,13c0,0,1.527,0.111,2.734-1.023c4.184-1.256,5.391-3.733,4.965-6.761   c0.211-0.064,0.781-0.261,1.188-0.386C12.422,4.83,12.5,4.752,12.482,4.687z M10.68,4.868c1.133,5.54-4.666,6.664-4.666,6.664   s-1.17,1.095-2.362,0.971c-1.229-0.204-0.817-1.52-0.817-1.52s-1.396-1.45-1.738-2.531c0.248-0.083,1.136-0.329,1.136-0.329   S1.813,5.549,2.992,3.876c1.867-2.265,3.57-2.171,4.326-2.721C7.723,0.861,8.188,0.439,9.46,0.52   c0.292,0.046,1.04,0.248,0.749,1.474c0.9,0.883,1.516,2.047,1.685,2.496C11.71,4.548,10.703,4.877,10.68,4.868z" fill="#231F20"/>
-<path d="M3.301,8.513c-0.02-0.011-0.926,0.239-0.94,0.254c0.64,1.751,2.265,2.595,2.895,2.406   c0.792-0.499,1.167-2.671,0.832-3.564C5.699,7.733,4.891,7.924,4.894,7.952C4.359,5.455,6.204,3.487,6.195,3.485   C6.195,3.485,2.406,4.518,3.301,8.513z" fill="#231F20"/>
-<rect fill="none" height="13" width="13"/>
-<path d="M9.738,4.39c0.02,0.011,0.926-0.239,0.94-0.254c-0.64-1.751-2.265-2.595-2.895-2.406   C6.992,2.229,6.617,4.4,6.952,5.294C7.34,5.169,8.148,4.979,8.146,4.95C8.68,7.447,6.835,9.415,6.844,9.417   C6.844,9.417,10.633,8.385,9.738,4.39z" fill="#231F20"/>
-</g>
-</svg>
--- a/wlanutilities/wlansniffer/res/qgn_indi_wlan_secure_network_add.svg	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" baseProfile="tiny" height="13px" version="1.1" viewBox="0 0 13 13" width="13px" x="0px" y="0px">
-<g>
-<rect fill="none" height="13" width="13"/>
-<path d="M1.095,3.063c0,1.419,0.777,2.466,0.802,2.501C2.024,5.478,2.24,5.328,2.368,5.242C2.346,5.207,1.665,4.244,1.665,3.063   c0-1.277,0.681-2.144,0.703-2.179C2.24,0.796,2.024,0.647,1.897,0.561C1.875,0.596,1.095,1.687,1.095,3.063z"/>
-<path d="M2.609,3.063c0,0.943,0.515,1.61,0.539,1.646c0.128-0.087,0.344-0.235,0.473-0.322c-0.026-0.037-0.44-0.658-0.44-1.323   c0-0.742,0.414-1.289,0.439-1.323C3.492,1.653,3.276,1.505,3.148,1.416C3.124,1.453,2.609,2.104,2.609,3.063z"/>
-<path d="M9.697,3.061c0-1.418-0.777-2.465-0.803-2.5C8.768,0.647,8.551,0.796,8.424,0.883C8.447,0.917,9.127,1.88,9.127,3.061   c0,1.278-0.68,2.145-0.703,2.179c0.127,0.089,0.344,0.238,0.471,0.325C8.918,5.529,9.697,4.438,9.697,3.061z"/>
-<path d="M8.182,3.061c0-0.942-0.514-1.61-0.539-1.645C7.518,1.502,7.299,1.651,7.17,1.737c0.027,0.037,0.441,0.658,0.441,1.323   c0,0.743-0.414,1.289-0.439,1.324C7.299,4.471,7.518,4.62,7.643,4.709C7.668,4.672,8.182,4.021,8.182,3.061z"/>
-<path d="M6,8.426c0,0,0.278,0,0.551,0V8.42c0-0.248,0.051-0.483,0.134-0.702l-0.868-3.47C6.31,4.073,6.664,3.616,6.664,3.063   c0-0.701-0.566-1.269-1.268-1.269c-0.703,0-1.27,0.567-1.27,1.269c0,0.552,0.354,1.008,0.846,1.184L3.852,8.731h-1.63V10H6V8.426z"/>
-<path d="M11.545,9.426V8.42c0-0.553-0.447-1-1-1H8.551c-0.553,0-1,0.447-1,1v1.006H7V13h5V9.426H11.545z M10,12H9v-1.574h1V12z    M10.525,9.42H8.572c0-0.85-0.045-0.977,0.57-0.996h0.811C10.57,8.443,10.525,8.57,10.525,9.42z"/>
-</g>
-</svg>
--- a/wlanutilities/wlansniffer/res/qgn_indi_wlan_signal_good_add.svg	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" baseProfile="tiny" height="13" version="1.1" viewBox="0 0 13 13" width="13">
-<rect fill="none" height="13" width="13"/>
-<g>
-<rect height="11" width="3" x="10" y="2"/>
-<rect height="6.977" width="3" x="6.01" y="6.023"/>
-<rect height="2.976" width="3" x="2.021" y="10.024"/>
-</g>
-</svg>
--- a/wlanutilities/wlansniffer/res/qgn_indi_wlan_signal_low_add.svg	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" baseProfile="tiny" height="13" version="1.1" viewBox="0 0 13 13" width="13">
-<rect fill="none" height="13" width="13"/>
-<g>
-<rect height="2.976" width="3" x="2.021" y="10.024"/>
-<polygon points="10,12.05 13,9.05 13,7.051 10,10.05  "/>
-<polygon points="10,6.049 10,8.032 13,5.032 13,3.049  "/>
-<polygon points="10,2 10,4.029 12.027,2  "/>
-<polygon points="13,13 13,11.067 11.066,13  "/>
-<polygon points="6.01,10.036 6.01,12.021 9.01,9.021 9.01,7.036  "/>
-<polygon points="6.01,6.023 6.01,8.017 8.004,6.023  "/>
-<polygon points="9.01,13 9.01,11.039 7.049,13  "/>
-</g>
-</svg>
--- a/wlanutilities/wlansniffer/res/qgn_indi_wlan_signal_med_add.svg	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" baseProfile="tiny" height="13" version="1.1" viewBox="0 0 13 13" width="13">
-<rect fill="none" height="13" width="13"/>
-<g>
-<rect height="6.977" width="3" x="6.01" y="6.023"/>
-<rect height="2.975" width="3" x="2.021" y="10.025"/>
-<polygon points="10,12.051 13,9.051 13,7.051 10,10.051  "/>
-<polygon points="10,6.047 10,8.033 13,5.033 13,3.047  "/>
-<polygon points="13,13 13,11.068 11.066,13  "/>
-<polygon points="10,2 10,4.029 12.027,2  "/>
-</g>
-</svg>
--- a/wlanutilities/wlansniffer/res/qgn_prop_cmon_wlan_conn.svg	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" baseProfile="tiny" height="16" version="1.1" viewBox="0 0 16.003 16" width="16.003">
-<path d="M15.711,9.293l-3.958-3.958C11.912,4.792,12,4.228,12,3.65c0-2.023-1.086-3.442-1.119-3.492  c-0.049,0.035-0.469,0.322-0.658,0.452c0.033,0.048,0.979,1.267,0.979,3.04c0,0.465-0.07,0.919-0.189,1.359  c-0.133-0.001-0.265,0.014-0.391,0.066C10.246,5.231,10.004,5.596,10.004,6c0,0,0,0.5,0,1H7.618L7.282,5.204  c0.451-0.372,0.745-0.927,0.745-1.556c0-1.116-0.909-2.024-2.025-2.024c-1.118,0-2.027,0.908-2.027,2.024  c0,0.623,0.29,1.175,0.734,1.547L4.005,9H2.003v1c-0.404,0-0.769,0.244-0.923,0.617c-0.155,0.374-0.07,0.804,0.217,1.09l4,4  c0.285,0.286,0.716,0.372,1.09,0.217c0.373-0.155,0.617-0.52,0.617-0.924c0,0,0-0.5,0-1c1.389,0,5,0,5,0  c0.154,0,0.309-0.036,0.447-0.105c0.576-0.288,1.553-1.223,1.553-2.895h1c0.404,0,0.768-0.243,0.924-0.617  C16.082,10.009,15.996,9.579,15.711,9.293z"/>
-<path d="M8.477,5.494c0.178,0.124,0.482,0.331,0.658,0.452c0.033-0.049,0.75-1.038,0.75-2.296c0-1.32-0.717-2.249-0.75-2.297  c-0.049,0.035-0.468,0.32-0.658,0.451C8.51,1.854,9.089,2.674,9.089,3.65C9.089,4.768,8.51,5.446,8.477,5.494z"/>
-<path d="M3.523,1.806C3.346,1.682,3.042,1.475,2.865,1.354c-0.033,0.049-0.75,1.038-0.75,2.296c0,1.32,0.717,2.249,0.75,2.297  c0.049-0.035,0.469-0.32,0.658-0.451C3.49,5.445,2.911,4.626,2.911,3.649C2.911,2.532,3.49,1.854,3.523,1.806z"/>
-<path d="M1.119,7.141C1.297,7.018,1.6,6.812,1.777,6.69c-0.033-0.05-0.98-1.282-0.98-3.04c0-1.727,0.947-2.992,0.981-3.04  C1.6,0.487,1.298,0.282,1.121,0.158C1.088,0.208,0,1.58,0,3.65S1.086,7.09,1.119,7.141z"/>
-<path d="M11.283,5.187l0.185,0.077c0.153-0.519,0.233-1.061,0.233-1.613c0-1.098-0.312-2.155-0.9-3.071l-0.163,0.109  c0.565,0.887,0.864,1.907,0.864,2.962C11.502,4.175,11.428,4.691,11.283,5.187z" fill="#BFBAA9"/>
-<path d="M9.054,5.526c-0.055-0.036-0.11-0.075-0.165-0.11C9.216,4.881,9.387,4.274,9.387,3.65  c0-0.626-0.171-1.233-0.498-1.766l0.165-0.111C9.401,2.336,9.586,2.982,9.586,3.65S9.401,4.961,9.054,5.526L9.054,5.526z" fill="#BFBAA9"/>
-<path d="M2.947,5.526c-0.35-0.567-0.533-1.21-0.533-1.876s0.184-1.312,0.533-1.877L3.11,1.885  C2.782,2.42,2.611,3.025,2.611,3.65c0,0.624,0.172,1.23,0.499,1.766L2.947,5.526L2.947,5.526z" fill="#BFBAA9"/>
-<path d="M1.2,6.721C0.611,5.81,0.299,4.749,0.299,3.65c0-1.097,0.311-2.155,0.903-3.071l0.157,0.106l0.005,0.003  C0.794,1.576,0.497,2.597,0.497,3.65c0,1.053,0.297,2.071,0.865,2.961L1.2,6.721L1.2,6.721z" fill="#BFBAA9"/>
-<polygon fill="#FFFDFC" points="5.659,5.549 5.293,7.529 6.699,7.529 6.328,5.549 "/>
-<path d="M11.497,5.136c-0.06-0.034-0.122-0.056-0.187-0.076c-0.145,0.545-0.365,1.069-0.673,1.552  c0.054,0.036,0.106,0.074,0.16,0.109C11.116,6.229,11.346,5.694,11.497,5.136z" fill="#635E54"/>
-<path d="M6.001,5.674c0.118,0,0.231-0.016,0.344-0.035L5.991,3.75L5.643,5.638C5.759,5.658,5.878,5.674,6.001,5.674z  " fill="#BFBAA9"/>
-<path d="M7.162,10L6.6,7C6.239,7,6.003,7,6.003,7C5.567,7,5.421,7.181,5.349,7.229L4.837,10H3.003v1h6v-1H7.162z" fill="#635E54"/>
-<rect fill="none" height="16" width="16" x="0.003"/>
-<path d="M2.003,11l3.097,3.097l0.575-1.658c0,0,6.776,0.338,7.073-0.261c0.146-0.296,0.256-0.682,0.256-1.178H2.003z  " fill="#CFFFFF"/>
-<path d="M12.822,12H5.003v2l1,1v-2h6C12.004,13,12.533,12.728,12.822,12z" fill="#00CDFF"/>
-<path d="M14.214,9.21L11.004,6v2h-5c0,0-0.626,0.326-0.885,1.21H14.214z" fill="#CFFFFF"/>
-<path d="M5.185,9c-0.107,0.269-0.182,0.595-0.182,1h10l-1-1H5.185z" fill="#00CDFF"/>
-<path d="M6.001,4.674c-0.563,0-1.026-0.461-1.026-1.025s0.462-1.023,1.026-1.023c0.565,0,1.024,0.459,1.024,1.023  S6.566,4.674,6.001,4.674L6.001,4.674z" fill="#FFFDFC"/>
-</svg>
--- a/wlanutilities/wlansniffer/res/qgn_prop_wlan_bearer.svg	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg baseProfile="tiny" height="16px" version="1.1" viewBox="-0.877 -0.503 16 16" width="16px" x="0px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px">
-<g>
-<rect fill="none" height="16" width="16" x="-0.877" y="-0.503"/>
-<path d="M4.015,2.944L5.66,2.071C5.65,2.075,7.654,1.263,9.368,1.708c1.656,0.432,2.648,1.334,3.603,2.805   c0.953,1.471,1.178,4.049,0.547,5.422s-1.052,1.695-1.515,2.131l-2.15,1.555L4.015,2.944z" fill="url(#SVGID_1_)"/>
-<g>
-<path d="M12.374,8.62c0.164,3.301-2.211,5.867-5.306,5.732c-3.096-0.133-5.736-2.92-5.9-6.223    C1.004,4.829,3.379,2.261,6.475,2.394C9.569,2.53,12.21,5.319,12.374,8.62z" fill="#CEE1EF"/>
-</g>
-<path d="M8.194,6.822c0.768,1.117-0.044,2.279-0.05,2.313L8.697,9.7c0.416-0.553,0.951-1.979-0.033-3.399   L8.194,6.822z M5.411,6.518L4.938,5.831C3.96,6.909,4.504,8.523,4.921,9.221l0.551-0.372C5.466,8.819,4.647,7.369,5.411,6.518z    M6.716,6.864c-0.307-0.04-0.201,0.437-0.195,0.462L5.338,12.08l2.813,0.489L6.95,7.4C6.956,7.377,7.058,6.924,6.716,6.864z" fill="#496DA2"/>
-<defs>
-<linearGradient gradientTransform="matrix(1 0 0 -1 0.1577 14.8145)" gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="7.0313" x2="11.3636" y1="10.8467" y2="5.6805">
-<stop offset="0" style="stop-color:#CEE1EF"/>
-<stop offset="0.5" style="stop-color:#A2C2DD"/>
-<stop offset="1" style="stop-color:#496DA2"/>
-</linearGradient>
-</defs>
-</g>
-</svg>
--- a/wlanutilities/wlansniffer/res/service_conf.xml	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<service name="com.nokia.services.wlansniffer"  filepath="\sf\mw\wirelessacc\wlanutilities\wlansniffer" >
-  <description>WLAN Sniffer</description>
-  <interface name="list" version="1.0" capabilities="">
-    <description>List View</description>
-  </interface>
-</service>
--- a/wlanutilities/wlansniffer/res/wlansniffer.qrc	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-<RCC>
-    <qresource prefix="/docml" >
-        <file>wlansnifferlistview.docml</file>
-    </qresource>
-    <qresource prefix="/icon" >
-        <!-- Obsolete, but still in use somewhere. TO BE REMOVED!!! -->
-        <file>qgn_indi_wifi_protected_add.svg</file>
-        <file>qgn_indi_wlan_secure_network_add.svg</file>
-        <file>qgn_indi_wlan_signal_good_add.svg</file>
-        <file>qgn_indi_wlan_signal_low_add.svg</file>
-        <file>qgn_indi_wlan_signal_med_add.svg</file>
-        <file>qgn_prop_cmon_wlan_conn.svg</file>
-        <file>qgn_prop_wlan_bearer.svg</file>
-    </qresource>
-</RCC>
--- a/wlanutilities/wlansniffer/res/wlansnifferlistview.docml	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<hbdocument version="0.8">
-    <object name="addWlanAction" type="HbAction">
-        <string locid="txt_occ_opt_add_new_wlan" name="text" value="Add new WLAN"/>
-    </object>
-    <object name="switchWlanAction" type="HbAction">
-        <string locid="txt_occ_opt_switch_wlan_off" name="text" value="Switch WLAN off"/>
-    </object>
-    <object name="settingsAction" type="HbAction">
-        <string locid="txt_common_opt_settings" name="text" value="Settings"/>
-    </object>
-    <object name="hideAction" type="HbAction">
-        <string locid="txt_occ_opt_hide_unknown_networks" name="text" value="Hide unknown networks"/>
-    </object>
-    <widget name="occ_list" type="HbView">
-        <widget name="content" role="HbView:widget" type="HbWidget">
-            <widget name="container" type="HbWidget">
-                <widget name="subTitle" type="HbGroupBox">
-                    <string locid="txt_occ_subhead_wireless_lan" name="titleText" value="Wireless LAN"/>
-                    <bool name="collapsable" value="FALSE"/>
-                </widget>
-                <widget name="statusContainer" type="HbWidget">
-                    <widget name="statusLabel" type="HbLabel">
-                        <enums name="textWrapping" value="TextWordWrap"/>
-                        <real name="z" value="5"/>
-                        <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Minimum" verticalStretch="0"/>
-                        <sizehint height="6un" type="PREFERRED" width="13.8806un"/>
-                        <sizehint height="6un" type="MINIMUM" width="3.83582un"/>
-                        <string locid="txt_occ_grid_not_connected" name="plainText" value="Not connected"/>
-                        <enums name="logicalFont" value="FontPrimary"/>
-                        <fontspec name="fontSpec" role="Primary" textpaneheight="-1"/>
-                    </widget>
-                    <widget name="wlanLabel" type="HbLabel">
-                        <real name="z" value="2"/>
-                        <sizepolicy horizontalPolicy="Fixed" horizontalStretch="0" verticalPolicy="Minimum" verticalStretch="0"/>
-                        <sizehint height="6un" type="PREFERRED" width="10un"/>
-                        <sizehint height="6un" type="MINIMUM" width="3.83582un"/>
-                        <sizehint height="2504062.01158un" type="MAXIMUM" width="2504062.01158un"/>
-                        <string locid="txt_occ_grid_wireless_lan" name="plainText" value="WLAN"/>
-                        <fontspec name="fontSpec" role="Primary" textpaneheight="26.8"/>
-                    </widget>
-                    <widget name="wlanButton" type="HbPushButton">
-                        <real name="z" value="3"/>
-                        <sizepolicy horizontalPolicy="Fixed" horizontalStretch="0" verticalPolicy="Minimum" verticalStretch="0"/>
-                        <sizehint height="6un" type="PREFERRED" width="10un"/>
-                        <sizehint height="6un" type="MINIMUM" width="4.73134un"/>
-                        <string locid="txt_occ_button_on" name="text" value="On"/>
-                        <fontspec name="fontSpec" role="Primary" textpaneheight="26.8"/>
-                    </widget>
-                    <real name="z" value="0"/>
-                    <sizepolicy horizontalPolicy="Preferred" horizontalStretch="0" verticalPolicy="Minimum" verticalStretch="0"/>
-                    <sizehint height="10un" type="PREFERRED" width="52.08955un"/>
-                    <layout orientation="Horizontal" type="linear">
-                        <linearitem itemname="statusLabel"/>
-                        <linearitem itemname="wlanLabel"/>
-                        <linearitem itemname="wlanButton"/>
-                    </layout>
-                </widget>
-                <widget name="listWidget" type="HbListWidget">
-                    <real name="z" value="4"/>
-                    <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Expanding" verticalStretch="0"/>
-                    <sizehint height="23.28358un" type="PREFERRED" width="49.55224un"/>
-                    <sizehint height="1.6un" type="MINIMUM" width="0un"/>
-                    <sizehint height="2504062.01158un" type="MAXIMUM" width="2504062.01158un"/>
-                    <fontspec name="fontSpec" role="Primary" textpaneheight="26.8"/>
-                </widget>
-                <real name="z" value="0"/>
-                <sizehint height="586" type="PREFERRED" width="355"/>
-                <layout orientation="Vertical" spacing="0.89552un" type="linear">
-                    <linearitem itemname="subTitle"/>
-                    <linearitem itemname="statusContainer"/>
-                    <linearitem itemname="listWidget"/>
-                </layout>
-            </widget>
-            <real name="z" value="0"/>
-            <string name="windowTitle" value="Test"/>
-            <layout type="anchor">
-                <anchoritem dst="container" dstEdge="LEFT" spacing="-0.14925un" src="" srcEdge="LEFT"/>
-                <anchoritem dst="container" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
-            </layout>
-        </widget>
-        <widget name="viewMenu" role="HbView:menu" type="HbMenu">
-            <string name="title" value=""/>
-            <ref object="addWlanAction" role="HbMenu:addAction"/>
-            <ref object="switchWlanAction" role="HbMenu:addAction"/>
-            <ref object="settingsAction" role="HbMenu:addAction"/>
-            <ref object="hideAction" role="HbMenu:addAction"/>
-        </widget>
-        <string name="title" value="View"/>
-    </widget>
-    <section name="portrait">
-        <widget name="container" type="HbWidget">
-            <sizehint height="586" type="PREFERRED" width="355"/>
-        </widget>
-    </section>
-    <section name="landscape">
-        <widget name="container" type="HbWidget">
-            <sizehint height="308" type="PREFERRED" width="638"/>
-        </widget>
-    </section>
-    <metadata activeUIState="Common ui state" display="QHD portrait" unit="un">
-        <uistate name="Common ui state" sections="#common"/>
-        <uistate name="portrait" sections="#common portrait"/>
-        <uistate name="landscape" sections="#common landscape"/>
-    </metadata>
-</hbdocument>
--- a/wlanutilities/wlansniffer/rom/wlansniffer.iby	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#ifndef WLANSNIFFER_IBY
-#define WLANSNIFFER_IBY
-
-#include <bldvariant.hrh>
-
-#ifdef __PROTOCOL_WLAN
-
-file=ABI_DIR\BUILD_DIR\wlansniffer.exe PROGRAMS_DIR\wlansniffer.exe
-data=\epoc32\data\z\private\10003a3f\import\Apps\wlansniffer_reg.rsc	\private\10003a3f\import\apps\wlansniffer_reg.rsc
-data=\epoc32\data\z\resource\apps\wlansniffer.rsc \resource\apps\wlansniffer.rsc
-
-#endif // __PROTOCOL_WLAN
-
-#endif // WLANSNIFFER_IBY
--- a/wlanutilities/wlansniffer/rom/wlansniffer_resources.iby	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#ifndef WLANSNIFFER_RESOURCES_IBY
-#define WLANSNIFFER_RESOURCES_IBY
-
-#include <bldvariant.hrh>
-#include <data_caging_paths_for_iby.hrh> 
-
-#ifdef __PROTOCOL_WLAN
-
-data=DATAZ_/QT_TRANSLATIONS_DIR/wlansniffer.qm QT_TRANSLATIONS_DIR/wlansniffer.qm 
-
-#endif // __PROTOCOL_WLAN
-
-#endif // WLANSNIFFER_RESOURCES_IBY
--- a/wlanutilities/wlansniffer/src/main.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#ifdef WLANSNIFFER_SERVICETRACES    
-#include "xqservicelog.h"
-#endif
-
-#include "qsysteminfo.h"
-
-#include "wlansniffer.h"
-
-using namespace QtMobility;
-
-int main(int argc, char *argv[])
-{
-    // Check WLAN dynamic configuration & exit if WLAN is not enabled
-    QSystemInfo sysinfo;
-    if (!sysinfo.hasFeatureSupported(QSystemInfo::WlanFeature)) {
-        return -1;
-    }
-
-#ifdef WLANSNIFFER_SERVICETRACES    
-    qInstallMsgHandler(XQSERVICEMESSAGEHANDLER);
-#endif
-    
-    WlanSniffer app(argc, argv);
-
-    return app.exec();
-}
-
-// End of File
--- a/wlanutilities/wlansniffer/src/wlansniffer.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,117 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#include <QTranslator>
-#include <QLocale>
-
-#include "wlanqtutils.h"
-
-#include "wlansniffer.h"
-#include "wlansniffermainwindow.h"
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "wlansnifferTraces.h"
-#endif
-
-// Scan interval is 10 seconds
-const int scanTimerInterval = 10000;
-
-WlanSniffer::WlanSniffer(int argc, char* argv[]) :
-    HbApplication(argc, argv),
-    mWlanQtUtils(new WlanQtUtils())    
-{
-    OstTraceFunctionEntry0( WLANSNIFFER_WLANSNIFFER_ENTRY );
-    
-    // Start the first scan immediately so that results are available as
-    // soon as possible. Start also the timer for periodic scanning.
-    mWlanQtUtils->scanWlans();
-    mScanTimerId = startTimer(scanTimerInterval);
-
-    // Install localization
-    mTranslator = new QTranslator(this);
-    QString lang = QLocale::system().name(); 
-    QString path = "Z:/resource/qt/translations/"; 
-    mTranslator->load("wlansniffer_" + lang, path); 
-    qApp->installTranslator(mTranslator);
-
-    mMainWindow = new WlanSnifferMainWindow(this);
-    
-    connect(
-        mWlanQtUtils,
-        SIGNAL(wlanScanReady()),
-        mMainWindow,
-        SLOT(updateListView()));
-
-    connect(
-        mWlanQtUtils,
-        SIGNAL(wlanNetworkOpened(int)),
-        mMainWindow,
-        SLOT(updateListViewConnectionOpened(int)));
-    
-    connect(
-        mWlanQtUtils,
-        SIGNAL(wlanNetworkClosed(int)),
-        mMainWindow,
-        SLOT(updateListViewConnectionClosed(int)));
-    
-    connect(
-        mMainWindow,
-        SIGNAL(exitTriggered()),
-        this,
-        SLOT(exitApplication()));
-
-    OstTraceFunctionExit0( WLANSNIFFER_WLANSNIFFER_EXIT );
-}
-
-WlanSniffer::~WlanSniffer()
-{
-    OstTraceFunctionEntry0( WLANSNIFFER_WLANSNIFFERDESTR_ENTRY );
-
-    killTimer(mScanTimerId);
-    
-    delete mMainWindow;
-    delete mWlanQtUtils;
-    
-    OstTraceFunctionExit0( WLANSNIFFER_WLANSNIFFERDESTR_EXIT );
-}
-
-void WlanSniffer::timerEvent(QTimerEvent *event)
-{
-    OstTraceFunctionEntry0( WLANSNIFFER_TIMEREVENT_ENTRY );
-    
-    Q_UNUSED(event);
-    // Request a new scan. Timer events come periodically.
-    mWlanQtUtils->scanWlans();
-
-    OstTraceFunctionExit0( WLANSNIFFER_TIMEREVENT_EXIT );
-}
-
-WlanQtUtils *WlanSniffer::wlanQtUtils() const
-{
-    OstTraceFunctionEntry0( WLANSNIFFER_WLANQTUTILS_ENTRY );
-    OstTraceFunctionExit0( WLANSNIFFER_WLANQTUTILS_EXIT );
-    return mWlanQtUtils;
-}
-
-void WlanSniffer::exitApplication()
-{
-    OstTraceFunctionEntry0( WLANSNIFFER_EXITAPPLICATION_ENTRY );
-    
-    exit();
-
-    OstTraceFunctionExit0( WLANSNIFFER_EXITAPPLICATION_EXIT );
-}
--- a/wlanutilities/wlansniffer/src/wlansnifferlistview.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,330 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#include <QGraphicsWidget>
-
-#include <HbLabel>
-#include <HbMenu>
-#include <HbAction>
-#include <HbListWidget>
-#include <HbListWidgetItem>
-#include <HbDocumentLoader>
-#include <HbInstance>
-
-#include <xqserviceutil.h>
-
-#include "wlanqtutils.h"
-#include "wlanqtutilswlanap.h"
-#include "wlanqtutilswlaniap.h"
-#include "wlanqtutilscommon.h"
-
-#include "wlansniffer.h"
-#include "wlansnifferlistview.h"
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "wlansnifferlistviewTraces.h"
-#endif
-
-WlanSnifferListView::WlanSnifferListView(WlanSniffer *appRef) : 
-    mWlanList(NULL),
-    mStatusLabel(NULL),
-    mAppRef(appRef),
-    mConnectingIapId(0),
-    mContextMenu(NULL)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_WLANSNIFFERLISTVIEW_ENTRY );
-    
-    bool ok = false;
-    HbDocumentLoader loader;
-    loader.load(":/docml/wlansnifferlistview.docml", &ok);
-    Q_ASSERT_X(ok, "Wlan Sniffer", "Invalid docml file");
-    
-    // Load the view by name from the xml file
-    QGraphicsWidget *widget = loader.findWidget("occ_list");
-    Q_ASSERT_X(widget != 0, "Wlan Sniffer", "View not found");
-    // Set the WlanListView view to be the widget that was loaded from the xml
-    setWidget(widget);
-
-    HbMenu *viewMenu = qobject_cast<HbMenu *>(loader.findWidget("viewMenu"));
-    Q_ASSERT_X(viewMenu != 0, "Wlan Sniffer", "Menu not found");
-    setMenu(viewMenu);
-    
-    mWlanList = qobject_cast<HbListWidget *>(loader.findWidget("listWidget"));
-    Q_ASSERT_X(mWlanList != 0, "Wlan Sniffer", "List not found");
-    
-    mStatusLabel = qobject_cast<HbLabel *>(loader.findWidget("statusLabel"));
-    Q_ASSERT_X(mStatusLabel != 0, "Wlan Sniffer", "Label not found");
-
-    connect(
-        mWlanList,
-        SIGNAL(activated(HbListWidgetItem *)),
-        this,
-        SLOT(handleListItemActivated(HbListWidgetItem *)));
-    connect(
-        mWlanList,
-        SIGNAL(longPressed(HbListWidgetItem *, const QPointF &)),
-        this,
-        SLOT(handleListItemLongPressed(HbListWidgetItem *, const QPointF &)));
-    
-    // Set correct orientation when drawing view first time. Orientation change
-    // on the fly is not yet implemented
-    if (HbInstance::instance()->allMainWindows().value(0)->orientation() == Qt::Horizontal) {
-        bool loaded = false;
-        loader.load( ":/docml/wlansnifferlistview.docml", "landscape", &loaded );
-    } // else: portrait is ok by default
-
-    // We need to create a custom navigation action in case the application was
-    // launched as embedded via QtHighway
-    if (XQServiceUtil::isEmbedded()) {
-        HbAction *completeAction = new HbAction(Hb::BackNaviAction, this);
-        setNavigationAction(completeAction);
-        connect(
-            completeAction,
-            SIGNAL(triggered(bool)),
-            this,
-            SIGNAL(completeServiceTriggered()));
-        // TODO: What to do when exit action is ran? Should we close whole control panel?
-    }
-    
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_WLANSNIFFERLISTVIEW_EXIT );
-}
-    
-WlanSnifferListView::~WlanSnifferListView()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_WLANSNIFFERLISTVIEWDESTR_ENTRY );    
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_WLANSNIFFERLISTVIEWDESTR_EXIT );
-}
-
-void WlanSnifferListView::update()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_UPDATE_ENTRY );
-    
-    // Do not update list while the context menu is open
-    if (mContextMenu == NULL) {
-        QList<WlanQtUtilsWlanAp*> aps;
-        QList<WlanQtUtilsWlanIap*> iaps;
-        
-        mAppRef->wlanQtUtils()->availableWlanAps(iaps, aps);
-        
-        mWlanList->clear();
-    
-        // Loop the IAPs and APs and create the list items (lists are ordered already by Wlan Qt Utilities)
-        foreach (WlanQtUtilsWlanIap *iap, iaps) {
-            mWlanList->addItem(wlanListItemIapCreate(iap));
-        }
-        // Loop the AP's and create the list items
-        foreach (WlanQtUtilsWlanAp *ap, aps) {
-            mWlanList->addItem(wlanListItemApCreate(ap));
-        }
-    }
-
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_UPDATE_EXIT );
-}
-
-void WlanSnifferListView::updateConnectionOpened(int iapId)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_UPDATECONNECTIONOPENED_ENTRY );
-    
-    mStatusLabel->setPlainText(
-        hbTrId("txt_occ_grid_connected_to_1").arg(mAppRef->wlanQtUtils()->iap(iapId)->name()));
-    // Redraw the list so that the connected network moves on top
-    update();
-    mConnectingIapId = 0;
-
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_UPDATECONNECTIONOPENED_EXIT );
-}
-
-void WlanSnifferListView::updateConnectionClosed(int iapId)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_UPDATECONNECTIONCLOSED_ENTRY );
-    
-    (void)iapId;
-    mStatusLabel->setPlainText(hbTrId("txt_occ_grid_not_connected"));
-    mConnectingIapId = 0;
-
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_UPDATECONNECTIONCLOSED_EXIT );
-}
-
-void WlanSnifferListView::handleContextMenuClosed()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_HANDLECONTEXTMENUCLOSED_ENTRY );
-
-    // Menu deletes itself, but we need to cleanup the member variable
-    // in order to enable list updating again
-    mContextMenu = NULL;
-    
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_HANDLECONTEXTMENUCLOSED_EXIT );
-}
-
-void WlanSnifferListView::handleListItemActivated(HbListWidgetItem *item)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_HANDLELISTITEMACTIVATED_ENTRY );
-    
-    QVariant data = item->data();
-    if (data.canConvert<int>()) {
-        // Item was an IAP. Connect the IAP or show details view depending on connection state
-        WlanQtUtilsIap *iap = mAppRef->wlanQtUtils()->iap(data.toInt());
-        if (iap->connectionStatus() == WlanQtUtilsConnectionStatusConnected) {
-            // Switch to details view
-            emit detailsTriggered(data.toInt());
-        } else {
-            // Connect the IAP
-            mConnectingIapId = iap->id();
-            mStatusLabel->setPlainText(hbTrId("txt_occ_grid_connecting_to_1").arg(iap->name()));
-            mAppRef->wlanQtUtils()->connectIap(mConnectingIapId);
-        }
-    } else {
-        // Item has to be a WLAN AP, which can't already be connected. Create an IAP and connect it.
-        Q_ASSERT(data.canConvert<WlanQtUtilsWlanAp>());
-        WlanQtUtilsWlanAp ap = data.value<WlanQtUtilsWlanAp>();
-        mConnectingIapId = mAppRef->wlanQtUtils()->createWlanIap(&ap);
-        WlanQtUtilsIap *iap = mAppRef->wlanQtUtils()->iap(mConnectingIapId);
-        Q_ASSERT(iap);
-        mStatusLabel->setPlainText(hbTrId("txt_occ_grid_connecting_to_1").arg(iap->name()));
-        mAppRef->wlanQtUtils()->connectIap(mConnectingIapId);
-    }
-
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_HANDLELISTITEMACTIVATED_EXIT );
-}
-
-void WlanSnifferListView::handleListItemLongPressed(HbListWidgetItem *item, const QPointF &coords)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_HANDLELISTITEMLONGPRESSED_ENTRY );
-    
-    Q_ASSERT(mContextMenu == NULL);
-
-    if (item->data().canConvert<int>() && item->data().toInt() ==
-        mAppRef->wlanQtUtils()->connectedWlanId()) {
-        // Connected IAP, add "Disconnect" action
-		    mContextMenu = new HbMenu();
-		    // Remember the item that was long pressed
-    		mContextMenuData = item->data();
-        mContextMenu->addAction(
-            hbTrId("txt_common_menu_disconnect"),
-            this,
-            SLOT(handleListItemDisconnect()));
-		    // Show the menu and connect closure signal (to re-enable list refreshing)
-		    bool connectStatus = connect(
-		        mContextMenu,
-		        SIGNAL(aboutToClose()),
-		        this,
-		        SLOT(handleContextMenuClosed()));
-		    Q_ASSERT(connectStatus);
-		    mContextMenu->setAttribute(Qt::WA_DeleteOnClose);
-		    mContextMenu->setTimeout(HbPopup::ContextMenuTimeout);
-		    mContextMenu->setPreferredPos(coords);
-		    mContextMenu->show();
-    }
-
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_HANDLELISTITEMLONGPRESSED_EXIT );
-}
-
-/*!
-    Handles a "Disconnect" action selected from the context menu for a list item.
- */
-void WlanSnifferListView::handleListItemDisconnect()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_HANDLELISTITEMDISCONNECT_ENTRY );
-
-    // "Disconnect" was only added, if the item was an IAP and data was
-    // the IAP ID
-    Q_ASSERT(mContextMenuData.canConvert<int>());
-    mAppRef->wlanQtUtils()->disconnectIap(mContextMenuData.toInt());
-    
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_HANDLELISTITEMDISCONNECT_EXIT );
-}
-
-// Todo: This is a temporary solution - real WLAN status indication & listening
-// is implemented later on.
-void WlanSnifferListView::handleDisconnect()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_HANDLEDISCONNECT_ENTRY );
-    
-    mStatusLabel->setPlainText(hbTrId("txt_occ_grid_not_connected"));
-    // Redraw the list so that disconnected network is not shown anymore
-    update();    
-
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_HANDLEDISCONNECT_EXIT );
-}
-
-// Todo: no place for separate secure WLAN icon in the widget -> custom layout needed?
-// Todo: check the signal strength values
-QString WlanSnifferListView::signalStrengthIconChoose(int signalStrength, WlanQtUtilsWlanSecMode secMode)
-{
-    (void)secMode;
-    QString iconName;
-    if (signalStrength <= WlanQtUtilsWlanSignalStrengthGood) {
-        iconName = "qtg_small_signal_good";
-    } else if (signalStrength <= WlanQtUtilsWlanSignalStrengthLow) {
-        iconName = "qtg_small_signal_medium";
-    } else {
-        iconName = "qtg_small_signal_low";
-    }
-    
-    return iconName;
-}
-
-HbListWidgetItem *WlanSnifferListView::wlanListItemIapCreate(const WlanQtUtilsWlanIap *iap)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_WLANLISTITEMIAPCREATE_ENTRY );
-    
-    HbListWidgetItem* item = new HbListWidgetItem();
-    item->setText(iap->name());
-#if 1                                       // TODO: How to show secure/open network info??
-    if (iap->securityMode() == WlanQtUtilsWlanSecModeOpen) {
-        item->setSecondaryText("Open");
-    } else {
-        item->setSecondaryText("Secure");            
-    }
-#endif
-    
-    if (iap->connectionStatus() == WlanQtUtilsConnectionStatusConnected) {
-        item->setIcon(HbIcon("qtg_small_online"));
-    } else {
-        item->setIcon(HbIcon("qtg_small_wlan"));
-    }
-    item->setSecondaryIcon(HbIcon(signalStrengthIconChoose(iap->signalStrength(), iap->securityMode())));
-    QVariant data(iap->id());
-    item->setData(data);
-
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_WLANLISTITEMIAPCREATE_EXIT );
-    return item;
-}
-
-HbListWidgetItem *WlanSnifferListView::wlanListItemApCreate(const WlanQtUtilsWlanAp *ap)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERLISTVIEW_WLANLISTITEMAPCREATE_ENTRY );
-    
-    HbListWidgetItem* item = new HbListWidgetItem();
-    item->setText(ap->ssid());
-#if 1                                       // TODO: How to show secure/open network info??
-    if (ap->securityMode() == WlanQtUtilsWlanSecModeOpen) {
-        item->setSecondaryText("Open");
-    } else {
-        item->setSecondaryText("Secure");            
-    }
-#endif    
-    item->setSecondaryIcon(HbIcon(signalStrengthIconChoose(ap->signalStrength(), ap->securityMode())));
-    QVariant data;
-    data.setValue(*ap);
-    item->setData(data);
-    
-    OstTraceFunctionExit0( WLANSNIFFERLISTVIEW_WLANLISTITEMAPCREATE_EXIT );
-    return item;
-}
-
-// End of File
--- a/wlanutilities/wlansniffer/src/wlansniffermainwindow.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,134 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#include <xqserviceutil.h>
-
-#include "wlansniffermainwindow.h"
-#include "wlansnifferlistview.h"
-#include "wlansnifferservice.h"
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "wlansniffermainwindowTraces.h"
-#endif
-
-
-WlanSnifferMainWindow::WlanSnifferMainWindow(WlanSniffer *appRef) :
-    mAppRef(appRef),
-    mService(0)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_WLANSNIFFERMAINWINDOW_ENTRY );
-    
-    mService = new WlanSnifferService(this);
-    connect(mService,SIGNAL(toListView()),this,SLOT(toListView()));
-    connect(mService,SIGNAL(returnValueDelivered()),this,SIGNAL(exitTriggered()));
-
-    // Add the views to the main window
-    addListView();
-    
-    // Check if sniffer is used via a service
-    if (!XQServiceUtil::isEmbedded()) {
-        // Show the main window (which will display the first view that was added)
-        show();
-    }
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_WLANSNIFFERMAINWINDOW_EXIT );
-}
-
-WlanSnifferMainWindow::~WlanSnifferMainWindow()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_WLANSNIFFERMAINWINDOWDESTR_ENTRY );
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_WLANSNIFFERMAINWINDOWDESTR_EXIT );
-}
-
-void WlanSnifferMainWindow::toListView()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_TOLISTVIEW_ENTRY );
-    
-    setCurrentView(mListView);
-    show();
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_TOLISTVIEW_EXIT );
-}
-
-void WlanSnifferMainWindow::toDetailsView(int iapId)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_TODETAILSVIEW_ENTRY );
-    
-    // TODO: Launch details view via QtHighway??
-    (void)iapId;
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_TODETAILSVIEW_EXIT );
-}
-
-void WlanSnifferMainWindow::updateListView()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_UPDATELISTVIEW_ENTRY );
-    
-    mListView->update();
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_UPDATELISTVIEW_EXIT );
-}
-
-void WlanSnifferMainWindow::updateListViewConnectionOpened(int iapId)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_UPDATELISTVIEWCONNECTIONOPENED_ENTRY );
-    
-    mListView->updateConnectionOpened(iapId);
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_UPDATELISTVIEWCONNECTIONOPENED_EXIT );
-}
-
-void WlanSnifferMainWindow::updateListViewConnectionClosed(int iapId)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_UPDATELISTVIEWCONNECTIONCLOSED_ENTRY );
-    
-    mListView->updateConnectionClosed(iapId);
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_UPDATELISTVIEWCONNECTIONCLOSED_EXIT );
-}
-
-void WlanSnifferMainWindow::completeService()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_COMPLETESERVICE_ENTRY );
-    
-    mService->complete();
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_COMPLETESERVICE_EXIT );
-}
-
-void WlanSnifferMainWindow::addListView()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERMAINWINDOW_ADDLISTVIEW_ENTRY );
-    
-    mListView = new WlanSnifferListView(mAppRef);
-    addView(mListView);
-    
-    bool connectStatus = connect(
-        mListView,
-        SIGNAL(detailsTriggered(int)),
-        this,
-        SLOT(toDetailsView(int)));
-    Q_ASSERT(connectStatus == true);
-    connectStatus = connect(
-        mListView,
-        SIGNAL(completeServiceTriggered()),
-        this,
-        SLOT(completeService()));
-    Q_ASSERT(connectStatus == true);
-
-    OstTraceFunctionExit0( WLANSNIFFERMAINWINDOW_ADDLISTVIEW_EXIT );
-}
--- a/wlanutilities/wlansniffer/src/wlansnifferservice.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- * 
- */
-
-#include "wlansnifferservice.h"
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "wlansnifferserviceTraces.h"
-#endif
-
-
-WlanSnifferService::WlanSnifferService(QObject* parent)
-    : XQServiceProvider("com.nokia.services.wlansniffer.list", parent)
-{
-    OstTraceFunctionEntry0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICE_ENTRY );
-    
-    publishAll();
-
-    OstTraceFunctionExit0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICE_EXIT );
-}
-
-WlanSnifferService::~WlanSnifferService()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICEDESTR_ENTRY );
-    OstTraceFunctionExit0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICEDESTR_EXIT );
-}
-
-void WlanSnifferService::complete()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERSERVICE_COMPLETE_ENTRY );
-    
-    QVariant returnValue(true);
-    bool status = completeRequest(mAsyncRequestIndex, returnValue);
-    Q_ASSERT(status);
-
-    OstTraceFunctionExit0( WLANSNIFFERSERVICE_COMPLETE_EXIT );
-}
-
-void WlanSnifferService::listView()
-{
-    OstTraceFunctionEntry0( WLANSNIFFERSERVICE_LISTVIEW_ENTRY );
-    
-    mAsyncRequestIndex = setCurrentRequestAsync();
-    emit toListView();
-
-    OstTraceFunctionExit0( WLANSNIFFERSERVICE_LISTVIEW_EXIT );
-}
--- a/wlanutilities/wlansniffer/traces/OstTraceDefinitions.h	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- */
-
-#ifndef __OSTTRACEDEFINITIONS_H__
-#define __OSTTRACEDEFINITIONS_H__
-#include <opensystemtrace.h>
-#endif
--- a/wlanutilities/wlanwizard/inc/wlanwizardpagenetworkmode.h	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/inc/wlanwizardpagenetworkmode.h	Fri Jul 09 10:38:19 2010 +0300
@@ -65,13 +65,24 @@
     
 private:
     Q_DISABLE_COPY(WlanWizardPageNetworkMode)
-    void addToList(QStringList &list, const QString &item, int mode, bool isHidden);
+    void addToList(
+        QStringList &list,
+        const QString &item,
+        int mode,
+        bool isHidden,
+        bool wpsSupported);
     void populateRadioButtonList(QStringList &list);
     int selectNextPage(const WlanNetworkSetting &setting) const;
 
 private slots:
 
 private:
+
+    /*!
+     * Internal network mode value constant. Used when wps used.
+     */
+    static const int NetworkModeNone = -1;
+    
     /*!
      * Pointer to the view.
      */
@@ -108,6 +119,12 @@
      * the initialization of the page.
      */
     QList<bool> mIsHidden;
+    
+    /*!
+     * List of wps support. This list is tied to the radio buttons during
+     * the initialization of the page.
+     */
+    QList<bool> mWpsSupported;
 };
 
 /*! @} */
--- a/wlanutilities/wlanwizard/inc/wlanwizardscanlist.h	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/inc/wlanwizardscanlist.h	Fri Jul 09 10:38:19 2010 +0300
@@ -54,8 +54,16 @@
 class WlanSecuritySetting
 {
 public:
+    //! Enumerated value defined by CMManagerShim::WlanSecMode
     int mode;
+    
+    //! true, if passkey is required, false otherwise
     bool usePsk;
+    
+    /*! 
+     * Identifier of the next page associated with this security mode.
+     * Page ids are defined in WlanWizardPageInternal::WlanPageIds
+     */
     int nextPageId;
     
     bool operator==(const WlanSecuritySetting& setting) const {
@@ -72,8 +80,13 @@
 class WlanNetworkSetting 
 {
 public:
+    //! Enumerated value defined by CMManagerShim::WlanConnMode
     int mode;
+    
+    //! true, if hidden, false otherwise
     bool hidden;
+    
+    //! true, if supported, false otherwise
     bool wpsSupported;
     
     bool operator==(const WlanNetworkSetting& setting) const {
@@ -110,6 +123,7 @@
     int netModes() const;
     int secModes(WlanNetworkSetting netMode) const;
     QList<WlanNetworkSetting> getNetModes() const;
+    bool wpsSelected() const;
     
 private:
     // Disabling implicit assignment operator
@@ -117,6 +131,7 @@
     
 private:
     QHash<WlanNetworkSetting, QList<WlanSecuritySetting> > mOpenOptions;
+    bool mWpsSelected;
 };
 
 /*!
--- a/wlanutilities/wlanwizard/src/wlanwizard_p.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizard_p.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -100,6 +100,7 @@
     mPageFinished(false),
     mClosed(false)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_WLANWIZARDPRIVATE_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_WLANWIZARDPRIVATE,
         "WlanWizardPrivate::WlanWizardPrivate;this=%x", 
         this );
@@ -136,6 +137,7 @@
         "WlanWizardPrivate::WlanWizardPrivate - done;"
         "this=%x;mFirstPageId=%{PageIds}",
         ( unsigned )this, mFirstPageId );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_WLANWIZARDPRIVATE_EXIT );
 }
 
 /*!
@@ -143,6 +145,7 @@
  */
 WlanWizardPrivate::~WlanWizardPrivate()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPRIVATE_WLANWIZARDPRIVATE_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_DWLANWIZARDPRIVATE,
         "WlanWizardPrivate::~WlanWizardPrivate;this=%x",
         this );
@@ -178,6 +181,7 @@
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_DWLANWIZARDPRIVATE_DONE,
         "WlanWizardPrivate::~WlanWizardPrivate-Done;this=%x",
         this );
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPRIVATE_WLANWIZARDPRIVATE_EXIT );
 }
 
 /*!
@@ -191,6 +195,7 @@
     bool hidden, 
     bool wps)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_SETPARAMETERS_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_SETPARAMETERS, 
         "WlanWizardPrivate::setParameters;this=%x", 
         this );
@@ -201,6 +206,7 @@
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_SETPARAMETERS_DONE, 
         "WlanWizardPrivate::setParameters - Done;this=%x", 
         this );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_SETPARAMETERS_EXIT );
 }
 
 /*!
@@ -208,6 +214,7 @@
  */
 void WlanWizardPrivate::show()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_SHOW_ENTRY );
     OstTraceExt2( TRACE_BORDER, WLANWIZARDPRIVATE_SHOW,
         "WlanWizardPrivate::show;this=%x;mFirstPageId=%{PageIds}", 
         ( unsigned )this, mFirstPageId );
@@ -219,6 +226,7 @@
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_SHOW_DONE,
         "WlanWizardPrivate::show - Done;this=%x;",
         (unsigned)this );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_SHOW_EXIT );
 }
 
 /*!
@@ -236,6 +244,7 @@
     bool hidden, 
     bool wps)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_GETNEXTPAGEID_ENTRY );
     setConfiguration(ConfProcessSettings, true);
     setConfiguration(ConfSsid, ssid);
     setConfiguration(ConfNetworkMode, networkMode);
@@ -246,7 +255,7 @@
     OstTrace1( TRACE_NORMAL, WLANWIZARDPRIVATE_GETNEXTPAGEID, 
         "WlanWizardPrivate::getNextPageId;wps=%u", 
         wps );
-
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_GETNEXTPAGEID_EXIT );
     return nextPageId(wps);
 }
 
@@ -257,7 +266,9 @@
  */
 WlanQtUtils* WlanWizardPrivate::wlanQtUtils() const
 {
-    Q_ASSERT(mWlanQtUtils);
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_WLANQTUTILS_ENTRY );
+    Q_ASSERT(mWlanQtUtils.data());
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_WLANQTUTILS_EXIT );
     return mWlanQtUtils.data();
 }
 
@@ -268,6 +279,7 @@
  */ 
 WlanWizardPlugin* WlanWizardPrivate::wlanWizardPlugin() const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_WLANWIZARDPLUGIN_ENTRY );
     WlanWizardPlugin* plugin = NULL;
 
     if (isEapEnabled()) {
@@ -279,6 +291,7 @@
         "WlanWizardPrivate::wlanWizardPlugin;plugin=%x", 
         plugin );
     
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_WLANWIZARDPLUGIN_EXIT );
     return plugin;
 }
 
@@ -290,6 +303,7 @@
  */
 bool WlanWizardPrivate::isEapEnabled() const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_ISEAPENABLED_ENTRY );
     bool ret = false;
     int secMode = configuration(ConfSecurityMode).toInt();
 
@@ -304,6 +318,7 @@
         "WlanWizardPrivate::isEapEnabled;ret=%u", 
         ret );
     
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_ISEAPENABLED_EXIT );
     return ret;
 }
 
@@ -314,6 +329,7 @@
  */
 bool WlanWizardPrivate::handleIap()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_HANDLEIAP_ENTRY );
     OstTrace0( TRACE_FLOW, WLANWIZARDPRIVATE_HANDLEIAP,
         "WlanWizardPrivate::handleIap" );
     
@@ -399,6 +415,7 @@
         "WlanWizardPrivate::handleIap: Done;ret=%d",
         ret );
     
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_HANDLEIAP_EXIT );
     return ret;
 }
 
@@ -407,6 +424,7 @@
  */
 QVariant WlanWizardPrivate::configuration(ConfigurationId confId) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_CONFIGURATION_ENTRY );
     Q_ASSERT(mConfigurations.contains(confId));
 
 #ifdef OST_TRACE_COMPILER_IN_USE
@@ -420,6 +438,7 @@
         (uint)confId, string );
 #endif
     
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_CONFIGURATION_EXIT );
     return mConfigurations[confId];
 }
 
@@ -430,6 +449,7 @@
     ConfigurationId confId, 
     const QVariant &value)
 {
+OstTraceFunctionEntry0( WLANWIZARDPRIVATE_SETCONFIGURATION_ENTRY );
 #ifdef OST_TRACE_COMPILER_IN_USE
     QString tmp;
     QDebug tmpStream(&tmp);
@@ -443,6 +463,7 @@
 #endif
 
     mConfigurations[confId] = value;
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_SETCONFIGURATION_EXIT );
 }
 
 /*!
@@ -450,11 +471,13 @@
  */
 void WlanWizardPrivate::clearConfiguration(ConfigurationId confId)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_CLEARCONFIGURATION_ENTRY );
     OstTrace1( TRACE_FLOW, WLANWIZARDPRIVATE_CLEARCONFIGURATION,
         "WlanWizardPrivate::clearConfiguration;confId=%{ConfigurationId}",
         (uint)confId );
     
     mConfigurations.remove(confId);
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_CLEARCONFIGURATION_EXIT );
 }
 
 /*!
@@ -462,10 +485,11 @@
  */
 bool WlanWizardPrivate::configurationExists(ConfigurationId confId)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_CONFIGURATIONEXISTS_ENTRY );
     OstTrace1( TRACE_DUMP, WLANWIZARDPRIVATE_CONFIGURATIONEXISTS,
         "WlanWizardPrivate::configurationExists;confId=%{ConfigurationId}",
         (uint)confId );
-    
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_CONFIGURATIONEXISTS_EXIT );
     return mConfigurations[confId].isValid();
 }
     
@@ -474,10 +498,12 @@
  */
 void WlanWizardPrivate::enableNextButton(bool enable)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_ENABLENEXTBUTTON_ENTRY );
     OstTraceExt2( TRACE_FLOW, WLANWIZARDPRIVATE_ENABLENEXTBUTTON,
         "WlanWizardPrivate::enableNextButton;this=%x;enable=%x",
         (unsigned)this, (uint)enable );
     mActionNext->setEnabled(enable);
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_ENABLENEXTBUTTON_EXIT );
 }
 
 /*!
@@ -485,12 +511,14 @@
  */
 void WlanWizardPrivate::addPage(int pageId, WlanWizardPage *page)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_ADDPAGE_ENTRY );
     OstTraceExt3( TRACE_FLOW, WLANWIZARDPRIVATE_ADDPAGE, 
         "WlanWizardPrivate::addPage;this=%x;pageId=%{PageIds};page=%x",
         (unsigned)this, pageId, (uint)(page) );
 
     Q_ASSERT(!mPages.contains(pageId));
     mPages[pageId] = page;
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_ADDPAGE_EXIT );
 }
 
 /*!
@@ -498,12 +526,14 @@
  */
 void WlanWizardPrivate::nextPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_NEXTPAGE_ENTRY );
     OstTrace1( TRACE_FLOW, WLANWIZARDPRIVATE_NEXTPAGE,
         "WlanWizardPrivate::nextPage;this=%x",
         this );
     
     mPageFinished = true;
     toNextPage();
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_NEXTPAGE_EXIT );
 }
 
 /*!
@@ -511,6 +541,8 @@
  */
 HbMainWindow* WlanWizardPrivate::mainWindow() const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_MAINWINDOW_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_MAINWINDOW_EXIT );
     return mMainWindow;
 }
 
@@ -519,6 +551,7 @@
  */
 bool WlanWizardPrivate::isCurrentPage(const HbWidget *page) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_ISCURRENTPAGE_ENTRY );
     bool ret = false;
     if (mStackedWidget->currentWidget() == page) {
         ret = true;
@@ -528,6 +561,7 @@
         "WlanWizardPrivate::isCurrentPage;page=%x;ret=%d", 
         (uint)page, ret);
     
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_ISCURRENTPAGE_EXIT );
     return ret;
 }
 
@@ -536,6 +570,7 @@
  */
 int WlanWizardPrivate::nextPageId(bool useWps)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_NEXTPAGEID_ENTRY );
     int ret;
     if (useWps) {
         ret = WlanWizardPage::PageWpsStart;
@@ -574,6 +609,7 @@
         "WlanWizardPrivate::nextPageId;this=%x;useWps=%x;ret=%{PageIds}",
         ( unsigned )this, ( TUint )( useWps ), ret );
 
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_NEXTPAGEID_EXIT );
     return ret;
 }
 
@@ -586,6 +622,7 @@
  */
 void WlanWizardPrivate::cancelTriggered()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_CANCELTRIGGERED_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_CANCELTRIGGERED,
         "WlanWizardPrivate::cancelTriggered;this=%x",
         this );
@@ -620,6 +657,7 @@
     
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_CANCELTRIGGERED_DONE,
         "WlanWizardPrivate::cancelTriggered - Done;this=%x", this );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_CANCELTRIGGERED_EXIT );
 }
 
 /*!
@@ -629,6 +667,7 @@
  */
 void WlanWizardPrivate::previousTriggered()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_PREVIOUSTRIGGERED_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_PREVIOUSTRIGGERED,
         "WlanWizardPrivate::previousTriggered;this=%x",
         this );
@@ -661,6 +700,7 @@
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_PREVIOUSTRIGGERED_DONE,
         "WlanWizardPrivate::previousTriggered - Done;this=%x",
         this );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_PREVIOUSTRIGGERED_EXIT );
 }
 
 /*!
@@ -669,6 +709,7 @@
  */
 void WlanWizardPrivate::nextTriggered()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_NEXTTRIGGERED_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_NEXTTRIGGERED,
         "WlanWizardPrivate::nextTriggered;this=%x",
         this );
@@ -685,6 +726,7 @@
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_NEXTTRIGGERED_DONE,
         "WlanWizardPrivate::nextTriggered - Done;this=%x",
         this );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_NEXTTRIGGERED_EXIT );
 }
 
 /*!
@@ -693,6 +735,7 @@
  */
 void WlanWizardPrivate::finishTriggered()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_FINISHTRIGGERED_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_FINISHTRIGGERED,
         "WlanWizardPrivate::finishTriggered;this=%x",
         this );
@@ -711,6 +754,7 @@
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_FINISHTRIGGERED_DONE,
         "WlanWizardPrivate::finishTriggered - Done;this=%x",
         this );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_FINISHTRIGGERED_EXIT );
 }
 
 /*!
@@ -719,6 +763,7 @@
  */
 void WlanWizardPrivate::onTimeOut()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_ONTIMEOUT_ENTRY );
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_ONTIMEOUT,
         "WlanWizardPrivate::onTimeOut;this=%x",
         this );
@@ -728,6 +773,7 @@
     OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_ONTIMEOUT_DONE,
         "WlanWizardPrivate::onTimeOut - Done;this=%x",
         this );
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_ONTIMEOUT_EXIT );
 }
 
 /*!
@@ -736,6 +782,7 @@
  */
 void WlanWizardPrivate::startPageOperation()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_STARTPAGEOPERATION_ENTRY );
     // Process this if wizard has not been closed
     if (mClosed == false) {
         OstTrace1( TRACE_BORDER, WLANWIZARDPRIVATE_STARTPAGEOPERATION,
@@ -753,6 +800,7 @@
             "WlanWizardPrivate::startPageOperation - DONE;this=%x",
             this );
     }
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_STARTPAGEOPERATION_EXIT );
 }
 
 /*!
@@ -761,6 +809,7 @@
  */
 void WlanWizardPrivate::toNextPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_TONEXTPAGE_ENTRY );
     if (mPageFinished && !(mPageTimer->isActive())) {
         OstTrace1( TRACE_FLOW, WLANWIZARDPRIVATE_TONEXTPAGE,
             "WlanWizardPrivate::toNextPage;this=%x",
@@ -770,6 +819,7 @@
         // call stack and process the page change using new call stack
         QMetaObject::invokeMethod(this, "nextTriggered", Qt::QueuedConnection);
     }
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_TONEXTPAGE_EXIT );
 }
 
 /*!
@@ -784,6 +834,7 @@
  */
 void WlanWizardPrivate::showPage(int pageId, bool removeFromStack)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_SHOWPAGE_ENTRY );
     OstTraceExt3( TRACE_FLOW, WLANWIZARDPRIVATE_SHOWPAGE,
         "WlanWizardPrivate::showPage;this=%x;"
         "pageId=%{PageIds};removeFromStack=%x",
@@ -792,6 +843,7 @@
     // PageNone is returned by wizard pages when some validation of page content
     // has not passed and the page does not want to process wizard to next page
     if (pageId == WlanWizardPage::PageNone) {
+        OstTraceFunctionExit0( WLANWIZARDPRIVATE_SHOWPAGE_EXIT );
         return;
     }
     
@@ -854,6 +906,7 @@
         
         QMetaObject::invokeMethod(this, "startPageOperation", Qt::QueuedConnection);
     }
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPRIVATE_SHOWPAGE_EXIT );
 }
 
 /*!
@@ -862,6 +915,7 @@
  */
 void WlanWizardPrivate::createPages()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_CREATEPAGES_ENTRY );
     OstTrace0(
         TRACE_NORMAL,
         WLANWIZARDPRIVATE_CREATEPAGES,
@@ -898,6 +952,7 @@
     addPage(
         WlanWizardPageInternal::PageNetworkSecurity, 
         new WlanWizardPageSecurityMode(this));
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_CREATEPAGES_EXIT );
 }
 
 /*!
@@ -907,8 +962,10 @@
  */
 void WlanWizardPrivate::closeViews()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_CLOSEVIEWS_ENTRY );
     mDialog->hide();
     mClosed = true;
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_CLOSEVIEWS_EXIT );
 }
 
 /*!
@@ -920,6 +977,7 @@
  */
 void WlanWizardPrivate::updateFrame(int pageId)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_UPDATEFRAME_ENTRY );
     int currentIndex = mStackedWidget->currentIndex();
 
     OstTraceExt3( TRACE_FLOW, WLANWIZARDPRIVATE_UPDATEFRAME, 
@@ -952,6 +1010,7 @@
             }
         }
     }
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_UPDATEFRAME_EXIT );
 }
 
 /*!
@@ -959,6 +1018,7 @@
  */
 void WlanWizardPrivate::loadDocml()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_LOADDOCML_ENTRY );
     bool ok = true;
     
     mDocLoader->load(":/docml/occ_wlan_wizard_main.docml", &ok);
@@ -1030,6 +1090,7 @@
     // is changed. See TSW Error: MTAA-854DK8
     ok = HbStyleLoader::registerFilePath(":/css/custom.css");
     Q_ASSERT(ok);
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_LOADDOCML_EXIT );
 }
 
 /*!
@@ -1037,6 +1098,7 @@
  */
 void WlanWizardPrivate::disconnectActions()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPRIVATE_DISCONNECTACTIONS_ENTRY );
     disconnect(
         mActionNext, SIGNAL(triggered()), 
         this, SLOT(nextTriggered()));
@@ -1052,4 +1114,5 @@
     disconnect(
         mActionCancel, SIGNAL(triggered()), 
         this, SLOT(cancelTriggered()));
+    OstTraceFunctionExit0( WLANWIZARDPRIVATE_DISCONNECTACTIONS_EXIT );
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpagegenericerror.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpagegenericerror.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -28,6 +28,11 @@
 #include "OstTraceDefinitions.h"
 #ifdef OST_TRACE_COMPILER_IN_USE
 #include "wlanwizardpageprocessingsettingsTraces.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "wlanwizardpagegenericerrorTraces.h"
+#endif
+
 #endif
 
 /*!
@@ -58,6 +63,8 @@
     mWidget(NULL), 
     mLabel(NULL)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_EXIT );
 }
 
 /*!
@@ -65,7 +72,9 @@
  */
 WlanWizardPageGenericError::~WlanWizardPageGenericError()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_ENTRY );
     // signals are automatically disconnected
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_EXIT );
 }
 
 /*!
@@ -73,6 +82,7 @@
  */
 HbWidget* WlanWizardPageGenericError::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_INITIALIZEPAGE_ENTRY );
     // Create the visualization at the first time
     if (!mWidget) {
         HbDocumentLoader docLoader(mWizard->mainWindow());
@@ -93,6 +103,7 @@
         mWizard->configuration(
             WlanWizardHelper::ConfGenericErrorString).toString());
 
+    OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -103,6 +114,8 @@
  */
 bool WlanWizardPageGenericError::showPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_SHOWPAGE_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_SHOWPAGE_EXIT );
     return false;
 }
 
@@ -113,6 +126,8 @@
  */
 int WlanWizardPageGenericError::previousTriggered()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_PREVIOUSTRIGGERED_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_PREVIOUSTRIGGERED_EXIT );
     return mWizard->configuration(
         WlanWizardHelper::ConfGenericErrorPageStepsBackwards).toInt();
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpageinternal.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpageinternal.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -24,6 +24,11 @@
 // User includes
 #include "wlanwizard_p.h"
 #include "wlanwizardpageinternal.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "wlanwizardpageinternalTraces.h"
+#endif
+
 
 /*!
    \class WlanWizardPageInternal
@@ -48,6 +53,8 @@
     QObject(wizard), 
     mWizard(wizard)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEINTERNAL_WLANWIZARDPAGEINTERNAL_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGEINTERNAL_WLANWIZARDPAGEINTERNAL_EXIT );
 }
 
 /*!
@@ -55,6 +62,8 @@
  */
 WlanWizardPageInternal::~WlanWizardPageInternal()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGEINTERNAL_WLANWIZARDPAGEINTERNAL_ENTRY );
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEINTERNAL_WLANWIZARDPAGEINTERNAL_EXIT );
 }
 
 
@@ -74,6 +83,7 @@
     const QString &portraitSection,
     const QString &landscapeSection) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEINTERNAL_LOADDOCMLSECTION_ENTRY );
     bool ok;
     
     // Then load the orientation specific section
@@ -85,4 +95,5 @@
         loader->load(filename, portraitSection, &ok);
         Q_ASSERT(ok);
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGEINTERNAL_LOADDOCMLSECTION_EXIT );
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpagekeyquery.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpagekeyquery.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -30,6 +30,11 @@
 #include "wlanwizard_p.h"
 #include "wlanwizardpagekeyquery.h"
 #include "wlanwizardutils.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "wlanwizardpagekeyqueryTraces.h"
+#endif
+
 
 /*!
    \class WlanWizardPageKeyQuery
@@ -58,6 +63,8 @@
     mLabelError(NULL), 
     mDocLoader(NULL)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEKEYQUERY_WLANWIZARDPAGEKEYQUERY_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGEKEYQUERY_WLANWIZARDPAGEKEYQUERY_EXIT );
 }
 
 /*!
@@ -65,9 +72,11 @@
  */
 WlanWizardPageKeyQuery::~WlanWizardPageKeyQuery()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGEKEYQUERY_WLANWIZARDPAGEKEYQUERY_ENTRY );
     delete mDocLoader;
     
     // Wizard framework deletes the visualization (owns mWidget).
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEKEYQUERY_WLANWIZARDPAGEKEYQUERY_EXIT );
 }
 
 /*!
@@ -78,6 +87,7 @@
  */
 HbWidget* WlanWizardPageKeyQuery::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEKEYQUERY_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         bool ok;
         
@@ -130,6 +140,7 @@
             hbTrId("txt_occ_dialog_enter_key_for_1")).arg(
                 mWizard->configuration(WlanWizardPrivate::ConfSsid).toString()));
     
+    OstTraceFunctionExit0( WLANWIZARDPAGEKEYQUERY_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -141,12 +152,14 @@
  */
 void WlanWizardPageKeyQuery::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEKEYQUERY_LOADDOCMLSECTION_ENTRY );
     WlanWizardPageInternal::loadDocmlSection(
         mDocLoader,
         orientation,
         ":/docml/occ_add_wlan_01_04.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( WLANWIZARDPAGEKEYQUERY_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -163,6 +176,7 @@
  */
 int WlanWizardPageKeyQuery::nextId(bool &removeFromStack) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEKEYQUERY_NEXTID_ENTRY );
     WlanWizardUtils::KeyStatus status(WlanWizardUtils::KeyStatusOk);
     int pageId = WlanWizardPage::nextId(removeFromStack);
     int secMode = mWizard->configuration(
@@ -198,6 +212,7 @@
     }
 
     removeFromStack = false;
+    OstTraceFunctionExit0( WLANWIZARDPAGEKEYQUERY_NEXTID_EXIT );
     return pageId;
 }
 
@@ -206,9 +221,11 @@
  */
 bool WlanWizardPageKeyQuery::showPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEKEYQUERY_SHOWPAGE_ENTRY );
     // Open virtual keyboard by setting focus to line edit
     mLineEdit->setFocus();
     
+    OstTraceFunctionExit0( WLANWIZARDPAGEKEYQUERY_SHOWPAGE_EXIT );
     return true;
 }
 
@@ -223,9 +240,11 @@
  */
 bool WlanWizardPageKeyQuery::eventFilter(QObject *obj, QEvent *event)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEKEYQUERY_EVENTFILTER_ENTRY );
     if (obj == mLineEdit && event->type() == QEvent::FocusIn) {
         mLabelError->setPlainText("");
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGEKEYQUERY_EVENTFILTER_EXIT );
     return false;
 }
 
@@ -240,6 +259,7 @@
 QString WlanWizardPageKeyQuery::keyStatusToErrorString(
     WlanWizardUtils::KeyStatus status) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEKEYQUERY_KEYSTATUSTOERRORSTRING_ENTRY );
     QString errorString;
     switch (status) {
     case WlanWizardUtils::KeyStatusIllegalCharacters:
@@ -259,5 +279,6 @@
         // nothing to do here.
         break;
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGEKEYQUERY_KEYSTATUSTOERRORSTRING_EXIT );
     return errorString;
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpagenetworkmode.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpagenetworkmode.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -49,6 +49,8 @@
     mLoader(NULL),
     mValid(false)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_WLANWIZARDPAGENETWORKMODE_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_WLANWIZARDPAGENETWORKMODE_EXIT );
 }
 
 /*!
@@ -57,7 +59,9 @@
  */
 WlanWizardPageNetworkMode::~WlanWizardPageNetworkMode()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGENETWORKMODE_WLANWIZARDPAGENETWORKMODE_ENTRY );
     delete mLoader;
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGENETWORKMODE_WLANWIZARDPAGENETWORKMODE_EXIT );
 }
 
 /*!
@@ -66,6 +70,7 @@
  */
 HbWidget* WlanWizardPageNetworkMode::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_INITIALIZEPAGE_ENTRY );
     OstTrace0( TRACE_NORMAL, WLANWIZARDPAGENETWORKMODE_INITIALIZEPAGE,
         "WlanWizardPageNetworkMode::initializePage" );
 
@@ -110,6 +115,7 @@
     
     mList->setItems(items);
     
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -121,25 +127,35 @@
  */
 int WlanWizardPageNetworkMode::nextId(bool &removeFromStack) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_NEXTID_ENTRY );
     removeFromStack = false;
     WlanNetworkSetting setting;
-    setting.mode = mNetworkModes.at(mList->selected());
-    setting.hidden = mIsHidden.at(mList->selected());
-    
-    // TODO: Still no wps handling.
-    setting.wpsSupported = false;
-    
-    mWizard->setConfiguration(WlanWizardPrivate::ConfNetworkMode,
-        setting.mode);
+    int index = mList->selected();
+    int nextPage = WlanWizardPageInternal::PageNetworkSecurity;
     
-    mWizard->setConfiguration(WlanWizardPrivate::ConfHiddenWlan,
-        setting.hidden);
+    if (mWpsSupported.at(index)) {
+        nextPage = WlanWizardPageInternal::PageWpsStart;
+    }
+    else {
+        setting.mode = mNetworkModes.at(index);
+        setting.hidden = mIsHidden.at(index);
+        setting.wpsSupported = mWpsSupported.at(index);
+
+        mWizard->setConfiguration(WlanWizardPrivate::ConfNetworkMode,
+            setting.mode);
 
-    if (mWizard->configurationExists(WlanWizardPrivate::ConfAvailableNetworkOptions)) {
-        return selectNextPage(setting);
+        mWizard->setConfiguration(WlanWizardPrivate::ConfHiddenWlan,
+            setting.hidden);
+        
+        mWizard->setConfiguration(WlanWizardPrivate::ConfWpsSupported,
+            setting.wpsSupported);
+
+        if (mWizard->configurationExists(WlanWizardPrivate::ConfAvailableNetworkOptions)) {
+            nextPage = selectNextPage(setting);
+        }
     }
-    
-    return WlanWizardPageInternal::PageNetworkSecurity;
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_NEXTID_EXIT );
+    return nextPage;
 }
 
 /*!
@@ -149,6 +165,8 @@
  */
 bool WlanWizardPageNetworkMode::showPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_SHOWPAGE_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_SHOWPAGE_EXIT );
     return mValid;
 }
 
@@ -158,11 +176,13 @@
  */
 void WlanWizardPageNetworkMode::itemSelected()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_ITEMSELECTED_ENTRY );
     OstTrace0( TRACE_BORDER, WLANWIZARDPAGENETWORKMODE_ITEMSELECTED,
         "WlanWizardPageNetworkMode::itemSelected" );
 
     mValid = true;
     mWizard->enableNextButton(mValid);
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_ITEMSELECTED_EXIT );
 }
 
 /*!
@@ -173,6 +193,7 @@
  */
 void WlanWizardPageNetworkMode::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_LOADDOCMLSECTION_ENTRY );
     OstTrace1( TRACE_NORMAL, WLANWIZARDPAGENETWORKMODE_LOADDOCML,
         "WlanWizardPageNetworkMode::loadDocml - Orientation;orientation=%x",
         ( TUint )( orientation ) );
@@ -183,6 +204,7 @@
         ":/docml/occ_add_wlan_02_03.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -195,10 +217,16 @@
  * @param [in] item is the caption to be added.
  * @param [in] mode is the network mode to be added.
  * @param [in] isHidden is the visibility status of the network.
+ * @param [in] wpsSupported is the possibility for wps support.
  */
-void WlanWizardPageNetworkMode::addToList(QStringList &list,
-    const QString &item, int mode, bool isHidden)
+void WlanWizardPageNetworkMode::addToList(
+    QStringList &list,
+    const QString &item,
+    int mode,
+    bool isHidden,
+    bool wpsSupported)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_ADDTOLIST_ENTRY );
         
     if (mWizard->configurationExists(WlanWizardHelper::ConfAvailableNetworkOptions)) {
         WlanWizardScanList networkOptions = mWizard->configuration(
@@ -207,18 +235,26 @@
         QList<WlanNetworkSetting> modes = networkOptions.getNetModes();
 
         for (int i = 0; i < modes.size(); i++) {
-            if (modes[i].mode == mode && modes[i].hidden == isHidden) {
+            if ( (modes[i].mode == mode 
+                && modes[i].hidden == isHidden
+                && modes[i].wpsSupported == wpsSupported)
+                || (modes[i].wpsSupported && wpsSupported) ) {
                 list << item;
                 mNetworkModes.append(mode);
                 mIsHidden.append(isHidden);
+                mWpsSupported.append(wpsSupported);
             }
         }
     }
-    else {  
+    else { 
         list << item;
         mNetworkModes.append(mode);
         mIsHidden.append(isHidden);
+        // If there are no known network options, WPS is not allowed to be
+        // selected.
+        mWpsSupported.append(false);
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_ADDTOLIST_EXIT );
 }
 
 /*!
@@ -227,9 +263,11 @@
  */
 void WlanWizardPageNetworkMode::populateRadioButtonList(QStringList &list)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_POPULATERADIOBUTTONLIST_ENTRY );
     list.clear();
     mNetworkModes.clear();
     mIsHidden.clear();
+    mWpsSupported.clear();
 
     // A list is created. Since there is no practical way of knowing whether
     // the new contents are different from the previous contents (if there
@@ -237,13 +275,21 @@
     mValid = false;
         
     addToList(list, hbTrId("txt_occ_dblist_val_infrastructure_public"),
-        CMManagerShim::Infra, false);
+        CMManagerShim::Infra, false, false);
 
     addToList(list, hbTrId("txt_occ_list_infrastructure_hidden"),
-        CMManagerShim::Infra, true);
+        CMManagerShim::Infra, true, false);
 
     addToList(list, hbTrId("txt_occ_list_adhoc_1"), CMManagerShim::Adhoc,
-        false);
+        false, false);
+    
+    if (mWizard->configurationExists(WlanWizardHelper::ConfAvailableNetworkOptions)) {
+        // addToList with wpsSupported=true is only called, when there are available
+        // scan result options. If no network options exist, the user can not get to
+        // wps wizard from this view. Also, mode and isHidden are "don't care".
+        addToList(list, hbTrId("txt_occ_list_wifi_protected_setup"), NetworkModeNone, false, true);
+    }
+    OstTraceFunctionExit0( WLANWIZARDPAGENETWORKMODE_POPULATERADIOBUTTONLIST_EXIT );
 }
 
 /*!
@@ -254,17 +300,21 @@
  */
 int WlanWizardPageNetworkMode::selectNextPage(const WlanNetworkSetting &setting) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGENETWORKMODE_SELECTNEXTPAGE_ENTRY );
+    
+    int nextPage = WlanWizardPageInternal::PageNetworkSecurity;
+    
     WlanWizardScanList networkOptions = mWizard->configuration(
         WlanWizardHelper::ConfAvailableNetworkOptions).value<WlanWizardScanList>();
-    
+
     if (networkOptions.secModes(setting) == SingleResult) {
         WlanSecuritySetting secMode = networkOptions.getSecMode(setting);
-        
         mWizard->setConfiguration(WlanWizardHelper::ConfSecurityMode, secMode.mode);
         mWizard->setConfiguration(WlanWizardHelper::ConfUsePsk, secMode.usePsk);
-        return secMode.nextPageId;
+        nextPage = secMode.nextPageId;
     }
     
-    return WlanWizardPageInternal::PageNetworkSecurity;
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGENETWORKMODE_SELECTNEXTPAGE_EXIT );
+    return nextPage;
 }
 
--- a/wlanutilities/wlanwizard/src/wlanwizardpageprocessingsettings.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpageprocessingsettings.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -66,6 +66,7 @@
     mLabel(NULL), 
     mNextPageId(WlanWizardPageInternal::PageSummary)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_WLANWIZARDPAGEPROCESSINGSETTINGS_ENTRY );
     WlanQtUtils* utils = mWizard->wlanQtUtils();
 
     bool ok;
@@ -92,6 +93,7 @@
 
     Q_UNUSED(ok);
     Q_ASSERT(ok);
+    OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_WLANWIZARDPAGEPROCESSINGSETTINGS_EXIT );
 }
 
 /*!
@@ -99,10 +101,12 @@
  */
 WlanWizardPageProcessingSettings::~WlanWizardPageProcessingSettings()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGEPROCESSINGSETTINGS_WLANWIZARDPAGEPROCESSINGSETTINGS_ENTRY );
     // signals are automatically disconnected
     delete mDocLoader;
     
     // Wizard framework deletes the visualization (owns mWidget).
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEPROCESSINGSETTINGS_WLANWIZARDPAGEPROCESSINGSETTINGS_EXIT );
 }
 
 /*!
@@ -110,6 +114,7 @@
  */
 HbWidget* WlanWizardPageProcessingSettings::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_INITIALIZEPAGE_ENTRY );
     if (!mWidget) {
         mDocLoader = new HbDocumentLoader(mWizard->mainWindow());
         
@@ -135,6 +140,7 @@
             hbTrId("txt_occ_dialog_checking_connection_to_1")).arg(
                 mWizard->configuration(WlanWizardPrivate::ConfSsid).toString()));
 
+    OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -147,7 +153,9 @@
  */
 int WlanWizardPageProcessingSettings::nextId(bool &removeFromStack) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_NEXTID_ENTRY );
     removeFromStack = true;
+    OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_NEXTID_EXIT );
     return mNextPageId;
 }
 
@@ -159,6 +167,8 @@
  */
 bool WlanWizardPageProcessingSettings::showPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_SHOWPAGE_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_SHOWPAGE_EXIT );
     return false;
 }
 
@@ -170,12 +180,14 @@
  */
 void WlanWizardPageProcessingSettings::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_LOADDOCMLSECTION_ENTRY );
     WlanWizardPageInternal::loadDocmlSection(
         mDocLoader,
         orientation,
         ":/docml/occ_add_wlan_06.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -189,12 +201,14 @@
  */
 void WlanWizardPageProcessingSettings::wlanNetworkClosed(int iapId, int reason)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKCLOSED_ENTRY );
     OstTraceExt2( TRACE_BORDER,
         WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKCLOSED, 
         "WlanWizardPageProcessingSettings::wlanNetworkClosed;iapId=%d;reason=%d",
         iapId, reason );
         
     if (iapId != mWizard->configuration(WlanWizardHelper::ConfIapId).toInt()) {
+        OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKCLOSED_EXIT );
         return;
     }
 
@@ -250,6 +264,7 @@
     OstTrace0( 
         TRACE_BORDER, WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKCLOSED_DONE,
         "WlanWizardPageProcessingSettings::wlanNetworkClosed - Done" );
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKCLOSED_EXIT );
 }
 
 /*!
@@ -261,6 +276,7 @@
  */
 void WlanWizardPageProcessingSettings::ictResult(int iapId, int reason)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_ICTRESULT_ENTRY );
     OstTraceExt2( 
         TRACE_BORDER, 
         WLANWIZARDPAGEPROCESSINGSETTINGS_ICTRESULT, 
@@ -268,6 +284,7 @@
         iapId, reason );
     
     if (iapId != mWizard->configuration(WlanWizardHelper::ConfIapId).toInt()) {
+        OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_ICTRESULT_EXIT );
         return;
     }
     
@@ -289,6 +306,7 @@
     
     OstTrace0( TRACE_BORDER, WLANWIZARDPAGEPROCESSINGSETTINGS_ICTRESULT_DONE, 
         "WlanWizardPageProcessingSettings::ictResult - Done" );
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEPROCESSINGSETTINGS_ICTRESULT_EXIT );
 }
 
 /*!
@@ -298,12 +316,14 @@
  */
 void WlanWizardPageProcessingSettings::wlanNetworkOpened(int iapId)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKOPENED_ENTRY );
     Q_UNUSED(iapId);
     OstTrace1(
         TRACE_BORDER, 
         WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKOPENED, 
         "WlanWizardPageProcessingSettings::wlanNetworkOpened;iapId=%d", 
         iapId);
+    OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_WLANNETWORKOPENED_EXIT );
 }
 
 /*!
@@ -313,6 +333,8 @@
  */
 bool WlanWizardPageProcessingSettings::requiresStartOperation()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_REQUIRESSTARTOPERATION_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_REQUIRESSTARTOPERATION_EXIT );
     return true;
 }
 
@@ -323,6 +345,7 @@
  */
 void WlanWizardPageProcessingSettings::startOperation()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGEPROCESSINGSETTINGS_STARTOPERATION_ENTRY );
     if (mWizard->handleIap()) {
         mNextPageId = WlanWizardPageInternal::PageSummary;
         
@@ -347,4 +370,5 @@
             WlanWizardPage::OneStepBackwards);
         mWizard->nextPage();
     }
+	OstTraceFunctionExit0( WLANWIZARDPAGEPROCESSINGSETTINGS_STARTOPERATION_EXIT );
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpagescanning.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpagescanning.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -49,6 +49,7 @@
     mScanResultsAvailable(false),
     mScanStatus(WlanQtUtils::ScanStatusOk)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_WLANWIZARDPAGESCANNING_ENTRY );
     WlanQtUtils* utils = mWizard->wlanQtUtils();
 
     // Connect normal scan completion signal from wlanQtUtils to result
@@ -61,6 +62,7 @@
         SLOT(wlanScanResultPreCheck(int)));
     
     Q_ASSERT(ok);
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_WLANWIZARDPAGESCANNING_EXIT );
 }
 
 /*!
@@ -69,7 +71,9 @@
  */
 WlanWizardPageScanning::~WlanWizardPageScanning()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGESCANNING_WLANWIZARDPAGESCANNING_ENTRY );
     delete mLoader;
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGESCANNING_WLANWIZARDPAGESCANNING_EXIT );
 }
 
 /*!
@@ -79,6 +83,7 @@
  */
 HbWidget* WlanWizardPageScanning::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_INITIALIZEPAGE_ENTRY );
     OstTrace0(
         TRACE_NORMAL,
         WLANWIZARDPAGESCANNING_INITIALIZEPAGE,
@@ -132,6 +137,7 @@
             WlanWizardPrivate::ConfSsid).toString()));
 
 
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -143,8 +149,10 @@
  */
 int WlanWizardPageScanning::nextId(bool &removeFromStack) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_NEXTID_ENTRY );
     removeFromStack = true;
 
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_NEXTID_EXIT );
     return mNextPageId;
 }
 
@@ -158,6 +166,7 @@
  */
 int WlanWizardPageScanning::previousTriggered()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_PREVIOUSTRIGGERED_ENTRY );
     disconnect(this, SLOT(wlanScanDirectReady(int)));
     disconnect(this, SLOT(wlanScanResultPreCheck(int)));
     
@@ -179,6 +188,7 @@
         SLOT(wlanScanDirectReady(int)));
     Q_ASSERT(ok);
     
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_PREVIOUSTRIGGERED_EXIT );
     return OneStepBackwards;
     
 }
@@ -193,7 +203,9 @@
  */
 bool WlanWizardPageScanning::showPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_SHOWPAGE_ENTRY );
     mWizard->setConfiguration(WlanWizardHelper::ConfProcessSettings, false);
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_SHOWPAGE_EXIT );
     return false;
 }
 
@@ -205,6 +217,8 @@
  */
 bool WlanWizardPageScanning::requiresStartOperation()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_REQUIRESSTARTOPERATION_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_REQUIRESSTARTOPERATION_EXIT );
     return true;
 }
 
@@ -214,6 +228,7 @@
  */
 void WlanWizardPageScanning::startOperation()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_STARTOPERATION_ENTRY );
     OstTrace0( TRACE_NORMAL, WLANWIZARDPAGESCANNING_STARTOPERATION,
         "WlanWizardPageScanning::startOperation - start AP scan if results"
         " are available." );
@@ -222,6 +237,7 @@
         mScanResultsAvailable = false;
         wlanScanApReady();
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_STARTOPERATION_EXIT );
 }
 
 /*!
@@ -232,6 +248,7 @@
  */
 void WlanWizardPageScanning::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_LOADDOCMLSECTION_ENTRY );
     OstTrace1( TRACE_NORMAL, WLANWIZARDPAGESCANNING_LOADDOCML,
         "WlanWizardPageScanning::loadDocml - orientation ;orientation=%x",
         ( TUint )( orientation ) );
@@ -242,6 +259,7 @@
         ":/docml/occ_add_wlan_06.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -252,6 +270,7 @@
  */
 void WlanWizardPageScanning::wlanScanResultPreCheck(int scanStatus)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_WLANSCANRESULTPRECHECK_ENTRY );
     mScanStatus = scanStatus;
     
     if (!mWidget) {
@@ -276,6 +295,7 @@
             mScanResultsAvailable = true;
         }
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_WLANSCANRESULTPRECHECK_EXIT );
 }
 
 /*!
@@ -285,6 +305,7 @@
  */
 void WlanWizardPageScanning::wlanScanDirectReady(int scanStatus)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_WLANSCANDIRECTREADY_ENTRY );
     OstTrace0( TRACE_NORMAL, WLANWIZARDPAGESCANNING_WLANSCANDIRECTREADY,
         "WlanWizardPageScanning::wlanScanDirectReady" );
 
@@ -306,6 +327,7 @@
     // Process the scan results. If scan status is not ok, feed an empty
     // result table to the selection function.
     selectNextPageActions(filteredResults);
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_WLANSCANDIRECTREADY_EXIT );
 }
 
 /*!
@@ -316,6 +338,7 @@
  */
 void WlanWizardPageScanning::wlanScanApReady()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_WLANSCANAPREADY_ENTRY );
     OstTrace0( TRACE_NORMAL, WLANWIZARDPAGESCANNING_WLANSCANAPREADY,
         "WlanWizardPageScanning::wlanScanApReady" );
 
@@ -343,6 +366,7 @@
         mNextPageId = WlanWizardPageInternal::PageNetworkMode;
         mWizard->nextPage();
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_WLANSCANAPREADY_EXIT );
 }
 
 /*!
@@ -355,6 +379,7 @@
     QString ssid,
     const QList<QSharedPointer<WlanQtUtilsAp> > &matchList)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_GETSSIDMATCHLIST_ENTRY );
     mWlanApList.clear();
     QSharedPointer<WlanQtUtilsAp> item;
 
@@ -364,6 +389,7 @@
             mWlanApList.append(item);
         }
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_GETSSIDMATCHLIST_EXIT );
 }
 
 /*
@@ -378,6 +404,7 @@
     const QList<QSharedPointer<WlanQtUtilsAp> > &openScanResults,
     QList<WlanScanResult> &finalResults)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_GETFINALSCANRESULTS_ENTRY );
     finalResults.clear();
 
     // The key assumption of this algorithm is that both direct and public scan
@@ -404,6 +431,7 @@
 
         finalResults.append(resultItem);
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_GETFINALSCANRESULTS_EXIT );
 }
 
 /*!
@@ -415,6 +443,7 @@
 int WlanWizardPageScanning::processMultipleScanResults(
     const QList<WlanScanResult> &finalResults)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_PROCESSMULTIPLESCANRESULTS_ENTRY );
     WlanWizardScanList networkOptions;
     int nextPage;
 
@@ -427,9 +456,13 @@
     mWizard->setConfiguration(
         WlanWizardHelper::ConfAvailableNetworkOptions, tmp);
 
-    // If there are more than one network mode choices, go to manual selection
-    // of network mode.
-    if (networkOptions.netModes() > SingleResult) {
+    if (networkOptions.wpsSelected()) {
+        // In case all available network mode options support wps, go directly
+        // to wps-wizard.
+        nextPage = WlanWizardPageInternal::PageWpsStart;
+    } else if (networkOptions.netModes() > SingleResult) {
+        // If there are more than one network mode choices, go to manual selection
+        // of network mode.
         nextPage = WlanWizardPageInternal::PageNetworkMode;
     } else {
         // if only a single network mode option is available, the mode query
@@ -437,9 +470,11 @@
         WlanNetworkSetting setting = networkOptions.getNetModes().at(0);
         mWizard->setConfiguration(WlanWizardHelper::ConfNetworkMode, setting.mode);
         mWizard->setConfiguration(WlanWizardHelper::ConfHiddenWlan, setting.hidden);
+        mWizard->setConfiguration(WlanWizardHelper::ConfWpsSupported, setting.wpsSupported);
         nextPage = WlanWizardPageInternal::PageNetworkSecurity;
     }
     
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_PROCESSMULTIPLESCANRESULTS_EXIT );
     return nextPage;
 }
 
@@ -450,6 +485,7 @@
 void WlanWizardPageScanning::selectNextPageActions(
     const QList<WlanScanResult> &finalResults)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESCANNING_SELECTNEXTPAGEACTIONS_ENTRY );
     mWizard->clearConfiguration(WlanWizardHelper::ConfAvailableNetworkOptions);
     
     if (finalResults.isEmpty()) {
@@ -472,4 +508,5 @@
     }
 
     mWizard->nextPage();
+    OstTraceFunctionExit0( WLANWIZARDPAGESCANNING_SELECTNEXTPAGEACTIONS_EXIT );
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpagesecuritymode.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpagesecuritymode.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -47,6 +47,8 @@
     mLoader(NULL),
     mValid(false)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_WLANWIZARDPAGESECURITYMODE_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGESECURITYMODE_WLANWIZARDPAGESECURITYMODE_EXIT );
 }
 
 /*!
@@ -55,7 +57,9 @@
  */
 WlanWizardPageSecurityMode::~WlanWizardPageSecurityMode()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGESECURITYMODE_WLANWIZARDPAGESECURITYMODE_ENTRY );
     delete mLoader;
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGESECURITYMODE_WLANWIZARDPAGESECURITYMODE_EXIT );
 }
 
 /*!
@@ -64,6 +68,7 @@
  */
 HbWidget* WlanWizardPageSecurityMode::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_INITIALIZEPAGE_ENTRY );
     OstTrace0( TRACE_NORMAL, WLANWIZARDPAGESECURITYMODE_INITIALIZEPAGE,
         "WlanWizardPageSecurityMode::initializePage" );
     
@@ -108,6 +113,7 @@
     // Create contents to the security mode radio button list.
     populateSecModeList();
 
+    OstTraceFunctionExit0( WLANWIZARDPAGESECURITYMODE_INITIALIZEPAGE_EXIT );
     return mWidget;
 }
 
@@ -120,6 +126,7 @@
  */
 int WlanWizardPageSecurityMode::nextId(bool &removeFromStack) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_NEXTID_ENTRY );
     removeFromStack = false;
     
     // The configuration is selected from the mSecModes list, which is ordered
@@ -131,7 +138,7 @@
     // during the page initialization.
     mWizard->setConfiguration( WlanWizardPrivate::ConfUsePsk,
         mUsePsk.at( mList->selected() ) );
-
+    OstTraceFunctionExit0( LANWIZARDPAGESECURITYMODE_NEXTID_EXIT );
     return mPageIds.at( mList->selected() );
 }
 
@@ -142,6 +149,8 @@
  */
 bool WlanWizardPageSecurityMode::showPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_SHOWPAGE_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGESECURITYMODE_SHOWPAGE_EXIT );
     return mValid;
 }
 
@@ -151,11 +160,13 @@
  */
 void WlanWizardPageSecurityMode::itemSelected()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_ITEMSELECTED_ENTRY );
     OstTrace0( TRACE_BORDER, WLANWIZARDPAGESECURITYMODE_ITEMSELECTED,
         "WlanWizardPageSecurityMode::itemSelected" );
     
     mValid = true;
     mWizard->enableNextButton(mValid);
+    OstTraceFunctionExit0( WLANWIZARDPAGESECURITYMODE_ITEMSELECTED_EXIT );
 }
 
 /*!
@@ -166,6 +177,7 @@
  */
 void WlanWizardPageSecurityMode::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_LOADDOCMLSECTION_ENTRY );
     OstTrace1( TRACE_NORMAL, WLANWIZARDPAGESECURITYMODE_LOADDOCML,
         "WlanWizardPageSecurityMode::loadDocml - orientation;orientation=%x",
         ( TUint )( orientation ) );
@@ -176,6 +188,7 @@
         ":/docml/occ_add_wlan_02_03.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( WLANWIZARDPAGESECURITYMODE_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -183,8 +196,9 @@
  */
 void WlanWizardPageSecurityMode::populateSecModeList()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_POPULATESECMODELIST_ENTRY );
     QStringList items;
-
+    
     mSecModes.clear();
     mPageIds.clear();
     mUsePsk.clear();
@@ -228,6 +242,8 @@
     }
 
     mList->setItems(items);
+    
+    OstTraceFunctionExit0( WLANWIZARDPAGESECURITYMODE_POPULATESECMODELIST_EXIT );
 }
 
 /*!
@@ -245,20 +261,18 @@
 void WlanWizardPageSecurityMode::addToList(QStringList &list,
     const QString &item, int mode, int page, bool psk)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESECURITYMODE_ADDTOLIST_ENTRY );
     if (mWizard->configurationExists(WlanWizardHelper::ConfAvailableNetworkOptions)) {
         WlanNetworkSetting netMode;
         netMode.mode = mWizard->configuration(WlanWizardPrivate::ConfNetworkMode).toInt();
         netMode.hidden = mWizard->configuration(WlanWizardPrivate::ConfHiddenWlan).toBool();
-
-        // wps always set to false at this point of the wizard.
-        netMode.wpsSupported = false;
-
+        netMode.wpsSupported = mWizard->configuration(WlanWizardPrivate::ConfWpsSupported).toBool();
         WlanWizardScanList networkOptions = mWizard->configuration(
             WlanWizardHelper::ConfAvailableNetworkOptions).value<WlanWizardScanList>();
 
         for (int i = 0; i < networkOptions.secModes(netMode); i++) {
             WlanSecuritySetting secMode = networkOptions.getSecMode(netMode, i);
-
+            
             if (secMode.mode == mode && secMode.usePsk == psk) {
                 list << item;
                 mSecModes.append(mode);
@@ -273,4 +287,5 @@
         mPageIds.append(page);
         mUsePsk.append(psk);
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESECURITYMODE_ADDTOLIST_EXIT );
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpagessid.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpagessid.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -44,7 +44,9 @@
     mSsid(NULL),
     mLoader(NULL)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESSID_WLANWIZARDPAGESSID_ENTRY );
 
+    OstTraceFunctionExit0( WLANWIZARDPAGESSID_WLANWIZARDPAGESSID_EXIT );
 }
 
 /*!
@@ -53,7 +55,9 @@
  */
 WlanWizardPageSsid::~WlanWizardPageSsid()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGESSID_WLANWIZARDPAGESSID_ENTRY );
     delete mLoader;
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGESSID_WLANWIZARDPAGESSID_EXIT );
 }
 
 /*!
@@ -62,6 +66,7 @@
  */
 HbWidget* WlanWizardPageSsid::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESSID_INITIALIZEPAGE_ENTRY );
     OstTrace0( TRACE_NORMAL, WLANWIZARDPAGESSID_INITIALIZEPAGE,
         "WlanWizardPageSsid::initializePage" );
 
@@ -119,6 +124,7 @@
         Qt::ImhNoPredictiveText | Qt::ImhPreferLowercase);
     mSsid->setMaxLength(WlanWizardUtils::SsidMaxLength);
 
+	OstTraceFunctionExit0( WLANWIZARDPAGESSID_INITIALIZEPAGE_EXIT );
 	return mWidget;
 }
 
@@ -129,12 +135,13 @@
  */
 bool WlanWizardPageSsid::showPage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESSID_SHOWPAGE_ENTRY );
     // Initiate the scanning of public APs here.
     mWizard->wlanQtUtils()->scanWlanAps();
     
     // Open virtual keyboard by setting focus to line edit
     mSsid->setFocus();
-
+    OstTraceFunctionExit0( WLANWIZARDPAGESSID_SHOWPAGE_EXIT );
     return !(mSsid->text().isEmpty());
 }
 
@@ -145,11 +152,13 @@
  */
 int WlanWizardPageSsid::nextId(bool &removeFromStack) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESSID_NEXTID_ENTRY );
     removeFromStack = false;
 
     // SSID is stored into configuration
     mWizard->setConfiguration(WlanWizardPrivate::ConfSsid, mSsid->text());
     
+    OstTraceFunctionExit0( WLANWIZARDPAGESSID_NEXTID_EXIT );
     return WlanWizardPageInternal::PageScanning;
 }
 
@@ -161,6 +170,7 @@
  */
 void WlanWizardPageSsid::loadDocmlSection(Qt::Orientation orientation)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESSID_LOADDOCMLSECTION_ENTRY );
     OstTrace1( TRACE_FLOW, WLANWIZARDPAGESSID_LOADDOCML,
         "WlanWizardPageSsid::loadDocml - orientation ;orientation=%x",
         ( TUint )( orientation ) );
@@ -171,6 +181,7 @@
         ":/docml/occ_add_wlan_01_04.docml", 
         "portrait_section",
         "landscape_section");
+    OstTraceFunctionExit0( WLANWIZARDPAGESSID_LOADDOCMLSECTION_EXIT );
 }
 
 /*!
@@ -180,9 +191,11 @@
  */
 void WlanWizardPageSsid::textChanged(const QString &text)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESSID_TEXTCHANGED_ENTRY );
     Q_UNUSED(text);
     OstTrace0( TRACE_FLOW, WLANWIZARDPAGESSID_TEXTCHANGED,
         "WlanWizardPageSsid::textChanged in text edit widget" );
 
     mWizard->enableNextButton(!(mSsid->text().isEmpty()));
+    OstTraceFunctionExit0( WLANWIZARDPAGESSID_TEXTCHANGED_EXIT );
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardpagesummary.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardpagesummary.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -30,6 +30,11 @@
 #include "wlanwizardplugin.h"
 #include "wlanwizardsummaryviewitem.h"
 #include "wlanwizardpagesummary.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "wlanwizardpagesummaryTraces.h"
+#endif
+
 
 /*!
    \class WlanWizardPageSummary
@@ -56,6 +61,8 @@
     WlanWizardPageInternal(parent), 
     mListWidget(NULL) 
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_WLANWIZARDPAGESUMMARY_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_WLANWIZARDPAGESUMMARY_EXIT );
 }
 
 /*!
@@ -63,9 +70,11 @@
  */
 WlanWizardPageSummary::~WlanWizardPageSummary()
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGESUMMARY_WLANWIZARDPAGESUMMARY_ENTRY );
     HbStyleLoader::unregisterFilePath(WlanWizardPageSummaryLayout);
     
     // Wizard framework deletes the visualization (owns mListWidget).
+    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGESUMMARY_WLANWIZARDPAGESUMMARY_EXIT );
 }
 
 /*!
@@ -73,6 +82,7 @@
  */
 HbWidget* WlanWizardPageSummary::initializePage()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_INITIALIZEPAGE_ENTRY );
     // Note that from summary page it is not possible to step back
     // this means that it is not possible that this method is called twice.
     Q_ASSERT(!mListWidget);
@@ -93,6 +103,7 @@
 
     addDynamicItems(row);
         
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_INITIALIZEPAGE_EXIT );
     return qobject_cast<HbWidget*>(mListWidget);
 }
 
@@ -101,6 +112,7 @@
  */
 void WlanWizardPageSummary::loadDocml()
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_LOADDOCML_ENTRY );
     bool ok;    
     HbDocumentLoader docLoader(mWizard->mainWindow());
     
@@ -120,6 +132,7 @@
     // Register the location of hblistviewitem.css and hblistviewitem.widgetml  
     ok = HbStyleLoader::registerFilePath(WlanWizardPageSummaryLayout);
     Q_ASSERT(ok);
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_LOADDOCML_EXIT );
 }
 
 /*!
@@ -130,6 +143,7 @@
  */
 QString WlanWizardPageSummary::networkModeText() const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_NETWORKMODETEXT_ENTRY );
     QString ret;
     int mode = mWizard->configuration(
         WlanWizardPrivate::ConfNetworkMode).toInt();
@@ -148,6 +162,7 @@
          }
          break;
      }
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_NETWORKMODETEXT_EXIT );
     return ret;
 }
 
@@ -159,6 +174,7 @@
  */
 QString WlanWizardPageSummary::securityModeText() const
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_SECURITYMODETEXT_ENTRY );
     QString ret;
     int mode = mWizard->configuration(WlanWizardPrivate::ConfSecurityMode).toInt();
     switch (mode) {
@@ -191,6 +207,7 @@
         ret = hbTrId("txt_occ_dblist_security_mode_val_open");
         break;
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_SECURITYMODETEXT_EXIT );
     return ret;
 }
 
@@ -201,13 +218,13 @@
  */
 void WlanWizardPageSummary::addDynamicItems(int &row)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_ADDDYNAMICITEMS_ENTRY );
     if (mWizard->isEapEnabled()) {
         appendToListPluginInfo(WlanWizardPlugin::SummaryEapOuterType, row);
         appendToListPluginInfo(WlanWizardPlugin::SummaryEapInnerType, row);
         appendToListPluginInfo(WlanWizardPlugin::SummaryEapFastProvisioningMode, row);
     }
 
-    // TODO: Hotspot: no need to show destination..
     QString value;
 
     switch (mWizard->configuration(WlanWizardPrivate::ConfIctStatus).toInt()) {
@@ -222,10 +239,12 @@
         break;
         
     default:
-        Q_ASSERT(WlanQtUtils::IctHotspotPassed == mWizard->configuration(WlanWizardPrivate::ConfIctStatus).toInt());
+        Q_ASSERT(WlanQtUtils::IctHotspotPassed ==
+            mWizard->configuration(WlanWizardPrivate::ConfIctStatus).toInt());
         // Add nothing to list.
         break;
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_ADDDYNAMICITEMS_EXIT );
 }
 
 /*!
@@ -240,10 +259,12 @@
     const QString title, 
     const QString value)
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_APPENDTOLIST_ENTRY );
     HbListWidgetItem *item = new HbListWidgetItem();
     item->setText(title);
     item->setSecondaryText(value);
     mListWidget->insertItem(row++, item);
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_APPENDTOLIST_EXIT );
 }
 
 /*!
@@ -255,6 +276,7 @@
 void WlanWizardPageSummary::appendToListPluginInfo( 
     WlanWizardPlugin::Summary id, int &row )
 {
+    OstTraceFunctionEntry0( WLANWIZARDPAGESUMMARY_APPENDTOLISTPLUGININFO_ENTRY );
     QString title;
     QString value;
     WlanWizardPlugin *plugin = mWizard->wlanWizardPlugin();
@@ -262,4 +284,5 @@
     if (plugin->summary(id, title, value)) {
         appendToList(row, title, value );
     }
+    OstTraceFunctionExit0( WLANWIZARDPAGESUMMARY_APPENDTOLISTPLUGININFO_EXIT );
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardscanlist.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardscanlist.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -26,13 +26,20 @@
 // User includes
 #include "wlanwizardscanlist.h"
 #include "wlanwizardpageinternal.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "wlanwizardscanlistTraces.h"
+#endif
+
 
 /*!
  * Constructor for WlanWizardScanList object.
  */
-WlanWizardScanList::WlanWizardScanList()
+WlanWizardScanList::WlanWizardScanList(): mWpsSelected(false)
 {
+    OstTraceFunctionEntry0( WLANWIZARDSCANLIST_WLANWIZARDSCANLIST_ENTRY );
 
+    OstTraceFunctionExit0( WLANWIZARDSCANLIST_WLANWIZARDSCANLIST_EXIT );
 }
 
 /*!
@@ -40,9 +47,11 @@
  * @param [in] scanList is the object to be copied.
  */
 WlanWizardScanList::WlanWizardScanList(const WlanWizardScanList &scanList):
-    mOpenOptions(scanList.mOpenOptions)
+mOpenOptions(scanList.mOpenOptions), mWpsSelected(false)
 {
+    OstTraceFunctionEntry0( DUP1_WLANWIZARDSCANLIST_WLANWIZARDSCANLIST_ENTRY );
 
+    OstTraceFunctionExit0( DUP1_WLANWIZARDSCANLIST_WLANWIZARDSCANLIST_EXIT );
 }
 
 /*!
@@ -50,7 +59,9 @@
  */
 WlanWizardScanList::~WlanWizardScanList()
 {
+    OstTraceFunctionEntry0( DUP2_WLANWIZARDSCANLIST_WLANWIZARDSCANLIST_ENTRY );
 
+    OstTraceFunctionExit0( DUP2_WLANWIZARDSCANLIST_WLANWIZARDSCANLIST_EXIT );
 }
 
 /*!
@@ -62,15 +73,19 @@
  */
 void WlanWizardScanList::build(const QList<WlanScanResult> &results)
 {
+    OstTraceFunctionEntry0( WLANWIZARDSCANLIST_BUILD_ENTRY );
+    
+    mWpsSelected = true;
+    
     for (int i = 0; i < results.size(); i++) {
         WlanNetworkSetting netMode;
         WlanSecuritySetting secMode;
         WlanScanResult item = results.at(i);
-        
+
         netMode.wpsSupported = item.scanResult->value(WlanQtUtilsAp::ConfIdWpsSupported).toBool();
         netMode.mode = item.scanResult->value(WlanQtUtilsAp::ConfIdConnectionMode).toInt();
         netMode.hidden = (netMode.mode == CMManagerShim::Adhoc) ? false : item.networkHidden;
-        
+
         secMode.mode = item.scanResult->value(WlanQtUtilsAp::ConfIdSecurityMode).toInt();
         secMode.usePsk = (secMode.mode == CMManagerShim::WlanSecModeWep) ? true
             : item.scanResult->value(WlanQtUtilsAp::ConfIdWpaPskUse).toBool();
@@ -79,11 +94,11 @@
         case CMManagerShim::WlanSecMode802_1x:
             secMode.nextPageId = WlanWizardPage::PageEapStart;
             break;
-            
+
         case CMManagerShim::WlanSecModeWep:
             secMode.nextPageId = WlanWizardPageInternal::PageKeyQuery;
             break;
-            
+
         case CMManagerShim::WlanSecModeWpa:
         case CMManagerShim::WlanSecModeWpa2:
             if (secMode.usePsk) {
@@ -99,11 +114,12 @@
                 CMManagerShim::WlanSecModeWapi == secMode.mode);
             secMode.nextPageId = WlanWizardPage::PageProcessSettings;
             break;
-            
+
         }
-        
+
         // prevent duplicate settings.
         if (!mOpenOptions.contains(netMode)) {
+            mWpsSelected = (mWpsSelected && netMode.wpsSupported);
             QList<WlanSecuritySetting> secList;
             secList.append(secMode);
             mOpenOptions.insert(netMode, secList);
@@ -113,6 +129,7 @@
         }
         // else an identical key-value pair is already in the list -> not added.
     }
+    OstTraceFunctionExit0( WLANWIZARDSCANLIST_BUILD_EXIT );
 }
 
 /*!
@@ -127,6 +144,7 @@
     WlanNetworkSetting netMode,
     int index) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDSCANLIST_GETSECMODE_ENTRY );
     return mOpenOptions.value(netMode).at(index);
 }
 
@@ -136,6 +154,7 @@
  */
 int WlanWizardScanList::netModes() const
 {
+    OstTraceFunctionEntry0( WLANWIZARDSCANLIST_NETMODES_ENTRY );
     return mOpenOptions.size();
 }
 
@@ -146,6 +165,8 @@
  */
 int WlanWizardScanList::secModes(WlanNetworkSetting netMode) const
 {
+    OstTraceFunctionEntry0( WLANWIZARDSCANLIST_SECMODES_ENTRY );
+    Q_ASSERT(mOpenOptions.contains(netMode));
     return mOpenOptions.find(netMode)->size();
 }
 
@@ -155,6 +176,18 @@
  */
 QList<WlanNetworkSetting> WlanWizardScanList::getNetModes() const
 {
+    OstTraceFunctionEntry0( WLANWIZARDSCANLIST_GETNETMODES_ENTRY );
     return mOpenOptions.keys();
 }
 
+/*!
+ * This function indicates whether the list of scan results supports
+ * Wi-Fi Protected Setup.
+ * @return true, if all result network modes support wps, false if even
+ * a single result does not.
+ */
+bool WlanWizardScanList::wpsSelected() const
+{
+    OstTraceFunctionEntry0( WLANWIZARDSCANLIST_WPSSELECTED_ENTRY );
+    return mWpsSelected;
+}
--- a/wlanutilities/wlanwizard/src/wlanwizardsummaryviewitem.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardsummaryviewitem.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -21,13 +21,18 @@
 // User includes
 
 #include "wlanwizardsummaryviewitem.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "wlanwizardsummaryviewitemTraces.h"
+#endif
+
 
 /*!
    \class WlanWizardSummaryListViewItem
    \brief Implements custom List view for Summary page.
-   
+
    HbListWidget does not support directly views where selection is disabled.
-   
+
    This implementation removes required operations to disable list selection.
  */
 
@@ -41,13 +46,17 @@
 
 /*!
    Constructor.
-   
+
    @param [in] parent parent class
  */
 WlanWizardSummaryListViewItem::WlanWizardSummaryListViewItem(
     QGraphicsItem* parent) : 
     HbListViewItem(parent)
 {
+    OstTraceFunctionEntry0(
+        WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_ENTRY );
+    OstTraceFunctionExit0(
+        WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_EXIT );
 }
 
 /*!
@@ -55,22 +64,28 @@
  */
 WlanWizardSummaryListViewItem::~WlanWizardSummaryListViewItem()
 {
+    OstTraceFunctionEntry0(
+        DUP1_WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_ENTRY );
+    OstTraceFunctionExit0(
+        DUP1_WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_EXIT );
 }
 
 /*!
    See HbListViewItem::updateChildItems().
-   
+
    Disables selection. 
  */
 void WlanWizardSummaryListViewItem::updateChildItems()
 {
+    OstTraceFunctionEntry0( WLANWIZARDSUMMARYLISTVIEWITEM_UPDATECHILDITEMS_ENTRY );
     HbListViewItem::updateChildItems();
-    
+
     ungrabGesture(Qt::TapGesture);
-    
+
     GraphicsItemFlags itemFlags = flags();
     itemFlags &= ~QGraphicsItem::ItemIsFocusable;
     setFlags(itemFlags);
+    OstTraceFunctionExit0( WLANWIZARDSUMMARYLISTVIEWITEM_UPDATECHILDITEMS_EXIT );
 }
 
 /*!
@@ -78,5 +93,7 @@
  */
 HbAbstractViewItem*  WlanWizardSummaryListViewItem::createItem()
 {
+    OstTraceFunctionEntry0( WLANWIZARDSUMMARYLISTVIEWITEM_CREATEITEM_ENTRY );
+    OstTraceFunctionExit0( WLANWIZARDSUMMARYLISTVIEWITEM_CREATEITEM_EXIT );
     return new WlanWizardSummaryListViewItem(*this);
 }
--- a/wlanutilities/wlanwizard/src/wlanwizardutils.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/src/wlanwizardutils.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -108,6 +108,7 @@
  */
 WlanWizardUtils::KeyStatus WlanWizardUtils::validateWpaKey(const QString &key)
 {
+    OstTraceFunctionEntry0( WLANWIZARDUTILS_VALIDATEWPAKEY_ENTRY );
 #ifdef OST_TRACE_COMPILER_IN_USE
     TPtrC tmp(key.utf16(),key.length() );
     OstTraceExt1( TRACE_NORMAL, WLANWIZARDUTILS_VALIDATEWPAKEY, 
@@ -131,6 +132,7 @@
         TRACE_NORMAL, WLANWIZARDUTILS_VALIDATEWPAKEY_RETURN, 
         "WlanWizardUtils::validateWpaKey - Return;ret=%{KeyStatus}", ret );
     
+    OstTraceFunctionExit0( WLANWIZARDUTILS_VALIDATEWPAKEY_EXIT );
     return ret;
 }
 
@@ -154,6 +156,7 @@
  */
 WlanWizardUtils::KeyStatus WlanWizardUtils::validateWepKey(const QString &key)
 {
+    OstTraceFunctionEntry0( WLANWIZARDUTILS_VALIDATEWEPKEY_ENTRY );
 #ifdef OST_TRACE_COMPILER_IN_USE
     TPtrC tmp(key.utf16(),key.length() );
     OstTraceExt1( TRACE_NORMAL, WLANWIZARDUTILS_VALIDATEWEPKEY, 
@@ -175,6 +178,7 @@
         TRACE_NORMAL, WLANWIZARDUTILS_VALIDATEWEPKEY_RETURN, 
         "WlanWizardUtils::validateWepKey - Return;ret=%{KeyStatus}", ret );
     
+    OstTraceFunctionExit0( WLANWIZARDUTILS_VALIDATEWEPKEY_EXIT );
     return ret;
 }
 
@@ -189,16 +193,19 @@
  */
 WlanWizardUtils::KeyStatus WlanWizardUtils::isAscii(const QString &key)
 {
+    OstTraceFunctionEntry0( WLANWIZARDUTILS_ISASCII_ENTRY );
     static const QChar ch32(32);   // First visible ascii character
     static const QChar ch126(126); // Last visible ascii character
   
     const QChar *data = key.data();
     while (!data->isNull()) {
         if ((*data) < ch32 || (*data) > ch126) {
+            OstTraceFunctionExit0( WLANWIZARDUTILS_ISASCII_EXIT );
             return KeyStatusIllegalCharacters;
         }
         ++data;
     }
+    OstTraceFunctionExit0( DUP1_WLANWIZARDUTILS_ISASCII_EXIT );
     return KeyStatusOk;
 }
 
@@ -216,6 +223,7 @@
  */
 WlanWizardUtils::KeyStatus WlanWizardUtils::isHex(const QString &key)
 {
+    OstTraceFunctionEntry0( WLANWIZARDUTILS_ISHEX_ENTRY );
     static const QChar ch_A(65); // Character: A
     static const QChar ch_F(70); // Character: F
     static const QChar ch_a(97); // Character: a
@@ -228,9 +236,11 @@
             (*data) >= ch_A && (*data) <= ch_F) {
             ++data;
         } else {
+            OstTraceFunctionExit0( WLANWIZARDUTILS_ISHEX_EXIT );
             return KeyStatusIllegalCharacters;
         }
     }
+    OstTraceFunctionExit0( DUP1_WLANWIZARDUTILS_ISHEX_EXIT );
     return KeyStatusOk;
 }
 
@@ -245,6 +255,7 @@
  */
 WlanWizardUtils::SsidStatus WlanWizardUtils::validateSsid(const QString &ssid)
 {
+    OstTraceFunctionEntry0( WLANWIZARDUTILS_VALIDATESSID_ENTRY );
     TPtrC tmp(ssid.utf16(), ssid.length() );
     OstTraceExt1( TRACE_NORMAL, WLANWIZARDUTILS_VALIDATESSID, 
         "WlanWizardUtils::validateSsid;ssid=%S", tmp );
@@ -258,5 +269,6 @@
     OstTrace1( 
         TRACE_NORMAL, WLANWIZARDUTILS_VALIDATESSID_RETURN, 
         "WlanWizardUtils::validateSsid - Return;ret=%{SsidStatus}", ret );
+    OstTraceFunctionExit0( WLANWIZARDUTILS_VALIDATESSID_EXIT );
     return ret;
 }
--- a/wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutilsap.h	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutilsap.h	Fri Jul 09 10:38:19 2010 +0300
@@ -114,7 +114,7 @@
     void setValue(int identifier, QVariant value );
     bool operator==(const WlanQtUtilsAp & rhs ) const;
     
-    static bool compare(
+    static int compare(
         const WlanQtUtilsAp *ap1,
         const WlanQtUtilsAp *ap2);
 
--- a/wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutilsap_stub.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutilsap_stub.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -91,14 +91,14 @@
     @param [in] ap1 First AP to compare.
     @param [in] ap2 Second AP to compare.
 
-    @return TRUE, if APs are considered to be same.
+    @return Zero(0), if APs are considered to be same.
 */
 
-bool WlanQtUtilsAp::compare(
+int WlanQtUtilsAp::compare(
     const WlanQtUtilsAp *ap1,
     const WlanQtUtilsAp *ap2)
 {
-    bool equal = false;
+    int equal = 1; // Not equal
     
     // SSID (case sensitive) and security mode (with or without PSK)
     // are the values, which identify a unique access point.
@@ -108,7 +108,7 @@
            ap2->value(WlanQtUtilsAp::ConfIdSecurityMode)
            && ap1->value(WlanQtUtilsAp::ConfIdWpaPskUse) ==
               ap2->value(WlanQtUtilsAp::ConfIdWpaPskUse)) {
-        equal = true;
+        equal = 0; // Equal
     }
     
     return equal;
--- a/wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual.cpp	Fri Jul 09 10:38:19 2010 +0300
@@ -992,6 +992,11 @@
     QCOMPARE( mouseClickNext(), true );
 
     QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true );
+    QStringList buttons;
+    buttons << hbTrId("txt_occ_list_infrastructure_hidden") 
+            << hbTrId("txt_occ_list_adhoc_1");
+    QCOMPARE( verifyRadioButtons("list"), buttons );
+    
     QTest::qWait(WaitTimeForUi);
     QCOMPARE( selectRadioButton( "list", 1 ), true );
     QTest::qWait(WaitTimeForUi);
@@ -1102,6 +1107,11 @@
     QCOMPARE( mouseClickNext(), true );
 
     QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true );
+    QStringList buttons;
+    buttons << hbTrId("txt_occ_dblist_val_infrastructure_public") 
+            << hbTrId("txt_occ_list_infrastructure_hidden") 
+            << hbTrId("txt_occ_list_adhoc_1");
+    QCOMPARE( verifyRadioButtons("list"), buttons );
     QTest::qWait(WaitTimeForUi);
     QCOMPARE( selectRadioButton( "list", 0 ), true );
     QTest::qWait(WaitTimeForUi);
@@ -1168,3 +1178,80 @@
     QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageKeyQuery, "huuhaa3421"), true );
 #endif
 }
+
+/*!
+ * 
+ */
+void TestWlanWizardManual::tc_multiple_ssids_with_same_name_wps_and_nonwps()
+{
+#ifdef tc_multiple_ssids_with_same_name_wps_and_nonwps_enabled
+    mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWpa, false, false, 100);
+    
+    // Add all five kinds of security modes.
+    mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWep, true, true, 300);
+    
+    mWlanQtUtilsContext->setScanWlanDirectResult("huuhaa", mApList->List());
+    mWlanQtUtilsContext->setCreateWlanIapResult(100);
+    mWlanQtUtilsContext->setSignalIctResult(100, WlanQtUtils::IctPassed);
+    mWlanQtUtilsContext->setSignalWlanNetworkOpened(100);
+    mWlanQtUtilsContext->setConnectionSuccessed(true);
+
+    mView->showWizard();
+
+    QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageSsid), true );
+
+    QCOMPARE( mouseClickObject("lineEditKey"), true );
+    QTest::qWait(WaitTimeForUi);
+    QCOMPARE( insertTextToObject("lineEditKey", "huuhaa"), true );
+    QTest::qWait(WaitTimeForUi);
+    QCOMPARE( mouseClickObject("dialog"), true );
+    QTest::qWait(WaitTimeForUi);
+    QCOMPARE( mouseClickNext(), true );
+
+    QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageScanning, "huuhaa"), true );
+    QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true );
+    QStringList buttons;
+    buttons << hbTrId("txt_occ_list_infrastructure_hidden") 
+            << hbTrId("txt_occ_list_wifi_protected_setup");
+    QCOMPARE( verifyRadioButtons("list"), buttons );
+    QCOMPARE( selectRadioButton( "list", 1 ), true );
+    QTest::qWait(WaitTimeForUi);
+    QCOMPARE( mouseClickNext(), true );
+
+    QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageWpsStart), true );
+#endif 
+}
+
+/*!
+ * 
+ */
+void TestWlanWizardManual::tc_multiple_ssids_with_same_name_two_wps_aps()
+{
+#ifdef tc_multiple_ssids_with_same_name_two_wps_aps_enabled
+    mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWpa, false, true, 100);
+
+    // Add all five kinds of security modes.
+    mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWep, true, true, 300);
+
+    mWlanQtUtilsContext->setScanWlanDirectResult("huuhaa", mApList->List());
+    mWlanQtUtilsContext->setCreateWlanIapResult(100);
+    mWlanQtUtilsContext->setSignalIctResult(100, WlanQtUtils::IctPassed);
+    mWlanQtUtilsContext->setSignalWlanNetworkOpened(100);
+    mWlanQtUtilsContext->setConnectionSuccessed(true);
+
+    mView->showWizard();
+
+    QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageSsid), true );
+
+    QCOMPARE( mouseClickObject("lineEditKey"), true );
+    QTest::qWait(WaitTimeForUi);
+    QCOMPARE( insertTextToObject("lineEditKey", "huuhaa"), true );
+    QTest::qWait(WaitTimeForUi);
+    QCOMPARE( mouseClickObject("dialog"), true );
+    QTest::qWait(WaitTimeForUi);
+    QCOMPARE( mouseClickNext(), true );
+
+    QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageScanning, "huuhaa"), true );
+    QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageWpsStart), true );
+#endif
+}
--- a/wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual.h	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual.h	Fri Jul 09 10:38:19 2010 +0300
@@ -54,6 +54,8 @@
     void tc_multiple_ssids_with_same_name_press_previous();
     void tc_multiple_ssids_with_same_name_all_sec_modes();
     void tc_multiple_ssids_with_same_name_orientation_switch();
+    void tc_multiple_ssids_with_same_name_wps_and_nonwps();
+    void tc_multiple_ssids_with_same_name_two_wps_aps();
     
 };
 
--- a/wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual_conf.h	Thu Jun 24 10:49:51 2010 +0300
+++ b/wlanutilities/wlanwizard/t_wlanwizard/ut/testwlanwizardmanual_conf.h	Fri Jul 09 10:38:19 2010 +0300
@@ -49,3 +49,5 @@
 #define tc_multiple_ssids_with_same_name_press_previous_enabled
 #define tc_multiple_ssids_with_same_name_all_sec_modes_enabled
 #define tc_multiple_ssids_with_same_name_orientation_switch_enabled
+#define tc_multiple_ssids_with_same_name_wps_and_nonwps_enabled
+#define tc_multiple_ssids_with_same_name_two_wps_aps_enabled
--- a/wlanutilities/wpswizard/resources/occ_wps_P1.docml	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<hbdocument version="0.9">
-    <widget name="occ_wps_P1" type="HbWidget">
-        <widget name="radioButtonList" type="HbRadioButtonList">
-            <container name="items" type="stringlist">
-                <string locid="txt_occ_list_use_pushbutton"  value="Use Push-Button"/>
-                <string locid="txt_occ_list_use_pin_code"  value="Use Pin Code"/>
-                <string locid="txt_occ_list_configure_manually"  value="Configure manually"/>
-            </container>
-            <sizehint height="50un" type="PREFERRED"/>
-        </widget>
-        <widget name="label_heading" type="HbLabel">
-            <enums name="textWrapping" value="TextWordWrap"/>
-            <enums name="aspectRatioMode" value="IgnoreAspectRatio"/>
-            <string locid="txt_occ_dialog_selected_network_supports_wifi_pro" name="plainText" value="Selected network supports Wifi Protected Setup for receving settings automatically"/>
-        </widget>
-        <real name="z" value="1"/>
-        <rect height="401.99999" name="geometry" width="308.99997" x="26" y="85"/>
-        <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Expanding" verticalStretch="0"/>
-        <sizehint height="60un" type="PREFERRED" width="46.1194un"/>
-        <layout orientation="Vertical" type="linear">
-            <linearitem itemname="label_heading"/>
-            <linearitem itemname="radioButtonList"/>
-            <stretchitem stretchfactor="1"/>
-        </layout>
-    </widget>
-    <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
-        <uistate name="Common ui state" sections="#common"/>
-    </metadata>
-</hbdocument>
--- a/wlanutilities/wpswizard/resources/occ_wps_P2.docml	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<hbdocument version="0.9">
-    <widget name="occ_wps_P2" type="HbWidget">
-        <widget name="label_heading" type="HbLabel">
-            <enums name="textWrapping" value="TextWordWrap"/>
-            <string locid="txt_occ_dialog_first_press_button_on_the_wireless" name="plainText" value="First, press button on the wireless station to initiate the setup process, then select 'Next'"/>
-        </widget>
-        <real name="z" value="1"/>
-        <rect height="350.00002" name="geometry" width="302.99999" x="28.50001" y="144.99999"/>
-        <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Expanding" verticalStretch="0"/>
-        <sizehint height="52.23881un" type="PREFERRED" width="45.22388un"/>
-        <layout orientation="Vertical" type="linear">
-            <contentsmargins bottom="1.34328un" left="2un" right="1.34328un" top="1.34328un"/>
-            <linearitem itemname="label_heading"/>
-        </layout>
-    </widget>
-    <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
-        <uistate name="Common ui state" sections="#common"/>
-    </metadata>
-</hbdocument>
--- a/wlanutilities/wpswizard/resources/occ_wps_P3.docml	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<hbdocument version="0.9">
-    <widget name="occ_wps_P3" type="HbWidget">
-        <widget name="label_heading" type="HbLabel">
-            <enums name="textWrapping" value="TextWordWrap"/>
-            <string locid="txt_occ_dialog_enter_1_on_the_wireless_station_t" name="plainText" value="Enter '%L1' on wireless station then select 'Continue'."/>
-        </widget>
-        <real name="z" value="1"/>
-        <rect height="361.00001" name="geometry" width="318.00001" x="20.99999" y="139.5"/>
-        <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Expanding" verticalStretch="0"/>
-        <sizehint height="53.8806un" type="PREFERRED" width="47.46269un"/>
-        <layout orientation="Vertical" type="linear">
-            <linearitem itemname="label_heading"/>
-        </layout>
-    </widget>
-    <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
-        <uistate name="Common ui state" sections="#common"/>
-    </metadata>
-</hbdocument>
--- a/wlanutilities/wpswizard/resources/occ_wps_P5.docml	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<hbdocument version="0.9">
-    <widget name="occ_wps_P5" type="HbWidget">
-        <widget name="label_heading" type="HbLabel">
-            <enums name="textWrapping" value="TextWordWrap"/>
-            <string locid="txt_occ_dialog_settings_received_for_multiple_wlan" name="plainText" value="Settings received for '%1' network"/>
-        </widget>
-        <widget name="radioButtonList" type="HbRadioButtonList">
-            <container name="items" type="stringlist">
-                <string value="WLAN1"/>
-                <string value="WLAN2"/>
-                <string value="WLAN3"/>
-            </container>
-        </widget>
-        <real name="z" value="1"/>
-        <rect height="337.99998" name="geometry" width="291.00002" x="31" y="155"/>
-        <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Expanding" verticalStretch="0"/>
-        <sizehint height="50.44776un" type="PREFERRED" width="43.43284un"/>
-        <layout orientation="Vertical" type="linear">
-            <linearitem itemname="label_heading"/>
-            <linearitem itemname="radioButtonList"/>
-        </layout>
-    </widget>
-    <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
-        <uistate name="Common ui state" sections="#common"/>
-    </metadata>
-</hbdocument>
--- a/wlanutilities/wpswizard/resources/occ_wps_P6.docml	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<hbdocument version="0.9">
-    <widget name="container_1" type="HbWidget">
-        <widget name="label_1" type="HbLabel">
-            <string locid="txt_occ_title_wlan_setup_wizard_summary" name="plainText" value="WLAN setup wizard, summary"/>
-        </widget>
-        <widget name="label" type="HbLabel">
-            <string locid="txt_occ_dblist_network_name" name="plainText" value="Network name"/>
-        </widget>
-        <widget name="label_2" type="HbLabel">
-            <string name="plainText" value="Bh1MRT"/>
-        </widget>
-        <widget name="label_3" type="HbLabel">
-            <string locid="txt_occ_dblist_network_mode" name="plainText" value="Network mode"/>
-        </widget>
-        <widget name="label_4" type="HbLabel">
-            <string locid="txt_occ_dblist_network_mode_val_infrastructure_hi" name="plainText" value="Infrastructure (hidden)"/>
-        </widget>
-        <widget name="label_5" type="HbLabel">
-            <string locid="txt_occ_dblist_security_mode" name="plainText" value="Security mode"/>
-        </widget>
-        <widget name="label_6" type="HbLabel">
-            <string locid="txt_occ_dblist_security_mode_val_wpawpa2psk" name="plainText" value="WPA with password"/>
-        </widget>
-        <widget name="label_7" type="HbLabel">
-            <string locid="txt_occ_dblist_destination" name="plainText"/>
-        </widget>
-        <widget name="label_8" type="HbLabel">
-            <string locid="txt_occ_dblist_destination_val_internet" name="plainText" value="Internet"/>
-        </widget>
-        <real name="z" value="1"/>
-        <rect height="535.99998" name="geometry" width="279" x="40.5" y="52.00001"/>
-        <sizehint height="80un" type="PREFERRED" width="41.64179un"/>
-        <layout orientation="Vertical" type="linear">
-            <linearitem itemname="label_1"/>
-            <linearitem itemname="label"/>
-            <linearitem itemname="label_2"/>
-            <linearitem itemname="label_3"/>
-            <linearitem itemname="label_4"/>
-            <linearitem itemname="label_5"/>
-            <linearitem itemname="label_6"/>
-            <linearitem itemname="label_7"/>
-            <linearitem itemname="label_8"/>
-        </layout>
-    </widget>
-    <metadata activeUIState="Common ui state" display="QHD portrait" unit="un">
-        <uistate name="Common ui state" sections="#common"/>
-    </metadata>
-</hbdocument>
--- a/wlanutilities/wpswizard/resources/resource.qrc	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-<RCC>
-    <qresource prefix="/docml" >
-        <file>occ_wps_P1.docml</file>
-        <file>occ_wps_P2.docml</file>
-        <file>occ_wps_P3.docml</file>
-        <file>occ_wps_P4.docml</file>
-        <file>occ_wps_P5.docml</file>
-        <file>occ_wps_P6.docml</file>
-    </qresource>
-    <qresource prefix="/icon" />
-    <qresource prefix="/loc" >
-        <file>wpswizardplugin.qm</file>
-    </qresource>
-</RCC>
Binary file wlanutilities/wpswizard/resources/wpswizardplugin.qm has changed
--- a/wlanutilities/wpswizard/resources/wpswizardplugin.ts	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS>
-<TS version="3.0" language="en_GB" sourcelanguage="en_GB">
-<context>
-<message numerus="no" id="txt_occ_list_configure_manually">
-    <comment></comment>        
-    <source>Configure manually</source>
-    <translation variants="no">Configure manually</translation>
-    <extra-loc-layout_id>qtl_list_popup_sec_add</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_01</extra-loc-viewid>
-    <extra-loc-positionid>list</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-<message numerus="no" id="txt_occ_list_use_pin_code">
-    <comment></comment>        
-    <source>Use PIN code</source>
-    <translation variants="no">Use PIN code</translation>
-    <extra-loc-layout_id>qtl_list_popup_sec_add</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_01</extra-loc-viewid>
-    <extra-loc-positionid>list</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-<message numerus="no" id="txt_occ_dialog_first_press_button_on_the_wireless">
-    <comment></comment>        
-    <source>First, press button on the wireless station to initiate the setup process, then select ‘Next’.</source>
-    <translation variants="no">First, press button on the wireless station to initiate the setup process, then select ‘Next’.</translation>
-    <extra-loc-layout_id>qtl_dialog_pri5</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_02</extra-loc-viewid>
-    <extra-loc-positionid>dialog</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-<message numerus="no" id="txt_occ_dialog_settings_received_for_multiple_wlan">
-    <comment></comment>        
-    <source>Settings received for multiple WLAN networks. Select the network to use:</source>
-    <translation variants="no">Settings received for multiple WLAN networks. Select the network to use:</translation>
-    <extra-loc-layout_id>qtl_dialog_pri5</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_05</extra-loc-viewid>
-    <extra-loc-positionid>dialog</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-<message numerus="no" id="txt_occ_dialog_enter_1_on_the_wireless_station_t">
-    <comment></comment>        
-    <source>Enter ‘%1 on the wireless station then select ‘Next’.</source>
-    <translation variants="no">Enter ‘%1 on the wireless station then select ‘Next’.</translation>
-    <extra-loc-layout_id>qtl_dialog_pri5</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_03</extra-loc-viewid>
-    <extra-loc-positionid>dialog</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-<message numerus="no" id="txt_occ_dialog_selected_network_supports_wifi_pro">
-    <comment></comment>        
-    <source>Selected network supports Wi-Fi Protected Setup™ for receiving settings automatically.</source>
-    <translation variants="no">Selected network supports Wi-Fi Protected Setup™ for receiving settings automatically.</translation>
-    <extra-loc-layout_id>qtl_dialog_pri5</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_01</extra-loc-viewid>
-    <extra-loc-positionid>dialog</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-<message numerus="no" id="txt_occ_dialog_negotiating">
-    <comment></comment>        
-    <source>Negotiating</source>
-    <translation variants="no">Negotiating</translation>
-    <extra-loc-layout_id>qtl_dialog_pri3</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_04</extra-loc-viewid>
-    <extra-loc-positionid>dialog</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-<message numerus="no" id="txt_occ_list_use_pushbutton">
-    <comment></comment>        
-    <source>Use push-button</source>
-    <translation variants="no">Use push-button</translation>
-    <extra-loc-layout_id>qtl_list_popup_sec_add</extra-loc-layout_id>    
-    <extra-loc-viewid>occ_wps_01</extra-loc-viewid>
-    <extra-loc-positionid>list</extra-loc-positionid>
-    <extra-loc-feature>oc</extra-loc-feature>
-    <extra-loc-blank>False</extra-loc-blank>
-</message>
-</context>
-</TS>
--- a/wlanutilities/wpswizard/src/wpswizardprivate.cpp	Thu Jun 24 10:49:51 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,229 +0,0 @@
-/*
- * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of the License "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description: 
- *   WPS Wizard: Private implementation.
- *
- */
-
-/*
- * %version: 1 %
- */
-
-// System includes
-#include <hbdocumentloader.h>
-#include <qgraphicswidget>
-#include <hbmainwindow.h>
-#include <hbview.h>
-#include <hbstackedwidget.h>
-#include <hblabel.h>
-#include <hbaction.h>
-#include <qapplication.h>
-
-// Trace includes
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "wpswizardprivateTraces.h"
-#endif
-
-// User includes
-#include "wlanwizardhelpper.h"
-// Wizard 
-#include "wpswizard.h"
-#include "wpswizard_p.h"
-// Wizard Pages
-#include "wpswizardsteptwo.h"
-#include "wpswizardstepthreebutton.h"
-#include "wpswizardstepthreenumber.h"
-#include "wpswizardstepfour.h"
-#include "wpswizardstepfive.h"
-
-
-class WlanWizardHelpper;
-
-/*!
- * Constructor for the private implementation of wps wiazard
- * 
- * \param WpsWizard* pointer to the framework object
- * \param WlanWizardHelpper * pointer to the wizard helpper class 
- * 
- */
-WpsWizardPrivate::WpsWizardPrivate(WpsWizard* wizard,
-        WlanWizardHelpper *wizardHelpper, int bearerType, int referenceId) :
-    q_ptr(wizard), mBearerType(bearerType), mReferenceId(referenceId),
-            mWizardHelpper(wizardHelpper), mRandomNumber(0)
-
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_WPSWIZARDPRIVATE_ENTRY, this);
-
-    // TODO: load localization file
-    mTranslator = new QTranslator(this);
-    mTranslator->load(":/loc/wpswizardplugin.qm");
-    qApp->installTranslator(mTranslator);
-
-    createPages();
-
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_WPSWIZARDPRIVATE_EXIT, this);
-    }
-
-/*!
- * Destructor
- */
-WpsWizardPrivate::~WpsWizardPrivate()
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_WPSWIZARDPRIVATE_ENTRY, this);
-    // have to delete the memory that was allocated in this object
-    mIapList.clear();
-    delete mTranslator;
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_WPSWIZARDPRIVATE_EXIT, this);
-    }
-
-/*!
- * Provides the caller with the functionality to enable/disable the 'Next' button
- * 
- * \param bool to indicate whether to enable or disable the 'next button'
- */
-void WpsWizardPrivate::enableNextButton(bool enable)
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_ENABLENEXTBUTTON_ENTRY, this);
-    mWizardHelpper->enableNextButton(enable);
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_ENABLENEXTBUTTON_EXIT, this);
-    }
-
-/*!
- * Provides the functionality to automatically move to the next page.
- */
-void WpsWizardPrivate::nextPage()
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_NEXTPAGE_ENTRY, this);
-    mWizardHelpper->nextPage();
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_NEXTPAGE_EXIT, this);
-    }
-
-/*!
- * Provides the functionality to store the recieved settings
- * 
- * \param int indicates the index in the array of received settings to be stored
- */
-void WpsWizardPrivate::storeSettings(int aIndex)
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_STORESETTINGS_ENTRY, this);
-    mWpsAttr = mIapList[aIndex];
-
-    QString ssid = QString::fromUtf8((const char*) mWpsAttr.iSsid.Ptr(),
-            mWpsAttr.iSsid.Length());
-
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfSsid, ssid);
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfNetworkMode,
-            mWpsAttr.iOperatingMode);
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfSecurityMode,
-            mWpsAttr.iSecurityMode);
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfKeyWepDefault,
-            mWpsAttr.iWepDefaultKey);
-    QString str = QString::fromUtf8((const char*) mWpsAttr.iWepKey1.Ptr(),
-        mWpsAttr.iWepKey1.Length());
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfKeyWep1, str);
-    str = QString::fromUtf8((const char*) mWpsAttr.iWepKey2.Ptr(), mWpsAttr.iWepKey2.Length());
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfKeyWep2, str);
-    str = QString::fromUtf8((const char*) mWpsAttr.iWepKey3.Ptr(), mWpsAttr.iWepKey3.Length());
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfKeyWep3, str);
-    str = QString::fromUtf8((const char*) mWpsAttr.iWepKey4.Ptr(), mWpsAttr.iWepKey4.Length());
-    mWizardHelpper->setConfigurations(WlanWizardHelpper::ConfKeyWep4, str);
-            
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_STORESETTINGS_EXIT, this);
-    }
-
-/*!
- * Provides the functionality to retrieve the ssid of the network to connect
- * \return returns the SSID as a QString
- */
-QString WpsWizardPrivate::getSsid()
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_GETSSID_ENTRY, this);
-    QString ssid;
-    ssid = mWizardHelpper->configurations(WlanWizardHelpper::ConfSsid).toString();
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_GETSSID_EXIT, this);
-    return ssid;
-    }
-
-/*!
- * Provides functionality for the caller to store the array of recieved settings from AP
- * \param QList<TWlanProtectedSetupCredentialAttribute>& received settings
- * 
- */
-void WpsWizardPrivate::storeSettingsArray(QList<
-        TWlanProtectedSetupCredentialAttribute>& aIapList)
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_STORESETTINGSARRAY_ENTRY, this);
-    mIapList = aIapList;
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_STORESETTINGSARRAY_EXIT, this);
-    }
-
-/*!
- * Returns the array of settings received from the AP
- * 
- * \return Array containing the settings
- */
-QList<TWlanProtectedSetupCredentialAttribute> WpsWizardPrivate::getSettingsArray()
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_GETSETTINGSARRAY_ENTRY, this);
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_GETSETTINGSARRAY_EXIT, this);
-    return mIapList;
-    }
-
-
-
-/*!
- * Creates the required pages for WPS setup
- */
-void WpsWizardPrivate::createPages()
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_CREATEPAGES_ENTRY, this);
-    mWizardHelpper->addPage(WpsWizardPage::PageWpsWizardStep2,
-            new WpsPageStepTwo(this));
-    mWizardHelpper->addPage(WpsWizardPage::PageWpsWizardStep3_Button,
-            new WpsPageStepThreeButton(this));
-    mWizardHelpper->addPage(WpsWizardPage::PageWpsWizardStep3_Number,
-            new WpsPageStepThreeNumber(this));
-    mWizardHelpper->addPage(WpsWizardPage::PageWpsWizardStep4,
-            new WpsPageStepFour(this));
-    mWizardHelpper->addPage(WpsWizardPage::PageWpsWizardStep5,
-            new WpsPageStepFive(this));
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_CREATEPAGES_EXIT, this);
-    }
-
-/*!
- * Provides with the functionality to store the PIN generated
- * 
- * \param int The generated PIN code to be used in succesive steps
- * 
- */
-void WpsWizardPrivate::setPin(int random)
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_SETPIN_ENTRY, this);
-    mRandomNumber = random;
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_SETPIN_EXIT, this);
-    }
-
-/*!
- * Returns the PIN code stored in one of the WPS Pages
- * 
- * \return PIN code to be used in the WPS operation.
- */
-int WpsWizardPrivate::getPin()
-    {
-    OstTraceFunctionEntry1(WPSWIZARDPRIVATE_GETPIN_ENTRY, this);
-    OstTraceFunctionExit1(WPSWIZARDPRIVATE_GETPIN_EXIT, this);
-    return mRandomNumber;
-    
-    }