17 #ifndef WPSWIZARDSTEPTWO_H_ |
17 #ifndef WPSWIZARDSTEPTWO_H_ |
18 #define WPSWIZARDSTEPTWO_H_ |
18 #define WPSWIZARDSTEPTWO_H_ |
19 |
19 |
20 // System includes |
20 // System includes |
21 #include <QObject> |
21 #include <QObject> |
|
22 #include <HbDocumentLoader> |
22 |
23 |
23 // User includes |
24 // User includes |
24 #include "wpswizardpage.h" |
25 #include "wpswizardpage.h" |
25 |
26 |
26 // Forward declarations |
27 // Forward declarations |
27 class HbRadioButtonList; |
28 class HbRadioButtonList; |
28 class HbWidget; |
29 class HbWidget; |
29 class HbLabel; |
30 class HbLabel; |
30 class WpsWizardPrivate; |
31 class WpsWizardPrivate; |
31 |
32 |
32 |
|
33 // External data types |
33 // External data types |
34 // Constants |
34 // Constants |
35 |
35 |
|
36 /*! |
|
37 * @addtogroup group_wps_wizard_plugin |
|
38 * @{ |
|
39 */ |
36 |
40 |
37 // Class declaration |
41 // Class declaration |
38 class WpsPageStepTwo : public WpsWizardPage |
42 class WpsPageStepTwo : public WpsWizardPage |
39 { |
43 { |
40 Q_OBJECT |
44 Q_OBJECT |
|
45 |
41 public: |
46 public: |
42 WpsPageStepTwo(WpsWizardPrivate* parent); |
47 explicit WpsPageStepTwo(WpsWizardPrivate* parent); |
43 ~WpsPageStepTwo(); |
48 ~WpsPageStepTwo(); |
44 |
49 |
45 public: |
50 public: |
46 /*! |
|
47 * Creates a visualization of the page. |
|
48 */ |
|
49 HbWidget* initializePage(); |
51 HbWidget* initializePage(); |
50 /*! |
52 |
51 * Returns id of next page. updates settings EapWizard. |
|
52 */ |
|
53 int nextId(bool &removeFromStack) const; |
53 int nextId(bool &removeFromStack) const; |
54 /*! |
54 |
55 * Returns how many steps should be gone backwards. |
55 int previousTriggered(); |
56 */ |
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(); |
57 void cancelTriggered(); |
66 /*! |
58 |
67 * This method is called when a visualization is displayed to detect |
59 bool showPage(); |
68 * whether next button should be enabled or not. |
60 |
69 */ |
61 signals: |
70 bool validate() const; |
|
71 |
62 |
72 public slots: |
63 public slots: |
73 /*! |
|
74 * To receive the signal when an item is selected in the list view |
|
75 */ |
|
76 void itemSelected(int index); |
64 void itemSelected(int index); |
|
65 |
|
66 void loadDocmlSection(Qt::Orientation orientation); |
|
67 |
|
68 protected: |
|
69 |
|
70 protected slots: |
77 |
71 |
78 private: |
72 private: |
79 Q_DISABLE_COPY(WpsPageStepTwo) |
73 Q_DISABLE_COPY(WpsPageStepTwo) |
80 |
74 |
|
75 private slots: |
|
76 |
|
77 private: //data |
|
78 //! Pointer to the widget object |
81 HbWidget *mWidget; |
79 HbWidget *mWidget; |
|
80 //! Radio button list object |
82 HbRadioButtonList *mRadio; |
81 HbRadioButtonList *mRadio; |
83 HbLabel *mTitle; |
82 //! Label object used to display the heading |
84 HbLabel *mHeading; |
83 HbLabel *mHeading; |
|
84 //! Variable used to determine whether to enable next button or not |
85 bool mValid; |
85 bool mValid; |
|
86 //! Variable used to store the item selected. |
86 int mItemSelected; |
87 int mItemSelected; |
|
88 //! Document loader object. |
|
89 HbDocumentLoader* mLoader; |
87 }; |
90 }; |
88 |
91 |
89 |
92 |
90 #endif /* WPSWIZARDSTEPTWO_H_ */ |
93 #endif /* WPSWIZARDSTEPTWO_H_ */ |