|
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 #include <HbDocumentLoader> |
|
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 // Constants |
|
35 |
|
36 /*! |
|
37 * @addtogroup group_wps_wizard_plugin |
|
38 * @{ |
|
39 */ |
|
40 |
|
41 // Class declaration |
|
42 class WpsPageStepTwo : public WpsWizardPage |
|
43 { |
|
44 Q_OBJECT |
|
45 |
|
46 public: |
|
47 explicit WpsPageStepTwo(WpsWizardPrivate* parent); |
|
48 ~WpsPageStepTwo(); |
|
49 |
|
50 public: |
|
51 HbWidget* initializePage(); |
|
52 |
|
53 int nextId(bool &removeFromStack) const; |
|
54 |
|
55 int previousTriggered(); |
|
56 |
|
57 void cancelTriggered(); |
|
58 |
|
59 bool showPage(); |
|
60 |
|
61 signals: |
|
62 |
|
63 public slots: |
|
64 void itemSelected(int index); |
|
65 |
|
66 void loadDocmlSection(Qt::Orientation orientation); |
|
67 |
|
68 protected: |
|
69 |
|
70 protected slots: |
|
71 |
|
72 private: |
|
73 Q_DISABLE_COPY(WpsPageStepTwo) |
|
74 |
|
75 private slots: |
|
76 |
|
77 private: //data |
|
78 //! Pointer to the widget object |
|
79 HbWidget *mWidget; |
|
80 //! Radio button list object |
|
81 HbRadioButtonList *mRadio; |
|
82 //! Label object used to display the heading |
|
83 HbLabel *mHeading; |
|
84 //! Variable used to determine whether to enable next button or not |
|
85 bool mValid; |
|
86 //! Variable used to store the item selected. |
|
87 int mItemSelected; |
|
88 //! Document loader object. |
|
89 HbDocumentLoader* mLoader; |
|
90 }; |
|
91 |
|
92 |
|
93 #endif /* WPSWIZARDSTEPTWO_H_ */ |