wlanutilities/wpswizard/inc/wpswizardpage.h
changeset 39 7b3e49e4608a
parent 19 10810c91db26
equal deleted inserted replaced
36:682dd021f9be 39:7b3e49e4608a
     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: API for wizard pages
    14 * Description: API for wps wizard pages
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #ifndef WPSWIZARDPAGE_H_
    18 #ifndef WPSWIZARDPAGE_H_
    19 #define WPSWIZARDPAGE_H_
    19 #define WPSWIZARDPAGE_H_
    20 
    20 
    21 
    21 
    22 // System includes
    22 // System includes
       
    23 #include <QObject>
    23 
    24 
    24 // User includes
    25 // User includes
    25 #include "wlanwizardpage.h"
    26 #include "wlanwizardpage.h"
    26 
    27 
    27 // Forward declarations
    28 // Forward declarations
    30 
    31 
    31 
    32 
    32 // External data types
    33 // External data types
    33 // Constants
    34 // Constants
    34 
    35 
       
    36 /*!
       
    37  * @addtogroup group_wps_wizard_plugin
       
    38  * @{
       
    39  */
       
    40 
    35 // Class declaration
    41 // Class declaration
    36 class WpsWizardPage : public QObject, public WlanWizardPage
    42 class WpsWizardPage : public QObject, public WlanWizardPage
    37     {
    43 {
       
    44     Q_OBJECT
       
    45     
    38 public:
    46 public:
    39     enum WpsPageIds
    47     enum WpsPageIds {
    40         {
       
    41         PageWpsWizardStep2 = WlanWizardPage::PageWpsStart,
    48         PageWpsWizardStep2 = WlanWizardPage::PageWpsStart,
    42         PageWpsWizardStep3_Button,
    49         PageWpsWizardStep3_Button,
    43         PageWpsWizardStep3_Number,
    50         PageWpsWizardStep3_Number,
    44         PageWpsWizardStep4,
    51         PageWpsWizardStep4,
    45         PageWpsWizardStep5,
    52         PageWpsWizardStep5,
    46         PageWpsWizardStep6
    53         PageWpsWizardStep6
    47         };
    54     };
       
    55     
       
    56     enum WpsMode {
       
    57         WpsPushButtonMode = 0,
       
    58         WpsPinCodeMode,
       
    59         WpsManualMode
       
    60     };  
       
    61     
    48 public:
    62 public:
    49     WpsWizardPage(WpsWizardPrivate* parent);
    63     explicit WpsWizardPage(WpsWizardPrivate* parent);
    50     virtual ~WpsWizardPage();
    64     virtual ~WpsWizardPage();
    51 
    65 
    52     /*!
    66     /*!
    53      * Creates a visualization of the page.
    67      * Creates a visualization of the page.
    54      */
    68      */
    56     /*!
    70     /*!
    57      * Returns id of next page. updates settings EapWizard.
    71      * Returns id of next page. updates settings EapWizard.
    58      */
    72      */
    59     virtual int nextId(bool &removeFromStack) const = 0;
    73     virtual int nextId(bool &removeFromStack) const = 0;
    60     /*!
    74     /*!
    61      * Returns how many steps should be gone backwars. 
    75      * This method is called when "previous" button has been pressed.
    62      */
    76      */
    63     virtual int stepsBackwards();
    77     virtual int previousTriggered() { return OneStepBackwards;};
    64     /*!
       
    65      * This method is called when a visualization is displayed to detect
       
    66      * whether next button should be enabled or not.
       
    67      */
       
    68     virtual bool validate() const;
       
    69     /*!
       
    70      * This method is called when Previous button has been pressed.
       
    71      */
       
    72     virtual void previousTriggered() = 0;
       
    73     /*!
    78     /*!
    74      * This method is called when Cancel button has been pressed.
    79      * This method is called when Cancel button has been pressed.
    75      */
    80      */
    76     virtual void cancelTriggered() = 0;
    81     virtual void cancelTriggered() {};
       
    82     
       
    83 signals:
       
    84 
       
    85 public slots:
       
    86 
       
    87 protected:
       
    88 
       
    89     //data
       
    90     //! Pointer to private implementation
    77     WpsWizardPrivate* mWizard;
    91     WpsWizardPrivate* mWizard;
       
    92 
       
    93 protected slots:
       
    94 
    78 private:
    95 private:
    79     Q_DISABLE_COPY(WpsWizardPage)
    96     Q_DISABLE_COPY(WpsWizardPage)
    80     };
    97     
    81 
    98 private slots:
    82 /*! @} */
    99     
       
   100 private:
       
   101 	
       
   102 };
    83 
   103 
    84 #endif /* WPSWIZARDPAGE_H_ */
   104 #endif /* WPSWIZARDPAGE_H_ */