wlanutilities/wpswizard/inc/wpswizardstepthreebutton.h
changeset 37 195ec9e7dd85
parent 33 f54b8905a6ee
equal deleted inserted replaced
33:f54b8905a6ee 37:195ec9e7dd85
     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: Step 3 Button press mode
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef WPSWIZARDSTEPTHREEBUTTON_H_
       
    19 #define WPSWIZARDSTEPTHREEBUTTON_H_
       
    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 WpsWizardPrivate;
       
    32 
       
    33 // External data types
       
    34 
       
    35 // Constants
       
    36 
       
    37 // Class declaration
       
    38 class WpsPageStepThreeButton : public WpsWizardPage
       
    39     {
       
    40 Q_OBJECT
       
    41 public:
       
    42     WpsPageStepThreeButton(WpsWizardPrivate* parent);
       
    43     ~WpsPageStepThreeButton();
       
    44 
       
    45 public:
       
    46     /*!
       
    47      * Creates a visualization of the page.
       
    48      */
       
    49     HbWidget* initializePage();
       
    50     /*!
       
    51      * Returns id of next page. updates settings EapWizard.
       
    52      */
       
    53     int nextId(bool &removeFromStack) const;
       
    54     /*!
       
    55      * Returns how many steps should be gone backwards. 
       
    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     
       
    72 public slots:
       
    73 
       
    74 private:
       
    75     Q_DISABLE_COPY(WpsPageStepThreeButton)
       
    76     HbWidget *mWidget;
       
    77     HbRadioButtonList *mRadio;
       
    78     HbLabel *mTitle;
       
    79     HbLabel *mHeading;
       
    80     bool mValid;
       
    81     };
       
    82 
       
    83 /*! @} */
       
    84 
       
    85 #endif /* WPSWIZARDSTEPTHREEBUTTON_H_ */