wlanutilities/wlanwizard/inc/wlanwizardpagenetworkmode.h
branchRCL_3
changeset 25 f28ada11abbf
parent 24 63be7eb3fc78
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: 
       
    15  *   WLAN Wizard Page: Manual Network mode query page.  
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef WLANWIZARDPAGENETWORKMODE_H
       
    20 #define WLANWIZARDPAGENETWORKMODE_H
       
    21 
       
    22 // System includes
       
    23 
       
    24 // User includes
       
    25 #include "wlanwizardpageinternal.h"
       
    26 
       
    27 // Forward declarations
       
    28 class HbRadioButtonList;
       
    29 class HbLabel;
       
    30 class WlanWizardPrivate;
       
    31 class HbDocumentLoader;
       
    32 class WlanNetworkSetting;
       
    33 
       
    34 // External data types
       
    35 
       
    36 // Constants
       
    37 
       
    38 /*!
       
    39  * @addtogroup group_wlan_wizard
       
    40  * @{
       
    41  */
       
    42 
       
    43 class WlanWizardPageNetworkMode : public WlanWizardPageInternal
       
    44 {
       
    45     Q_OBJECT
       
    46 public:
       
    47     
       
    48     explicit WlanWizardPageNetworkMode(WlanWizardPrivate* parent);
       
    49     virtual ~WlanWizardPageNetworkMode();
       
    50     
       
    51 public: // From WlanWizardPageInternal
       
    52     HbWidget* initializePage();
       
    53     int nextId(bool &removeFromStack) const;   
       
    54     bool showPage();
       
    55 
       
    56 signals:
       
    57     
       
    58 public slots:
       
    59     void itemSelected();
       
    60     void loadDocmlSection(Qt::Orientation orientation);
       
    61     
       
    62 protected:
       
    63     
       
    64 protected slots:
       
    65     
       
    66 private:
       
    67     Q_DISABLE_COPY(WlanWizardPageNetworkMode)
       
    68     void addToList(
       
    69         QStringList &list,
       
    70         const QString &item,
       
    71         int mode,
       
    72         bool isHidden,
       
    73         bool wpsSupported);
       
    74     void populateRadioButtonList(QStringList &list);
       
    75     int selectNextPage(const WlanNetworkSetting &setting) const;
       
    76 
       
    77 private slots:
       
    78 
       
    79 private:
       
    80 
       
    81     /*!
       
    82      * Internal network mode value constant. Used when wps used.
       
    83      */
       
    84     static const int NetworkModeNone = -1;
       
    85     
       
    86     /*!
       
    87      * Pointer to the view.
       
    88      */
       
    89     HbWidget *mWidget;
       
    90     
       
    91     /*!
       
    92      * Pointer to the radio button list object.
       
    93      */
       
    94     HbRadioButtonList *mList;
       
    95     
       
    96     /*!
       
    97      * Pointer to the label object.
       
    98      */
       
    99     HbLabel *mLabel;
       
   100     
       
   101     /*!
       
   102      * Pointer to document loader object.
       
   103      */
       
   104     HbDocumentLoader *mLoader;
       
   105     
       
   106     /*!
       
   107      * True, if a mode has been selected. False otherwise.
       
   108      */
       
   109     bool mValid;
       
   110     
       
   111     /*!
       
   112      * List of network modes. This list is tied to the radio buttons during
       
   113      * the initialization of the page.
       
   114      */
       
   115     QList<int> mNetworkModes;
       
   116     
       
   117     /*!
       
   118      * List of publicity modes. This list is tied to the radio buttons during
       
   119      * the initialization of the page.
       
   120      */
       
   121     QList<bool> mIsHidden;
       
   122     
       
   123     /*!
       
   124      * List of wps support. This list is tied to the radio buttons during
       
   125      * the initialization of the page.
       
   126      */
       
   127     QList<bool> mWpsSupported;
       
   128 };
       
   129 
       
   130 /*! @} */
       
   131 
       
   132 #endif