wlanutilities/wpswizard/inc/wpswizardstepfive.h
changeset 39 7b3e49e4608a
parent 19 10810c91db26
equal deleted inserted replaced
36:682dd021f9be 39:7b3e49e4608a
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: WPS wizard page step 5
    14 * Description: WPS wizard page step 5
    15 *
    15 *
    16 */
    16 */
       
    17 
    17 #ifndef WPSWIZARDSTEPFIVE_H_
    18 #ifndef WPSWIZARDSTEPFIVE_H_
    18 #define WPSWIZARDSTEPFIVE_H_
    19 #define WPSWIZARDSTEPFIVE_H_
    19 
    20 
    20 
    21 
    21 // System includes
    22 // System includes
    22 #include <QObject>
    23 #include <QObject>
       
    24 #include <HbDocumentLoader>
    23 
    25 
    24 // User includes
    26 // User includes
    25 #include "wpswizardpage.h"
    27 #include "wpswizardpage.h"
    26 
    28 
    27 // Forward declarations
    29 // Forward declarations
    33 
    35 
    34 
    36 
    35 // External data types
    37 // External data types
    36 // Constants
    38 // Constants
    37 
    39 
       
    40 /*!
       
    41  * @addtogroup group_wps_wizard_plugin
       
    42  * @{
       
    43  */
       
    44 
    38 // Class declaration
    45 // Class declaration
    39 class WpsPageStepFive : public WpsWizardPage
    46 class WpsPageStepFive : public WpsWizardPage
    40     {
    47     {
    41 Q_OBJECT
    48 Q_OBJECT
       
    49 
    42 public:
    50 public:
    43     WpsPageStepFive(WpsWizardPrivate* parent);
    51     
       
    52     explicit WpsPageStepFive(WpsWizardPrivate* parent);
    44     ~WpsPageStepFive();
    53     ~WpsPageStepFive();
    45 
    54 
    46 public:
    55 public:
    47     /*!
    56 
    48      * Creates a visualization of the page.
       
    49      */
       
    50     HbWidget* initializePage();
    57     HbWidget* initializePage();
    51     /*!
    58 
    52      * Returns id of next page. updates settings EapWizard.
       
    53      */
       
    54     int nextId(bool &removeFromStack) const;
    59     int nextId(bool &removeFromStack) const;
    55     /*!
    60 
    56      * Returns how many steps should be gone backwards. 
    61     int previousTriggered();
    57      */
    62 
    58     int stepsBackwards();
       
    59     /*!
       
    60      * This method is called when Previous button has been pressed.
       
    61      */
       
    62     void previousTriggered();
       
    63     /*!
       
    64      * This method is called when Cancel button has been pressed.
       
    65      */
       
    66     void cancelTriggered();
    63     void cancelTriggered();
    67     /*!
    64 
    68      * This method is called when a visualization is displayed to detect
    65     bool showPage();
    69      * whether next button should be enabled or not.
    66 	
    70      */
    67 signals:
    71     bool validate() const;
       
    72 
    68 
    73 public slots:
    69 public slots:
       
    70 
    74     void itemSelected(int index);
    71     void itemSelected(int index);
       
    72     
       
    73     void loadDocmlSection(Qt::Orientation orientation);
       
    74 
       
    75 protected:
       
    76 
       
    77 protected slots:
    75 
    78 
    76 private:
    79 private:
       
    80 
    77     Q_DISABLE_COPY(WpsPageStepFive)
    81     Q_DISABLE_COPY(WpsPageStepFive)
       
    82 	
       
    83 private slots:
       
    84 
       
    85 private:    
       
    86     
       
    87     //data
       
    88 
       
    89     //! Pointer to the HbWidget object
    78     HbWidget *mWidget;
    90     HbWidget *mWidget;
       
    91     //! Radio button list object
    79     HbRadioButtonList *mRadio;
    92     HbRadioButtonList *mRadio;
    80     HbLabel *mTitle;
    93     //! Heading label object
    81     HbLabel *mHeading;
    94     HbLabel *mHeading;
       
    95     //! variable used to determine if next button has to be enabled.
    82     bool mValid;
    96     bool mValid;
       
    97     //! Documentloader object
       
    98     HbDocumentLoader *mLoader;
    83     };
    99     };
    84 
   100 
    85 /*! @} */
       
    86 
       
    87 #endif /* WPSWIZARDSTEPFIVE_H_ */
   101 #endif /* WPSWIZARDSTEPFIVE_H_ */