wlanutilities/wlanwizard/inc/wlanwizardpagesecuritymode.h
changeset 39 7b3e49e4608a
parent 31 e8f4211554fb
child 61 e1d68407ed06
equal deleted inserted replaced
36:682dd021f9be 39:7b3e49e4608a
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description: 
    14  * Description: 
    15  *   WLAN Wizard Page: Security mode selection
    15  *   WLAN Wizard Page: Security mode selection
    16  *
    16  *
    17  */
       
    18 
       
    19 /*
       
    20  * %version: 10 %
       
    21  */
    17  */
    22 
    18 
    23 #ifndef WLANWIZARDPAGESECURITYMODE_H
    19 #ifndef WLANWIZARDPAGESECURITYMODE_H
    24 #define WLANWIZARDPAGESECURITYMODE_H
    20 #define WLANWIZARDPAGESECURITYMODE_H
    25 
    21 
    45 
    41 
    46 class WlanWizardPageSecurityMode: public WlanWizardPageInternal
    42 class WlanWizardPageSecurityMode: public WlanWizardPageInternal
    47 {
    43 {
    48     Q_OBJECT
    44     Q_OBJECT
    49 public:
    45 public:
    50     /*!
    46     explicit WlanWizardPageSecurityMode(WlanWizardPrivate* parent);
    51      * Constructor method for the Sequrity mode query view object.
    47     virtual ~WlanWizardPageSecurityMode();
    52      * @param parent pointer to parent object.
       
    53      */
       
    54     WlanWizardPageSecurityMode(WlanWizardPrivate* parent);
       
    55     
    48     
    56     /*!
    49 public:
    57      * Destructor for the Sequrity mode query view object.
       
    58      */
       
    59     ~WlanWizardPageSecurityMode();
       
    60 
       
    61     /*!
       
    62      * Page initialization procedures. Inherited from WlanWizardPage.
       
    63      * @see WlanWizardPage
       
    64      */
       
    65     HbWidget* initializePage();
    50     HbWidget* initializePage();
    66 
       
    67     /*!
       
    68      * Validates the Sequrity more selection and sets the configuration in
       
    69      * the wlanwizard.
       
    70      * @param removeFromStack output parameter that returns false.
       
    71      * @return depending on the sequrity mode, returns the appropriate view
       
    72      * identifier.
       
    73      */
       
    74     int nextId(bool &removeFromStack) const;
    51     int nextId(bool &removeFromStack) const;
    75     
       
    76     /*!
       
    77      * This method is overrides the default implementation from WlanWizardPage.
       
    78      * It indicates whether the Next-button should be enabled or not.
       
    79      * @return true, if a mode has been selected.
       
    80      */
       
    81     bool showPage();
    52     bool showPage();
    82     
    53     
    83 private slots:
    54 signals:
    84     /*!
    55 
    85      * Is invoked when user selects a mode from the radio button list.
    56 public slots:
    86      * (HbRadioButtonList's itemSelected-signal)
    57 
    87      * @param index of the selected item in the  radio button list. 
    58 protected:
    88      */
    59 
    89     void itemSelected(int index);
    60 protected slots:
    90     
       
    91     /*!
       
    92      * Loads the document orientation information from occ_add_wlan_02_03.docml
       
    93      * This is called each time phone orientation changes.
       
    94      * @param orientation indicates whether the phone is in portrait or
       
    95      * landscape mode.
       
    96      */
       
    97     void loadDocml(Qt::Orientation orientation);
       
    98     
    61     
    99 private:
    62 private:
       
    63     Q_DISABLE_COPY(WlanWizardPageSecurityMode)
       
    64     void populateSecModeList();
       
    65     void addToList(
       
    66         QStringList &list,
       
    67         const QString &item,
       
    68         int mode,
       
    69         int page,
       
    70         bool psk);
       
    71   
       
    72 private slots: 
       
    73     void itemSelected();
       
    74     void loadDocmlSection(Qt::Orientation orientation);
   100     
    75     
   101     /*!
    76 private:
   102      * Support function that creates the contents of the security mode list. 
       
   103      */
       
   104     void populateSecModeList();
       
   105     
       
   106     /*!
       
   107      * A support function to map the radio button list to a generic network
       
   108      * mode list. This enables the changing of button order without it
       
   109      * affecting the entire class.
       
   110      * @param list is a reference to a local list that will be placed as an
       
   111      * argument to the radio button list.
       
   112      * @param item is a reference to the text value that is appended to the
       
   113      * list
       
   114      * @param mode is the security mode associated with the item
       
   115      * @param page is the id of the next wizard page when this item is selected.
       
   116      * @param psk indicates whether password needs to be queried. 
       
   117      */
       
   118     void addToList(QStringList &list, const QString &item, int mode, int page,
       
   119         bool psk);
       
   120     
       
   121     /*!
    77     /*!
   122      * Pointer to the view.
    78      * Pointer to the view.
   123      */
    79      */
   124     HbWidget *mWidget;
    80     HbWidget *mWidget;
   125 
    81