equal
deleted
inserted
replaced
29 |
29 |
30 // User includes |
30 // User includes |
31 #include "wlanwizardhelper.h" |
31 #include "wlanwizardhelper.h" |
32 #include "eapwizardpagepacstorepasswordconfirm.h" |
32 #include "eapwizardpagepacstorepasswordconfirm.h" |
33 #include "eapwizard_p.h" |
33 #include "eapwizard_p.h" |
|
34 #include "OstTraceDefinitions.h" |
|
35 #ifdef OST_TRACE_COMPILER_IN_USE |
|
36 #include "eapwizardpagepacstorepasswordconfirmTraces.h" |
|
37 #endif |
|
38 |
34 |
39 |
35 /*! |
40 /*! |
36 \class EapWizardPagePacStorePasswordConfirm |
41 \class EapWizardPagePacStorePasswordConfirm |
37 \brief Implements EAP wizard page: Confirm PAC store password |
42 \brief Implements EAP wizard page: Confirm PAC store password |
38 */ |
43 */ |
58 mValidator(NULL), |
63 mValidator(NULL), |
59 mWidget(NULL), |
64 mWidget(NULL), |
60 mEditPasswordConfirm(NULL), |
65 mEditPasswordConfirm(NULL), |
61 mLabelError(NULL) |
66 mLabelError(NULL) |
62 { |
67 { |
|
68 OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_ENTRY ); |
|
69 OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EXIT ); |
63 } |
70 } |
64 |
71 |
65 /*! |
72 /*! |
66 Destructor. |
73 Destructor. |
67 */ |
74 */ |
68 EapWizardPagePacStorePasswordConfirm::~EapWizardPagePacStorePasswordConfirm() |
75 EapWizardPagePacStorePasswordConfirm::~EapWizardPagePacStorePasswordConfirm() |
69 { |
76 { |
|
77 OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_ENTRY ); |
|
78 OstTraceFunctionExit0( DUP1_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EXIT ); |
70 } |
79 } |
71 |
80 |
72 /*! |
81 /*! |
73 See WlanWizardPage. |
82 See WlanWizardPage. |
74 */ |
83 */ |
75 HbWidget* EapWizardPagePacStorePasswordConfirm::initializePage() |
84 HbWidget* EapWizardPagePacStorePasswordConfirm::initializePage() |
76 { |
85 { |
|
86 OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_INITIALIZEPAGE_ENTRY ); |
77 if (!mWidget) { |
87 if (!mWidget) { |
78 bool ok; |
88 bool ok; |
79 mDocumentLoader.reset( |
89 mDocumentLoader.reset( |
80 new HbDocumentLoader(mWizard->wizardHelper()->mainWindow())); |
90 new HbDocumentLoader(mWizard->wizardHelper()->mainWindow())); |
81 mDocumentLoader->load(":/docml/occ_eap_wizard_08.docml", &ok); |
91 mDocumentLoader->load(":/docml/occ_eap_wizard_08.docml", &ok); |
110 this, |
120 this, |
111 SLOT(loadDocmlSection(Qt::Orientation))); |
121 SLOT(loadDocmlSection(Qt::Orientation))); |
112 Q_ASSERT(ok); |
122 Q_ASSERT(ok); |
113 } |
123 } |
114 |
124 |
|
125 OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_INITIALIZEPAGE_EXIT ); |
115 return mWidget; |
126 return mWidget; |
116 } |
127 } |
117 |
128 |
118 |
129 |
119 /*! |
130 /*! |
121 |
132 |
122 @param [in] orientation Orientation to be loaded. |
133 @param [in] orientation Orientation to be loaded. |
123 */ |
134 */ |
124 void EapWizardPagePacStorePasswordConfirm::loadDocmlSection(Qt::Orientation orientation) |
135 void EapWizardPagePacStorePasswordConfirm::loadDocmlSection(Qt::Orientation orientation) |
125 { |
136 { |
|
137 OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_LOADDOCMLSECTION_ENTRY ); |
126 EapWizardPage::loadDocmlSection( |
138 EapWizardPage::loadDocmlSection( |
127 mDocumentLoader.data(), |
139 mDocumentLoader.data(), |
128 orientation, |
140 orientation, |
129 ":/docml/occ_eap_wizard_08.docml", |
141 ":/docml/occ_eap_wizard_08.docml", |
130 "portrait_section", |
142 "portrait_section", |
131 "landscape_section"); |
143 "landscape_section"); |
|
144 OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_LOADDOCMLSECTION_EXIT ); |
132 } |
145 } |
133 |
146 |
134 /*! |
147 /*! |
135 See WlanWizardPage. |
148 See WlanWizardPage. |
136 |
149 |
138 - EapWizardPage::PageUsernamePassword: When password is ok |
151 - EapWizardPage::PageUsernamePassword: When password is ok |
139 - WlanWizardPage::PageNone: When password is not ok |
152 - WlanWizardPage::PageNone: When password is not ok |
140 */ |
153 */ |
141 int EapWizardPagePacStorePasswordConfirm::nextId() const |
154 int EapWizardPagePacStorePasswordConfirm::nextId() const |
142 { |
155 { |
|
156 OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_NEXTID_ENTRY ); |
143 int id; |
157 int id; |
144 if (mValidator->validate(mEditPasswordConfirm->text()) == |
158 if (mValidator->validate(mEditPasswordConfirm->text()) == |
145 EapQtValidator::StatusOk) { |
159 EapQtValidator::StatusOk) { |
146 |
160 |
147 mWizard->setConfigurations( |
161 mWizard->setConfigurations( |
152 } else { |
166 } else { |
153 id = WlanWizardPage::PageNone; |
167 id = WlanWizardPage::PageNone; |
154 mLabelError->setPlainText(hbTrId("txt_occ_info_incorrect_password")); |
168 mLabelError->setPlainText(hbTrId("txt_occ_info_incorrect_password")); |
155 } |
169 } |
156 |
170 |
|
171 OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_NEXTID_EXIT ); |
157 return id; |
172 return id; |
158 } |
173 } |
159 |
174 |
160 /*! |
175 /*! |
161 See WlanWizardPage::showPage(). |
176 See WlanWizardPage::showPage(). |
164 |
179 |
165 @return true, content is valid always. |
180 @return true, content is valid always. |
166 */ |
181 */ |
167 bool EapWizardPagePacStorePasswordConfirm::showPage() |
182 bool EapWizardPagePacStorePasswordConfirm::showPage() |
168 { |
183 { |
|
184 OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_SHOWPAGE_ENTRY ); |
169 mEditPasswordConfirm->setFocus(); |
185 mEditPasswordConfirm->setFocus(); |
|
186 OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_SHOWPAGE_EXIT ); |
170 return true; |
187 return true; |
171 } |
188 } |
172 |
189 |
173 /*! |
190 /*! |
174 Event filter for HbLineEdit. When editor gets focus a possible error text |
191 Event filter for HbLineEdit. When editor gets focus a possible error text |
178 @param [in] event Event |
195 @param [in] event Event |
179 */ |
196 */ |
180 bool EapWizardPagePacStorePasswordConfirm::eventFilter( |
197 bool EapWizardPagePacStorePasswordConfirm::eventFilter( |
181 QObject *obj, QEvent *event) |
198 QObject *obj, QEvent *event) |
182 { |
199 { |
|
200 OstTraceFunctionEntry0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EVENTFILTER_ENTRY ); |
183 if (obj == mEditPasswordConfirm && event->type() == QEvent::FocusIn) { |
201 if (obj == mEditPasswordConfirm && event->type() == QEvent::FocusIn) { |
184 mLabelError->setPlainText(""); |
202 mLabelError->setPlainText(""); |
185 } |
203 } |
|
204 OstTraceFunctionExit0( EAPWIZARDPAGEPACSTOREPASSWORDCONFIRM_EVENTFILTER_EXIT ); |
186 return false; |
205 return false; |
187 } |
206 } |