|
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 void loadDocmlSection(Qt::Orientation orientation); |
|
71 |
|
72 protected: |
|
73 |
|
74 protected slots: |
|
75 |
|
76 private: |
|
77 Q_DISABLE_COPY(WpsPageStepThreeNumber) |
|
78 |
|
79 private slots: |
|
80 |
|
81 private: //data |
|
82 //! Pointer to the widget object. |
|
83 HbWidget *mWidget; |
|
84 //! Label object used for displaying the heading. |
|
85 HbLabel *mHeading; |
|
86 //! Document loader object |
|
87 HbDocumentLoader *mLoader; |
|
88 }; |
|
89 |
|
90 #endif /* WPSWIZARDSTEPTHREENUMBER_H_ */ |