41 m_activeNoteId(0), |
41 m_activeNoteId(0), |
42 m_helper(helper) |
42 m_helper(helper) |
43 { |
43 { |
44 DPRINT << ": IN"; |
44 DPRINT << ": IN"; |
45 |
45 |
46 m_cpSettingsWrapper = new CpSettingsWrapper; |
46 m_cpSettingsWrapper = new SettingsWrapper; |
47 m_pSetWrapper = new PSetWrapper; |
47 m_pSetWrapper = new PSetWrapper; |
48 DPRINT << "PSetWrapper created"; |
48 DPRINT << "PSetWrapper created"; |
49 |
49 |
50 m_callWaitingWrapper = &m_pSetWrapper->callWaitingWrapper(); |
50 m_callWaitingWrapper = &m_pSetWrapper->callWaitingWrapper(); |
51 DPRINT << "call waiting wrapper created"; |
51 DPRINT << "call waiting wrapper created"; |
158 m_DataItemShowCallDuration->setObjectName( |
158 m_DataItemShowCallDuration->setObjectName( |
159 "showCallDurationDataItem"); |
159 "showCallDurationDataItem"); |
160 |
160 |
161 if (showCallDurationStatus) { |
161 if (showCallDurationStatus) { |
162 m_DataItemShowCallDuration->setContentWidgetData( |
162 m_DataItemShowCallDuration->setContentWidgetData( |
163 "text", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); |
163 "text", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_on"))); |
164 m_DataItemShowCallDuration->setContentWidgetData( |
164 m_DataItemShowCallDuration->setContentWidgetData( |
165 "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_no"))); |
165 "additionalText", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_off"))); |
166 } else { |
166 } else { |
167 m_DataItemShowCallDuration->setContentWidgetData( |
167 m_DataItemShowCallDuration->setContentWidgetData( |
168 "text", QVariant(hbTrId("txt_phone_setlabel_val_no"))); |
168 "text", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_off"))); |
169 m_DataItemShowCallDuration->setContentWidgetData( |
169 m_DataItemShowCallDuration->setContentWidgetData( |
170 "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); |
170 "additionalText", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_on"))); |
171 } |
171 } |
172 |
172 |
173 DPRINT << ": OUT"; |
173 DPRINT << ": OUT"; |
174 } |
174 } |
175 |
175 |
371 bool showCallDurationStatus = m_cpSettingsWrapper->showCallDuration(); |
371 bool showCallDurationStatus = m_cpSettingsWrapper->showCallDuration(); |
372 DPRINT << ": ongoing call case, status: " << showCallDurationStatus; |
372 DPRINT << ": ongoing call case, status: " << showCallDurationStatus; |
373 |
373 |
374 if (showCallDurationStatus) { |
374 if (showCallDurationStatus) { |
375 m_DataItemShowCallDuration->setContentWidgetData( |
375 m_DataItemShowCallDuration->setContentWidgetData( |
376 "text", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); |
376 "text", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_on"))); |
377 m_DataItemShowCallDuration->setContentWidgetData( |
377 m_DataItemShowCallDuration->setContentWidgetData( |
378 "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_no"))); |
378 "additionalText", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_off"))); |
379 } else { |
379 } else { |
380 m_DataItemShowCallDuration->setContentWidgetData( |
380 m_DataItemShowCallDuration->setContentWidgetData( |
381 "text", QVariant(hbTrId("txt_phone_setlabel_val_no"))); |
381 "text", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_off"))); |
382 m_DataItemShowCallDuration->setContentWidgetData( |
382 m_DataItemShowCallDuration->setContentWidgetData( |
383 "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); |
383 "additionalText", QVariant(hbTrId("txt_phone_setlabel_show_call_duration_val_on"))); |
384 } |
384 } |
385 emit showGlobalNote( |
385 emit showGlobalNote( |
386 m_activeNoteId, |
386 m_activeNoteId, |
387 emit hbTrId("txt_phone_info_not_allowed"), |
387 emit hbTrId("txt_phone_info_not_allowed"), |
388 HbMessageBox::MessageTypeWarning); |
388 HbMessageBox::MessageTypeWarning); |
389 } else { |
389 } else { |
390 if (showCallDurationText == hbTrId("txt_phone_setlabel_val_yes")) { |
390 if (showCallDurationText == hbTrId("txt_phone_setlabel_show_call_duration_val_on")) { |
391 m_cpSettingsWrapper->setShowCallDuration(true); |
391 m_cpSettingsWrapper->setShowCallDuration(true); |
392 } else if (showCallDurationText == hbTrId("txt_phone_setlabel_val_no")){ |
392 } else if (showCallDurationText == hbTrId("txt_phone_setlabel_show_call_duration_val_off")){ |
393 m_cpSettingsWrapper->setShowCallDuration(false); |
393 m_cpSettingsWrapper->setShowCallDuration(false); |
394 } else { |
394 } else { |
395 DPRINT << "nothing done"; |
395 DPRINT << "nothing done"; |
396 } |
396 } |
397 } |
397 } |