42 */ |
42 */ |
43 |
43 |
44 class WlanWizardPageSsid: public WlanWizardPageInternal |
44 class WlanWizardPageSsid: public WlanWizardPageInternal |
45 { |
45 { |
46 Q_OBJECT |
46 Q_OBJECT |
47 friend class TestWlanWizardUi; |
|
48 public: |
47 public: |
49 /*! |
48 explicit WlanWizardPageSsid(WlanWizardPrivate* parent); |
50 * Constructor method for the SSID query view object. |
49 virtual ~WlanWizardPageSsid(); |
51 * @param parent pointer to parent object. |
|
52 */ |
|
53 WlanWizardPageSsid(WlanWizardPrivate* parent); |
|
54 |
50 |
55 /*! |
51 public: |
56 * Destructor for the SSID query view object. |
52 HbWidget* initializePage(); |
57 */ |
53 virtual bool showPage(); |
58 ~WlanWizardPageSsid(); |
54 int nextId(bool &removeFromStack) const; |
59 |
55 |
60 /*! |
56 signals: |
61 * Page initialization procedures. Inherited from WlanWizardPage. |
|
62 */ |
|
63 HbWidget* initializePage(); |
|
64 |
57 |
65 /*! |
58 public slots: |
66 * This method is overrides the default implementation from WlanWizardPage. |
59 void loadDocmlSection(Qt::Orientation orientation); |
67 * It indicates whether the Next-button should be enabled or not. |
|
68 * @return true, if mSsid edit field is not empty. |
|
69 */ |
|
70 virtual bool showPage(); |
|
71 |
|
72 /*! |
|
73 * Validates the SSID selection and sets the configuration in |
|
74 * the wlanwizard. |
|
75 * @param removeFromStack output parameter that returns false. |
|
76 * @return WlanWizardPageScanning page id. |
|
77 */ |
|
78 int nextId(bool &removeFromStack) const; |
|
79 |
|
80 public slots: |
|
81 /*! |
|
82 * Loads the document orientation information from occ_add_wlan_01_04.docml |
|
83 * This is called each time phone orientation changes. |
|
84 * @param orientation indicates whether the phone is in portrait or |
|
85 * landscape mode. |
|
86 */ |
|
87 void loadDocml(Qt::Orientation orientation); |
|
88 |
|
89 /*! |
|
90 * Executed when changes have been made to the mSsid field. |
|
91 * @param text is not used at this point. |
|
92 */ |
|
93 void textChanged(const QString &text); |
60 void textChanged(const QString &text); |
94 |
61 |
95 protected: |
62 protected: |
96 /*! |
|
97 * Reimplements QObject function that is invoked on any event. This |
|
98 * function handles only a focus event to mSsid edit field. |
|
99 * @param obj contains the object, where the event originates from. |
|
100 * @param event contains the event id. |
|
101 */ |
|
102 bool eventFilter(QObject *obj, QEvent *event); |
|
103 |
63 |
|
64 protected slots: |
|
65 |
104 private: |
66 private: |
105 /*! |
67 Q_DISABLE_COPY(WlanWizardPageSsid) |
106 * Converts status identifier to plain-text QString format. |
68 |
107 * @param status indicates SSID status code. |
69 private slots: |
108 * @return status text. |
|
109 */ |
|
110 QString SsidStatusToErrorString(WlanWizardUtils::SsidStatus status) const; |
|
111 |
70 |
112 private: |
71 private: |
113 /*! |
72 /*! |
114 * Pointer to the view. |
73 * Pointer to the view. |
115 */ |
74 */ |