wlanutilities/wpswizard/inc/wpswizardstepfour.h
branchGCC_SURGE
changeset 47 b3d8f88532b7
parent 19 10810c91db26
parent 46 2fbd1d709fe7
equal deleted inserted replaced
34:30a5f517c615 47:b3d8f88532b7
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: WPS wizard page step 4
    14 * Description: WPS wizard page step 4
    15 *
    15 *
    16 */
    16 */
       
    17 
    17 #ifndef WPSWIZARDSTEPFOUR_H_
    18 #ifndef WPSWIZARDSTEPFOUR_H_
    18 #define WPSWIZARDSTEPFOUR_H_
    19 #define WPSWIZARDSTEPFOUR_H_
    19 
    20 
    20 
    21 
    21 // System includes
    22 // System includes
    22 #include <QObject>
    23 #include <QObject>
    23 #include<e32base.h>
    24 #include <HbDocumentLoader>
    24 
    25 
    25 // User includes
    26 // User includes
    26 #include "wpswizardpage.h"
    27 #include "wpswizardpage.h"
    27 #include "mwpsactiverunnercallback.h"
    28 #include "mwpsactiverunnercallback.h"
    28 #include "cwpsactiverunner.h"
    29 #include "cwpsactiverunner.h"
    29 
    30 
    30 // Forward declarations
    31 // Forward declarations
    31 class HbRadioButtonList;
       
    32 class HbWidget;
    32 class HbWidget;
    33 class HbLabel;
       
    34 class HbProgressBar;
       
    35 class WpsWizardPrivate;
    33 class WpsWizardPrivate;
       
    34 class WpsPageStepFourPrivate;
    36 
    35 
    37 // External data types
    36 // External data types
    38 // Constants
    37 // Constants
    39 
    38 
       
    39 /*!
       
    40  * @addtogroup group_wps_wizard_plugin
       
    41  * @{
       
    42  */
       
    43 
    40 // Class declaration
    44 // Class declaration
    41 class WpsPageStepFour : public WpsWizardPage, public MWpsActiveRunnerCallback
    45 class WpsPageStepFour : public WpsWizardPage
    42     {
    46     {
    43 Q_OBJECT
    47 Q_OBJECT
       
    48 
    44 public:
    49 public:
    45     WpsPageStepFour(WpsWizardPrivate* parent);
    50 
       
    51     explicit WpsPageStepFour(WpsWizardPrivate* parent);
    46     ~WpsPageStepFour();
    52     ~WpsPageStepFour();
    47 
    53 
    48 public:
    54 public:
    49     /*!
    55 
    50      * Creates a visualization of the page.
       
    51      */
       
    52     HbWidget* initializePage();
    56     HbWidget* initializePage();
    53     /*!
    57 
    54      * Returns id of next page. updates settings EapWizard.
       
    55      */
       
    56     int nextId(bool &removeFromStack) const;
    58     int nextId(bool &removeFromStack) const;
    57     /*!
    59 
    58      * Returns how many steps should be gone backwards. 
    60     int previousTriggered();
    59      */
    61 
    60     int stepsBackwards();
       
    61     /*!
       
    62      * This method is called when Previous button has been pressed.
       
    63      */
       
    64     void previousTriggered();
       
    65     /*!
       
    66      * This method is called when Cancel button has been pressed.
       
    67      */
       
    68     void cancelTriggered();
    62     void cancelTriggered();
    69     /*!
    63 
    70      * This method is called when a visualization is displayed to detect
    64     void startOperation();
    71      * whether next button should be enabled or not.
    65 
    72      */
    66     bool requiresStartOperation();
    73     bool validate() const;
    67 
    74     /*!
    68     void setCredentials(
    75      * From mwpsactiverunnercallback.h
    69             QList<TWlanProtectedSetupCredentialAttribute>& credentials,
    76      * This method is called from the active runner class to notify the end
    70             int credentialscount);
    77      * of operation
    71 
    78      */
    72     void handleError( int aErrorCode );
    79     void WpsActiveRunnerStopped(
    73 
    80             QList<TWlanProtectedSetupCredentialAttribute>& aCredentials,
    74     bool showPage();
    81             TInt aError);
    75 
       
    76 signals:
    82 
    77 
    83 public slots:
    78 public slots:
    84 
    79 
       
    80     void loadDocmlSection(Qt::Orientation orientation);
       
    81 
       
    82 protected:
       
    83 
       
    84 protected slots:
       
    85 
    85 private:
    86 private:
       
    87 
       
    88     void startWpsRunner();
       
    89 
    86     Q_DISABLE_COPY(WpsPageStepFour)
    90     Q_DISABLE_COPY(WpsPageStepFour)
    87     void StartWpsRunner();
       
    88 
    91 
       
    92 private slots:
       
    93 
       
    94 private:
       
    95 
       
    96     //data
       
    97 
       
    98     //! HbWidget object displayed on the page
    89     HbWidget *mWidget;
    99     HbWidget *mWidget;
    90     HbRadioButtonList *mRadio;
   100     //! Member variable to hold the result of of the WPS operation
    91     HbLabel *mTitle;
       
    92     HbLabel *mHeading;
       
    93     HbProgressBar *mProgressBar;
       
    94     CWpsActiveRunner *mWpsActiveRunner;
       
    95     int mWpsErrorCode;
   101     int mWpsErrorCode;
    96     int countCredentials;
   102     //! Member variable containing the count of received settings.
       
   103     int mCountCredentials;
       
   104     //! variable to determine whether to enable the next button or not.
    97     bool mValid;
   105     bool mValid;
       
   106     //! Document loader object.
       
   107     HbDocumentLoader *mLoader;
       
   108     //! Pointer to Private Implementation
       
   109     QScopedPointer<WpsPageStepFourPrivate> d_ptr;
    98 
   110 
       
   111     friend class TestWlanWizardContext;
    99     };
   112     };
   100 
   113 
   101 /*! @} */
       
   102 
       
   103 #endif /* WPSWIZARDSTEPFOUR_H_ */
   114 #endif /* WPSWIZARDSTEPFOUR_H_ */