153 m_DataItemShowCallDuration = |
153 m_DataItemShowCallDuration = |
154 new CpSettingFormItemData( |
154 new CpSettingFormItemData( |
155 HbDataFormModelItem::ToggleValueItem, |
155 HbDataFormModelItem::ToggleValueItem, |
156 hbTrId("txt_phone_formlabel_show_call_duration"), |
156 hbTrId("txt_phone_formlabel_show_call_duration"), |
157 this); |
157 this); |
158 |
158 m_DataItemShowCallDuration->setObjectName( |
|
159 "showCallDurationDataItem"); |
|
160 |
159 if (showCallDurationStatus) { |
161 if (showCallDurationStatus) { |
160 m_DataItemShowCallDuration->setContentWidgetData( |
162 m_DataItemShowCallDuration->setContentWidgetData( |
161 "text", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); |
163 "text", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); |
162 m_DataItemShowCallDuration->setContentWidgetData( |
164 m_DataItemShowCallDuration->setContentWidgetData( |
163 "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_no"))); |
165 "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_no"))); |
190 m_DataItemSoftRejectTextEditor = |
192 m_DataItemSoftRejectTextEditor = |
191 new CpSettingFormItemData( |
193 new CpSettingFormItemData( |
192 HbDataFormModelItem::TextItem, |
194 HbDataFormModelItem::TextItem, |
193 hbTrId("txt_phone_setlabel_soft_reject"), |
195 hbTrId("txt_phone_setlabel_soft_reject"), |
194 this); |
196 this); |
|
197 m_DataItemSoftRejectTextEditor->setObjectName( |
|
198 "softRejectTextEditorDataItem"); |
|
199 |
195 m_DataItemSoftRejectTextEditor->setContentWidgetData( |
200 m_DataItemSoftRejectTextEditor->setContentWidgetData( |
196 "text", QVariant(softRejectText)); |
201 "text", QVariant(softRejectText)); |
197 m_DataItemSoftRejectTextEditor->setContentWidgetData( |
202 m_DataItemSoftRejectTextEditor->setContentWidgetData( |
198 "maxLength", QVariant(160)); |
203 "maxLength", QVariant(160)); |
199 m_DataItemSoftRejectTextEditor->setContentWidgetData( |
204 m_DataItemSoftRejectTextEditor->setContentWidgetData( |
215 m_DataItemCLI = |
220 m_DataItemCLI = |
216 new CpSettingFormItemData( |
221 new CpSettingFormItemData( |
217 HbDataFormModelItem::ComboBoxItem, |
222 HbDataFormModelItem::ComboBoxItem, |
218 hbTrId("txt_phone_setlabel_send_my_caller_id"), |
223 hbTrId("txt_phone_setlabel_send_my_caller_id"), |
219 this); |
224 this); |
|
225 m_DataItemCLI->setObjectName("cliDataItem"); |
|
226 |
220 // CLI combo box items string list |
227 // CLI combo box items string list |
221 QStringList list; |
228 QStringList list; |
222 QMapIterator<int, QString> cliSettingMapIterator(m_cliSettingMap); |
229 QMapIterator<int, QString> cliSettingMapIterator(m_cliSettingMap); |
223 while (cliSettingMapIterator.hasNext()) { |
230 while (cliSettingMapIterator.hasNext()) { |
224 cliSettingMapIterator.next(); |
231 cliSettingMapIterator.next(); |
245 m_OwnVideoInReceivedCall = |
252 m_OwnVideoInReceivedCall = |
246 new CpSettingFormItemData( |
253 new CpSettingFormItemData( |
247 HbDataFormModelItem::ComboBoxItem, |
254 HbDataFormModelItem::ComboBoxItem, |
248 hbTrId("txt_phone_setlabel_own_video_in_received_call"), |
255 hbTrId("txt_phone_setlabel_own_video_in_received_call"), |
249 this); |
256 this); |
250 |
257 m_OwnVideoInReceivedCall->setObjectName( |
|
258 "ownVideoInReceivedCallDataItem"); |
|
259 |
251 QStringList ownVideoSelections; |
260 QStringList ownVideoSelections; |
252 ownVideoSelections |
261 ownVideoSelections |
253 <<hbTrId("txt_phone_setlabel_own_video_in_val_show_automatic") |
262 <<hbTrId("txt_phone_setlabel_own_video_in_val_show_automatic") |
254 <<hbTrId("txt_phone_setlabel_own_video_in_val_ask_first") |
263 <<hbTrId("txt_phone_setlabel_own_video_in_val_ask_first") |
255 <<hbTrId("txt_phone_setlabel_own_video_in_val_dont_show"); |
264 <<hbTrId("txt_phone_setlabel_own_video_in_val_dont_show"); |
275 m_DataItemCallWaiting = |
284 m_DataItemCallWaiting = |
276 new CpSettingFormItemData( |
285 new CpSettingFormItemData( |
277 HbDataFormModelItem::ToggleValueItem, |
286 HbDataFormModelItem::ToggleValueItem, |
278 hbTrId("txt_phone_setlabel_call_waiting"), |
287 hbTrId("txt_phone_setlabel_call_waiting"), |
279 this); |
288 this); |
280 |
289 m_DataItemCallWaiting->setObjectName("callWaitingDataItem"); |
281 m_DataItemCallWaiting->setContentWidgetData( |
290 m_DataItemCallWaiting->setContentWidgetData( |
282 "text", QVariant(hbTrId("txt_phone_setlabel_call_waiting_val_check_status"))); |
291 "text", QVariant(hbTrId("txt_phone_setlabel_call_waiting_val_check_status"))); |
283 m_DataItemCallWaiting->setContentWidgetData( |
292 m_DataItemCallWaiting->setContentWidgetData( |
284 "additionalText", QVariant(hbTrId("txt_phone_setlabel_call_waiting_val_check_status"))); |
293 "additionalText", QVariant(hbTrId("txt_phone_setlabel_call_waiting_val_check_status"))); |
285 |
294 |
290 /*! |
299 /*! |
291 CpCallsPluginGroup::connectShowCallDurationItem. |
300 CpCallsPluginGroup::connectShowCallDurationItem. |
292 */ |
301 */ |
293 void CpCallsPluginGroup::connectShowCallDurationItem() |
302 void CpCallsPluginGroup::connectShowCallDurationItem() |
294 { |
303 { |
295 DPRINT << ": IN"; |
304 DPRINT; |
296 |
|
297 m_helper.addConnection( |
305 m_helper.addConnection( |
298 m_DataItemShowCallDuration, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), |
306 m_DataItemShowCallDuration, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), |
299 this, SLOT(showCallDurationStateChanged())); |
307 this, SLOT(showCallDurationStateChanged())); |
300 |
|
301 DPRINT << ": OUT"; |
|
302 } |
308 } |
303 |
309 |
304 /*! |
310 /*! |
305 CpCallsPluginGroup::connectSoftRejectItem. |
311 CpCallsPluginGroup::connectSoftRejectItem. |
306 */ |
312 */ |
307 void CpCallsPluginGroup::connectSoftRejectItem() |
313 void CpCallsPluginGroup::connectSoftRejectItem() |
308 { |
314 { |
309 DPRINT << ": IN"; |
315 DPRINT; |
310 |
|
311 m_helper.addConnection( |
316 m_helper.addConnection( |
312 m_DataItemSoftRejectTextEditor, SIGNAL(editingFinished()), |
317 m_DataItemSoftRejectTextEditor, SIGNAL(editingFinished()), |
313 this, SLOT(softRejectTextChanged())); |
318 this, SLOT(softRejectTextChanged())); |
314 |
|
315 DPRINT << ": OUT"; |
|
316 } |
319 } |
317 |
320 |
318 /*! |
321 /*! |
319 CpCallsPluginGroup::connectCLIItem. |
322 CpCallsPluginGroup::connectCLIItem. |
320 */ |
323 */ |
321 void CpCallsPluginGroup::connectCLIItem() |
324 void CpCallsPluginGroup::connectCLIItem() |
322 { |
325 { |
323 DPRINT << ": IN"; |
326 DPRINT; |
324 |
|
325 m_helper.addConnection( |
327 m_helper.addConnection( |
326 m_DataItemCLI, SIGNAL(currentIndexChanged(int)), |
328 m_DataItemCLI, SIGNAL(currentIndexChanged(int)), |
327 this, SLOT(cliCurrentIndexChanged(int))); |
329 this, SLOT(cliCurrentIndexChanged(int))); |
328 // Fetch current CLI value |
330 // Fetch current CLI value |
329 int cliValue(ClirNetworkDefault); |
331 int cliValue(ClirNetworkDefault); |
333 m_DataItemCLI->setContentWidgetData( |
335 m_DataItemCLI->setContentWidgetData( |
334 QString("currentIndex"), indexValue); |
336 QString("currentIndex"), indexValue); |
335 } else { |
337 } else { |
336 DPRINT << "Error: " << err; |
338 DPRINT << "Error: " << err; |
337 } |
339 } |
338 |
|
339 DPRINT << ": OUT"; |
|
340 } |
340 } |
341 |
341 |
342 /*! |
342 /*! |
343 CpCallsPluginGroup::connectOwnVideoInReceivedCall. |
343 CpCallsPluginGroup::connectOwnVideoInReceivedCall. |
344 */ |
344 */ |
345 void CpCallsPluginGroup::connectOwnVideoInReceivedCall() |
345 void CpCallsPluginGroup::connectOwnVideoInReceivedCall() |
346 { |
346 { |
347 DPRINT << ": IN"; |
347 DPRINT; |
348 |
|
349 m_helper.addConnection( |
348 m_helper.addConnection( |
350 m_OwnVideoInReceivedCall, SIGNAL(currentIndexChanged(int)), |
349 m_OwnVideoInReceivedCall, SIGNAL(currentIndexChanged(int)), |
351 this, SLOT(ownVideoInReceivedCallStateChanged(int))); |
350 this, SLOT(ownVideoInReceivedCallStateChanged(int))); |
352 |
351 } |
353 DPRINT << ": OUT"; |
352 |
354 } |
|
355 /*! |
353 /*! |
356 CpCallsPluginGroup::connectCallWaitingItem. |
354 CpCallsPluginGroup::connectCallWaitingItem. |
357 */ |
355 */ |
358 void CpCallsPluginGroup::connectCallWaitingItem() |
356 void CpCallsPluginGroup::connectCallWaitingItem() |
359 { |
357 { |
360 DPRINT << ": IN"; |
358 DPRINT; |
361 |
|
362 m_helper.addConnection( |
359 m_helper.addConnection( |
363 m_DataItemCallWaiting, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), |
360 m_DataItemCallWaiting, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), |
364 this, SLOT(callWaitingCurrentIndexChanged())); |
361 this, SLOT(callWaitingCurrentIndexChanged())); |
365 |
|
366 DPRINT << ": OUT"; |
|
367 } |
362 } |
368 |
363 |
369 /*! |
364 /*! |
370 CpCallsPluginGroup::showCallDurationStateChanged. |
365 CpCallsPluginGroup::showCallDurationStateChanged. |
371 */ |
366 */ |
438 |
433 |
439 if (callWaitingText == hbTrId("txt_phone_setlabel_call_waiting_val_check_status")) { |
434 if (callWaitingText == hbTrId("txt_phone_setlabel_call_waiting_val_check_status")) { |
440 // Clicked first time, user want to check feature status |
435 // Clicked first time, user want to check feature status |
441 DPRINT << "checking status"; |
436 DPRINT << "checking status"; |
442 m_callWaitingWrapper->getCallWaitingStatus(); |
437 m_callWaitingWrapper->getCallWaitingStatus(); |
443 } |
438 } else if (callWaitingText == hbTrId("txt_phone_setlabel_call_waiting_val_on")) { |
444 |
|
445 else if (callWaitingText == hbTrId("txt_phone_setlabel_call_waiting_val_on")) { |
|
446 DPRINT << "activate"; |
439 DPRINT << "activate"; |
447 // User want to activate call waiting feature |
440 // User want to activate call waiting feature |
448 m_callWaitingWrapper->setCallWaiting( |
441 m_callWaitingWrapper->setCallWaiting( |
449 PSetCallWaitingWrapper::ActivateCallWaiting, |
442 PSetCallWaitingWrapper::ActivateCallWaiting, |
450 AllTeleAndBearer); |
443 AllTeleAndBearer); |
451 } |
444 } else if (callWaitingText == hbTrId("txt_phone_setlabel_call_waiting_val_off")) { |
452 else if (callWaitingText == hbTrId("txt_phone_setlabel_call_waiting_val_off")) { |
|
453 DPRINT << "deactivate"; |
445 DPRINT << "deactivate"; |
454 // User want to deactivate call waiting feature |
446 // User want to deactivate call waiting feature |
455 m_callWaitingWrapper->setCallWaiting( |
447 m_callWaitingWrapper->setCallWaiting( |
456 PSetCallWaitingWrapper::DeactivateCallWaiting, |
448 PSetCallWaitingWrapper::DeactivateCallWaiting, |
457 AllTeleAndBearer); |
449 AllTeleAndBearer); |
458 } |
450 } else { |
459 else { |
451 DWARNING << ": Error, unhandled index!"; |
460 DPRINT << "nothing done"; |
|
461 } |
452 } |
462 |
453 |
463 DPRINT << ": OUT"; |
454 DPRINT << ": OUT"; |
464 } |
455 } |
465 |
456 |
505 CpCallsPluginGroup::insertMappedListItems. |
496 CpCallsPluginGroup::insertMappedListItems. |
506 */ |
497 */ |
507 void CpCallsPluginGroup::insertMappedListItems() |
498 void CpCallsPluginGroup::insertMappedListItems() |
508 { |
499 { |
509 DPRINT << ": IN"; |
500 DPRINT << ": IN"; |
510 |
|
511 m_cliSettingMap.insert(ClirNetworkDefault, hbTrId("txt_phone_setlabel_val_default")); |
501 m_cliSettingMap.insert(ClirNetworkDefault, hbTrId("txt_phone_setlabel_val_default")); |
512 m_cliSettingMap.insert(ClirExplicitSuppress, hbTrId("txt_phone_setlabel_val_yes")); |
502 m_cliSettingMap.insert(ClirExplicitSuppress, hbTrId("txt_phone_setlabel_val_yes")); |
513 m_cliSettingMap.insert(ClirExplicitInvoke, hbTrId("txt_phone_setlabel_val_no")); |
503 m_cliSettingMap.insert(ClirExplicitInvoke, hbTrId("txt_phone_setlabel_val_no")); |
514 |
|
515 DPRINT << ": OUT"; |
504 DPRINT << ": OUT"; |
516 } |
505 } |
517 |
506 |
518 /*! |
507 /*! |
519 CpCallsPluginGroup::handleCallWaitingGetStatus. |
508 CpCallsPluginGroup::handleCallWaitingGetStatus. |
522 PSetCallWaitingWrapper::PsCallWaitingStatus status, |
511 PSetCallWaitingWrapper::PsCallWaitingStatus status, |
523 const QList<unsigned char> &basicServiceGroupIds) |
512 const QList<unsigned char> &basicServiceGroupIds) |
524 { |
513 { |
525 DPRINT << ": IN status: " << status; |
514 DPRINT << ": IN status: " << status; |
526 // This happens only in the very first time when clicked. |
515 // This happens only in the very first time when clicked. |
527 |
|
528 emit cancelNote(m_activeNoteId); |
516 emit cancelNote(m_activeNoteId); |
529 |
517 |
530 bool alsCaseOnly = false; |
518 bool alsCaseOnly = false; |
531 if (1 == basicServiceGroupIds.count() && |
519 if (1 == basicServiceGroupIds.count() && |
532 AltTele == static_cast<BasicServiceGroups>(basicServiceGroupIds.at(0))) { |
520 AltTele == static_cast<BasicServiceGroups>(basicServiceGroupIds.at(0))) { |