wlanutilities/wlanwizard/src/wlanwizardpagenetworkmode.cpp
changeset 53 bdc64aa9b954
parent 43 72ebcbb64834
child 61 e1d68407ed06
equal deleted inserted replaced
49:fb81b597edf1 53:bdc64aa9b954
     1 /*
     1 /*
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3  * All rights reserved.
     3 * All rights reserved.
     4  * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5  * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6  * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8  *
     8 *
     9  * Initial Contributors:
     9 * Initial Contributors:
    10  * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11  *
    11 *
    12  * Contributors:
    12 * Contributors:
    13  *
    13 *
    14  * Description: 
    14 * Description: 
    15  *   WLAN Wizard Page: Network mode Selection.
    15 * WLAN Wizard Page: Network mode Selection.
    16  *
    16 */
    17  */
       
    18 
    17 
    19 // System includes
    18 // System includes
    20 #include <HbDocumentLoader>
    19 #include <HbDocumentLoader>
    21 #include <HbWidget>
    20 #include <HbWidget>
    22 #include <HbRadioButtonList>
    21 #include <HbRadioButtonList>
   139     else {
   138     else {
   140         setting.mode = mNetworkModes.at(index);
   139         setting.mode = mNetworkModes.at(index);
   141         setting.hidden = mIsHidden.at(index);
   140         setting.hidden = mIsHidden.at(index);
   142         setting.wpsSupported = mWpsSupported.at(index);
   141         setting.wpsSupported = mWpsSupported.at(index);
   143 
   142 
   144         mWizard->setConfiguration(WlanWizardPrivate::ConfNetworkMode,
   143         mWizard->setConfiguration(
       
   144             WlanWizardPrivate::ConfNetworkMode,
   145             setting.mode);
   145             setting.mode);
   146 
   146 
   147         mWizard->setConfiguration(WlanWizardPrivate::ConfHiddenWlan,
   147         mWizard->setConfiguration(
       
   148             WlanWizardPrivate::ConfWlanScanSSID,
   148             setting.hidden);
   149             setting.hidden);
   149         
   150         
   150         mWizard->setConfiguration(WlanWizardPrivate::ConfWpsSupported,
   151         mWizard->setConfiguration(
       
   152             WlanWizardPrivate::ConfWpsSupported,
   151             setting.wpsSupported);
   153             setting.wpsSupported);
   152 
   154 
   153         if (mWizard->configurationExists(WlanWizardPrivate::ConfAvailableNetworkOptions)) {
   155         if (mWizard->configurationExists(WlanWizardPrivate::ConfAvailableNetworkOptions)) {
   154             nextPage = selectNextPage(setting);
   156             nextPage = selectNextPage(setting);
   155         }
   157         }
   315     }
   317     }
   316     
   318     
   317     OstTraceFunctionExit0( DUP1_WLANWIZARDPAGENETWORKMODE_SELECTNEXTPAGE_EXIT );
   319     OstTraceFunctionExit0( DUP1_WLANWIZARDPAGENETWORKMODE_SELECTNEXTPAGE_EXIT );
   318     return nextPage;
   320     return nextPage;
   319 }
   321 }
   320