31 // Forward declarations |
27 // Forward declarations |
32 class HbRadioButtonList; |
28 class HbRadioButtonList; |
33 class HbLabel; |
29 class HbLabel; |
34 class WlanWizardPrivate; |
30 class WlanWizardPrivate; |
35 class HbDocumentLoader; |
31 class HbDocumentLoader; |
|
32 class WlanNetworkSetting; |
36 |
33 |
37 // External data types |
34 // External data types |
38 |
35 |
39 // Constants |
36 // Constants |
40 |
37 |
46 class WlanWizardPageNetworkMode : public WlanWizardPageInternal |
43 class WlanWizardPageNetworkMode : public WlanWizardPageInternal |
47 { |
44 { |
48 Q_OBJECT |
45 Q_OBJECT |
49 public: |
46 public: |
50 |
47 |
51 /*! |
48 explicit WlanWizardPageNetworkMode(WlanWizardPrivate* parent); |
52 * Constructor method for the network mode view object |
49 virtual ~WlanWizardPageNetworkMode(); |
53 * @param parent pointer to parent object. |
|
54 */ |
|
55 WlanWizardPageNetworkMode(WlanWizardPrivate* parent); |
|
56 |
|
57 /*! |
|
58 * Destructor for the network mode view object. |
|
59 */ |
|
60 ~WlanWizardPageNetworkMode(); |
|
61 |
|
62 |
50 |
63 public: // From WlanWizardPageInternal |
51 public: // From WlanWizardPageInternal |
64 /*! |
|
65 * Page initialization procedures. Inherited from WlanWizardPage. |
|
66 */ |
|
67 HbWidget* initializePage(); |
52 HbWidget* initializePage(); |
68 |
53 int nextId(bool &removeFromStack) const; |
69 /*! |
|
70 * Evaluates the network mode selection and sets the configuration in |
|
71 * the wlanwizard. |
|
72 * @param removeFromStack output parameter that returns false |
|
73 * @return WlanWizardPageSecurityMode page id. |
|
74 */ |
|
75 int nextId(bool &removeFromStack) const; |
|
76 |
|
77 /*! |
|
78 * This method is overrides the default implementation from WlanWizardPage. |
|
79 * It indicates whether the Next-button should be enabled or not. |
|
80 * @return true, if a mode has been selected. |
|
81 */ |
|
82 bool showPage(); |
54 bool showPage(); |
83 |
55 |
|
56 signals: |
|
57 |
84 public slots: |
58 public slots: |
85 /*! |
59 void itemSelected(); |
86 * Is invoked when user selects a mode from the radio button list. |
60 void loadDocmlSection(Qt::Orientation orientation); |
87 * (HbRadioButtonList's itemSelected-signal) |
61 |
88 */ |
62 protected: |
89 void itemSelected(int index); |
63 |
90 |
64 protected slots: |
91 /*! |
|
92 * Loads the document orientation information from occ_add_wlan_02_03.docml. |
|
93 * This is called each time phone orientation changes. |
|
94 * @param orientation indicates whether the phone is in portrait or |
|
95 * landscape mode. |
|
96 */ |
|
97 void loadDocml(Qt::Orientation orientation); |
|
98 |
65 |
99 private: |
66 private: |
100 |
67 Q_DISABLE_COPY(WlanWizardPageNetworkMode) |
101 /*! |
|
102 * A support function to map the radio button list to a generic network |
|
103 * mode list. This enables the changing of button order without it |
|
104 * affecting the entire class. |
|
105 */ |
|
106 void addToList(QStringList &list, const QString &item, int mode, bool isHidden); |
68 void addToList(QStringList &list, const QString &item, int mode, bool isHidden); |
107 |
69 void populateRadioButtonList(QStringList &list); |
|
70 int selectNextPage(const WlanNetworkSetting &setting) const; |
|
71 |
|
72 private slots: |
|
73 |
|
74 private: |
108 /*! |
75 /*! |
109 * Pointer to the view. |
76 * Pointer to the view. |
110 */ |
77 */ |
111 HbWidget *mWidget; |
78 HbWidget *mWidget; |
112 |
79 |