wlanutilities/wpswizard/inc/wpswizardstepthreenumber.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     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 Number mode
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef WPSWIZARDSTEPTHREENUMBER_H_
       
    19 #define WPSWIZARDSTEPTHREENUMBER_H_
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 #include <HbDocumentLoader>
       
    24 
       
    25 // User includes
       
    26 #include "wpswizardpage.h"
       
    27 
       
    28 // Forward declarations
       
    29 class HbRadioButtonList;
       
    30 class HbWidget;
       
    31 class HbLabel;
       
    32 class WpsWizardPrivate;
       
    33 
       
    34 // External data types
       
    35 // Constants
       
    36 
       
    37 /*!
       
    38  * @addtogroup group_wps_wizard_plugin
       
    39  * @{
       
    40  */
       
    41 
       
    42 // Class declaration
       
    43 class WpsPageStepThreeNumber : public WpsWizardPage
       
    44 {
       
    45 Q_OBJECT
       
    46 
       
    47 public:
       
    48     explicit WpsPageStepThreeNumber(WpsWizardPrivate* parent);
       
    49     ~WpsPageStepThreeNumber();
       
    50 
       
    51 public:
       
    52     HbWidget* initializePage();
       
    53 
       
    54     int nextId(bool &removeFromStack) const;
       
    55 
       
    56     int previousTriggered();
       
    57 
       
    58     void cancelTriggered();
       
    59 
       
    60     bool showPage();
       
    61 
       
    62 private:
       
    63     int computeRandNumber();
       
    64 
       
    65     int computeCheckSum(int aPin);
       
    66 
       
    67 signals:
       
    68 
       
    69 public slots:
       
    70 
       
    71 protected:
       
    72 
       
    73 protected slots:
       
    74 
       
    75 private:
       
    76     Q_DISABLE_COPY(WpsPageStepThreeNumber)
       
    77 
       
    78 private slots:
       
    79 
       
    80 private: //data
       
    81     //! Pointer to the widget object.
       
    82     HbWidget *mWidget;
       
    83     //! Label object used for displaying the heading.
       
    84     HbLabel *mHeading;
       
    85     //! Document loader object
       
    86     HbDocumentLoader *mLoader;
       
    87 };
       
    88 
       
    89 #endif /* WPSWIZARDSTEPTHREENUMBER_H_ */