|
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 2 |
|
15 * |
|
16 */ |
|
17 #ifndef WPSWIZARDSTEPTWO_H_ |
|
18 #define WPSWIZARDSTEPTWO_H_ |
|
19 |
|
20 // System includes |
|
21 #include <QObject> |
|
22 |
|
23 // User includes |
|
24 #include "wpswizardpage.h" |
|
25 |
|
26 // Forward declarations |
|
27 class HbRadioButtonList; |
|
28 class HbWidget; |
|
29 class HbLabel; |
|
30 class WpsWizardPrivate; |
|
31 |
|
32 |
|
33 // External data types |
|
34 // Constants |
|
35 |
|
36 |
|
37 // Class declaration |
|
38 class WpsPageStepTwo : public WpsWizardPage |
|
39 { |
|
40 Q_OBJECT |
|
41 public: |
|
42 WpsPageStepTwo(WpsWizardPrivate* parent); |
|
43 ~WpsPageStepTwo(); |
|
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 * To receive the signal when an item is selected in the list view |
|
75 */ |
|
76 void itemSelected(int index); |
|
77 |
|
78 private: |
|
79 Q_DISABLE_COPY(WpsPageStepTwo) |
|
80 |
|
81 HbWidget *mWidget; |
|
82 HbRadioButtonList *mRadio; |
|
83 HbLabel *mTitle; |
|
84 HbLabel *mHeading; |
|
85 bool mValid; |
|
86 int mItemSelected; |
|
87 }; |
|
88 |
|
89 |
|
90 #endif /* WPSWIZARDSTEPTWO_H_ */ |