wlanutilities/wpswizard/inc/wpswizardstepfive.h
changeset 38 2dc6da6fb431
parent 29 dbe86d96ce5b
child 41 a87deff717bc
child 45 d9ec2b8c6bad
equal deleted inserted replaced
29:dbe86d96ce5b 38:2dc6da6fb431
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: WPS wizard page step 5
       
    15 *
       
    16 */
       
    17 #ifndef WPSWIZARDSTEPFIVE_H_
       
    18 #define WPSWIZARDSTEPFIVE_H_
       
    19 
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 
       
    24 // User includes
       
    25 #include "wpswizardpage.h"
       
    26 
       
    27 // Forward declarations
       
    28 class HbRadioButtonList;
       
    29 class HbWidget;
       
    30 class HbLabel;
       
    31 class HbProgressBar;
       
    32 class WpsWizardPrivate;
       
    33 
       
    34 
       
    35 // External data types
       
    36 // Constants
       
    37 
       
    38 // Class declaration
       
    39 class WpsPageStepFive : public WpsWizardPage
       
    40     {
       
    41 Q_OBJECT
       
    42 public:
       
    43     WpsPageStepFive(WpsWizardPrivate* parent);
       
    44     ~WpsPageStepFive();
       
    45 
       
    46 public:
       
    47     /*!
       
    48      * Creates a visualization of the page.
       
    49      */
       
    50     HbWidget* initializePage();
       
    51     /*!
       
    52      * Returns id of next page. updates settings EapWizard.
       
    53      */
       
    54     int nextId(bool &removeFromStack) const;
       
    55     /*!
       
    56      * Returns how many steps should be gone backwards. 
       
    57      */
       
    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();
       
    67     /*!
       
    68      * This method is called when a visualization is displayed to detect
       
    69      * whether next button should be enabled or not.
       
    70      */
       
    71     bool validate() const;
       
    72 
       
    73 public slots:
       
    74     void itemSelected(int index);
       
    75 
       
    76 private:
       
    77     Q_DISABLE_COPY(WpsPageStepFive)
       
    78     HbWidget *mWidget;
       
    79     HbRadioButtonList *mRadio;
       
    80     HbLabel *mTitle;
       
    81     HbLabel *mHeading;
       
    82     bool mValid;
       
    83     };
       
    84 
       
    85 /*! @} */
       
    86 
       
    87 #endif /* WPSWIZARDSTEPFIVE_H_ */