wlanutilities/wpswizard/inc/wpswizardstepthreebutton.h
changeset 39 7b3e49e4608a
parent 19 10810c91db26
child 53 bdc64aa9b954
equal deleted inserted replaced
36:682dd021f9be 39:7b3e49e4608a
    18 #ifndef WPSWIZARDSTEPTHREEBUTTON_H_
    18 #ifndef WPSWIZARDSTEPTHREEBUTTON_H_
    19 #define WPSWIZARDSTEPTHREEBUTTON_H_
    19 #define WPSWIZARDSTEPTHREEBUTTON_H_
    20 
    20 
    21 // System includes
    21 // System includes
    22 #include <QObject>
    22 #include <QObject>
       
    23 #include <HbDocumentLoader>
    23 
    24 
    24 // User includes
    25 // User includes
    25 #include "wpswizardpage.h"
    26 #include "wpswizardpage.h"
    26 
    27 
    27 // Forward declarations
    28 // Forward declarations
    32 
    33 
    33 // External data types
    34 // External data types
    34 
    35 
    35 // Constants
    36 // Constants
    36 
    37 
       
    38 /*!
       
    39  * @addtogroup group_wps_wizard_plugin
       
    40  * @{
       
    41  */
       
    42 
    37 // Class declaration
    43 // Class declaration
    38 class WpsPageStepThreeButton : public WpsWizardPage
    44 class WpsPageStepThreeButton : public WpsWizardPage
    39     {
    45     {
    40 Q_OBJECT
    46 Q_OBJECT
       
    47 
    41 public:
    48 public:
    42     WpsPageStepThreeButton(WpsWizardPrivate* parent);
    49     explicit WpsPageStepThreeButton(WpsWizardPrivate* parent);
    43     ~WpsPageStepThreeButton();
    50     ~WpsPageStepThreeButton();
    44 
    51 
    45 public:
    52 public:
    46     /*!
    53 
    47      * Creates a visualization of the page.
       
    48      */
       
    49     HbWidget* initializePage();
    54     HbWidget* initializePage();
    50     /*!
    55 
    51      * Returns id of next page. updates settings EapWizard.
       
    52      */
       
    53     int nextId(bool &removeFromStack) const;
    56     int nextId(bool &removeFromStack) const;
    54     /*!
    57 
    55      * Returns how many steps should be gone backwards. 
    58     int previousTriggered();
    56      */
       
    57     int stepsBackwards();
       
    58     /*!
       
    59      * This method is called when Previous button has been pressed.
       
    60      */
       
    61     void previousTriggered();
       
    62     /*!
       
    63      * This method is called when Cancel button has been pressed.
       
    64      */
       
    65     void cancelTriggered();
       
    66     /*!
       
    67      * This method is called when a visualization is displayed to detect
       
    68      * whether next button should be enabled or not.
       
    69      */
       
    70     bool validate() const;
       
    71     
    59     
       
    60 signals:
       
    61 
    72 public slots:
    62 public slots:
       
    63 
       
    64     void loadDocmlSection(Qt::Orientation orientation);
       
    65 
       
    66 protected:
       
    67 
       
    68 protected slots:
    73 
    69 
    74 private:
    70 private:
    75     Q_DISABLE_COPY(WpsPageStepThreeButton)
    71     Q_DISABLE_COPY(WpsPageStepThreeButton)
       
    72 
       
    73 private slots:
       
    74 
       
    75 private: //data    
       
    76     //! Pointer to the widget object
    76     HbWidget *mWidget;
    77     HbWidget *mWidget;
    77     HbRadioButtonList *mRadio;
    78     //! Pointer to the label displaying the heading
    78     HbLabel *mTitle;
       
    79     HbLabel *mHeading;
    79     HbLabel *mHeading;
    80     bool mValid;
    80     //! Document loader object.
       
    81     HbDocumentLoader *mLoader;
    81     };
    82     };
    82 
    83 
    83 /*! @} */
       
    84 
       
    85 #endif /* WPSWIZARDSTEPTHREEBUTTON_H_ */
    84 #endif /* WPSWIZARDSTEPTHREEBUTTON_H_ */