23 #include <HbListWidget> |
23 #include <HbListWidget> |
24 #include <HbListWidgetItem> |
24 #include <HbListWidgetItem> |
25 #include <HbStyleLoader> |
25 #include <HbStyleLoader> |
26 |
26 |
27 // User includes |
27 // User includes |
28 #ifdef ICT_RESULT_ENUM |
28 #include "wlanqtutils.h" |
29 #include "wlanqtutilscommon.h" |
|
30 #endif |
|
31 #include "wlanwizard_p.h" |
29 #include "wlanwizard_p.h" |
32 #include "wlanwizardplugin.h" |
30 #include "wlanwizardplugin.h" |
33 #include "wlanwizardsummaryviewitem.h" |
31 #include "wlanwizardsummaryviewitem.h" |
34 #include "wlanwizardpagesummary.h" |
32 #include "wlanwizardpagesummary.h" |
35 |
33 |
97 |
95 |
98 return qobject_cast<HbWidget*>(mListWidget); |
96 return qobject_cast<HbWidget*>(mListWidget); |
99 } |
97 } |
100 |
98 |
101 /*! |
99 /*! |
102 See WlanWizardPage::nextId() |
|
103 |
|
104 @note this method is never called, because 'Next' toolbar button is not |
|
105 visible in summary page. |
|
106 |
|
107 @param [out] removeFromStack return value is always false |
|
108 |
|
109 @return WlanWizardPageInternal::PageNone |
|
110 */ |
|
111 int WlanWizardPageSummary::nextId(bool &removeFromStack) const |
|
112 { |
|
113 removeFromStack = false; |
|
114 return WlanWizardPage::PageNone; |
|
115 } |
|
116 |
|
117 /*! |
|
118 Loads docml. |
100 Loads docml. |
119 */ |
101 */ |
120 void WlanWizardPageSummary::loadDocml() |
102 void WlanWizardPageSummary::loadDocml() |
121 { |
103 { |
122 bool ok; |
104 bool ok; |
155 switch (mode) { |
137 switch (mode) { |
156 case CMManagerShim::Adhoc: |
138 case CMManagerShim::Adhoc: |
157 ret = hbTrId("txt_occ_dblist_network_mode_val_adhoc"); |
139 ret = hbTrId("txt_occ_dblist_network_mode_val_adhoc"); |
158 break; |
140 break; |
159 |
141 |
160 case CMManagerShim::Infra: |
|
161 default: |
142 default: |
162 Q_ASSERT(mode == CMManagerShim::Infra); |
143 Q_ASSERT(mode == CMManagerShim::Infra); |
163 if (mWizard->configuration(WlanWizardPrivate::ConfHiddenWlan).toBool()) { |
144 if (mWizard->configuration(WlanWizardPrivate::ConfHiddenWlan).toBool()) { |
164 ret = hbTrId("txt_occ_dblist_network_mode_val_infrastructure_hi"); |
145 ret = hbTrId("txt_occ_dblist_network_mode_val_infrastructure_hi"); |
165 } else { |
146 } else { |
227 appendToListPluginInfo(WlanWizardPlugin::SummaryEapFastProvisioningMode, row); |
207 appendToListPluginInfo(WlanWizardPlugin::SummaryEapFastProvisioningMode, row); |
228 } |
208 } |
229 |
209 |
230 // TODO: Hotspot: no need to show destination.. |
210 // TODO: Hotspot: no need to show destination.. |
231 QString value; |
211 QString value; |
232 #ifdef ICT_RESULT_ENUM |
212 |
233 switch (mWizard->configuration(WlanWizardPrivate::ConfIctStatus).toInt()) { |
213 switch (mWizard->configuration(WlanWizardPrivate::ConfIctStatus).toInt()) { |
234 case IctsPassed: |
214 case WlanQtUtils::IctPassed: |
235 value = hbTrId("txt_occ_dblist_destination_val_internet"); |
215 value = hbTrId("txt_occ_dblist_destination_val_internet"); |
236 appendToList(row, hbTrId("txt_occ_dblist_destination"), value); |
216 appendToList(row, hbTrId("txt_occ_dblist_destination"), value); |
237 break; |
217 break; |
238 case IctsHotspotPassed: |
218 |
239 // Add nothing to list. |
219 case WlanQtUtils::IctFailed: |
240 break; |
|
241 case IctsCanceled: |
|
242 // TODO: Next page: gereric error page. movement should be done from processsettings page not here. |
|
243 break; |
|
244 case IctsFailed: |
|
245 default: |
|
246 value = hbTrId("txt_occ_dblist_destination_val_uncategorized"); |
220 value = hbTrId("txt_occ_dblist_destination_val_uncategorized"); |
247 appendToList(row, hbTrId("txt_occ_dblist_destination"), value); |
221 appendToList(row, hbTrId("txt_occ_dblist_destination"), value); |
248 } |
222 break; |
249 #else |
223 |
250 if (mWizard->configuration(WlanWizardPrivate::ConfIctStatus).toBool()) { |
224 default: |
251 value = hbTrId("txt_occ_dblist_destination_val_internet"); |
225 Q_ASSERT(WlanQtUtils::IctHotspotPassed == mWizard->configuration(WlanWizardPrivate::ConfIctStatus).toInt()); |
252 } else { |
226 // Add nothing to list. |
253 value = hbTrId("txt_occ_dblist_destination_val_uncategorized"); |
227 break; |
254 } |
228 } |
255 appendToList(row, hbTrId("txt_occ_dblist_destination"), value); |
|
256 #endif |
|
257 } |
229 } |
258 |
230 |
259 /*! |
231 /*! |
260 Appends new item to the end of the summary list |
232 Appends new item to the end of the summary list |
261 |
233 |