phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.cpp
changeset 27 2f8f8080a020
parent 21 92ab7f8d0eab
child 30 ebdbd102c78a
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
   455     emit cancelNote(m_activeNoteId);
   455     emit cancelNote(m_activeNoteId);
   456     
   456     
   457     if (m_callWaitingDistinguishEnabled &&
   457     if (m_callWaitingDistinguishEnabled &&
   458             status == PSetCallWaitingWrapper::StatusNotProvisioned) {
   458             status == PSetCallWaitingWrapper::StatusNotProvisioned) {
   459         emit showGlobalNote(m_activeNoteId, 
   459         emit showGlobalNote(m_activeNoteId, 
   460             hbTrId("cw not provisioned"), HbMessageBox::MessageTypeInformation);
   460             hbTrId("txt_phone_info_request_not_completed"), HbMessageBox::MessageTypeInformation);
   461     } else if (status != PSetCallWaitingWrapper::StatusActive) {
   461     } else if (status != PSetCallWaitingWrapper::StatusActive) {
   462         emit showGlobalNote(m_activeNoteId,
   462         emit showGlobalNote(m_activeNoteId,
   463             hbTrId("cw disabled"), HbMessageBox::MessageTypeInformation);
   463             hbTrId("txt_phone_info_call_waiting_deactivated"), HbMessageBox::MessageTypeInformation);
   464     } else {
   464     } else {
   465         if (basicServiceGroupIds.count() != 0) {
   465         emit showGlobalNote(m_activeNoteId,
   466             emit showBasicServiceList(
   466             hbTrId("txt_phone_info_call_waiting_activated"), HbMessageBox::MessageTypeInformation);
   467                 hbTrId("Active for:"), basicServiceGroupIds);
       
   468         } else {
       
   469             emit showGlobalNote(m_activeNoteId,
       
   470                 hbTrId("cw active"), HbMessageBox::MessageTypeInformation);
       
   471         }
       
   472     }
   467     }
   473     
   468     
   474     DPRINT << ": OUT";
   469     DPRINT << ": OUT";
   475 }
   470 }
   476 
   471 
   483 {
   478 {
   484     DPRINT << ": IN";
   479     DPRINT << ": IN";
   485     emit cancelNote(m_activeNoteId);
   480     emit cancelNote(m_activeNoteId);
   486     if (result) {
   481     if (result) {
   487         emit showGlobalNote(m_activeNoteId,
   482         emit showGlobalNote(m_activeNoteId,
   488             hbTrId("Request failed"), 
   483             hbTrId("txt_phone_info_request_not_confirmed"), 
   489             HbMessageBox::MessageTypeWarning);
   484             HbMessageBox::MessageTypeWarning);
   490     } else {
   485     } else {
   491         switch (command){
   486         switch (command){
   492             case PSetCallWaitingWrapper::ActivateCallWaiting:
   487             case PSetCallWaitingWrapper::ActivateCallWaiting:
   493                 emit showGlobalNote(m_activeNoteId,
   488                 emit showGlobalNote(m_activeNoteId,
   494                     hbTrId("Call waiting activated"), 
   489                     hbTrId("txt_phone_info_call_waiting_activated"), 
   495                     HbMessageBox::MessageTypeInformation);
   490                     HbMessageBox::MessageTypeInformation);
   496                 break;
   491                 break;
   497             case PSetCallWaitingWrapper::DeactivateCallWaiting:
   492             case PSetCallWaitingWrapper::DeactivateCallWaiting:
   498                 emit showGlobalNote(m_activeNoteId,
   493                 emit showGlobalNote(m_activeNoteId,
   499                     hbTrId("Call waiting disabled"), 
   494                     hbTrId("txt_phone_info_call_waiting_deactivated"), 
   500                     HbMessageBox::MessageTypeInformation);
   495                     HbMessageBox::MessageTypeInformation);
   501                 break;
   496                 break;
   502             default: 
   497             default: 
   503                 emit showGlobalNote(m_activeNoteId,
   498                 emit showGlobalNote(m_activeNoteId,
   504                     hbTrId("default"), 
   499                     hbTrId("txt_phone_info_result_unknown"), 
   505                     HbMessageBox::MessageTypeInformation);
   500                     HbMessageBox::MessageTypeInformation);
   506                 break;
   501                 break;
   507         }
   502         }
   508     }
   503     }
   509     DPRINT << ": OUT";
   504     DPRINT << ": OUT";
   517     DPRINT << ": IN";
   512     DPRINT << ": IN";
   518     DPRINT << "ongoing:" << ongoing << ", interrupted:" << interrupted;
   513     DPRINT << "ongoing:" << ongoing << ", interrupted:" << interrupted;
   519     Q_ASSERT(!(ongoing && interrupted));
   514     Q_ASSERT(!(ongoing && interrupted));
   520     
   515     
   521     if (ongoing) {
   516     if (ongoing) {
   522         emit showGlobalProgressNote(m_activeNoteId, hbTrId("Requesting"));
   517         emit showGlobalProgressNote(m_activeNoteId, hbTrId("txt_phone_info_requesting"));
   523     }
   518     }
   524     
   519     
   525     if (interrupted) {
   520     if (interrupted) {
   526         emit cancelNote(m_activeNoteId);
   521         emit cancelNote(m_activeNoteId);
   527     }
   522     }