phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkpluginform.cpp
changeset 72 c76a0b1755b9
parent 64 6aaf0276100e
child 74 d1c62c765e48
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
   292         // offline mode.
   292         // offline mode.
   293         m_psetNetworkWrapper->getNetworkAccessMode();
   293         m_psetNetworkWrapper->getNetworkAccessMode();
   294         emit showGlobalNote(
   294         emit showGlobalNote(
   295             m_activeNoteId, 
   295             m_activeNoteId, 
   296             emit hbTrId("Off-line, not allowed"), 
   296             emit hbTrId("Off-line, not allowed"), 
   297             HbMessageBox::MessageTypeInformation);
   297             HbMessageBox::MessageTypeWarning);
   298     } else if(m_cpSettingsWrapper->isOngoingCall()) {
   298     } else if(m_cpSettingsWrapper->isOngoingCall()) {
   299         // ongoing call.
   299         // ongoing call.
   300         m_psetNetworkWrapper->getNetworkAccessMode();
   300         m_psetNetworkWrapper->getNetworkAccessMode();
   301         emit showGlobalNote(
   301         emit showGlobalNote(
   302             m_activeNoteId, 
   302             m_activeNoteId, 
   303             emit hbTrId("txt_cp_info_active_calls_must_be_disconnected_befo"), 
   303             emit hbTrId("txt_cp_info_active_calls_must_be_disconnected_befo"), 
   304             HbMessageBox::MessageTypeInformation);
   304             HbMessageBox::MessageTypeWarning);
   305     } else {
   305     } else {
   306         // ok case
   306         // ok case
   307         if(index == 0) {
   307         if(index == 0) {
   308             dualModeSelection();
   308             dualModeSelection();
   309         } else if(index == 1) {
   309         } else if(index == 1) {
   329         // off line
   329         // off line
   330         restoreOperatorSelectionUi();
   330         restoreOperatorSelectionUi();
   331         emit showGlobalNote(
   331         emit showGlobalNote(
   332             m_activeNoteId, 
   332             m_activeNoteId, 
   333             emit hbTrId("txt_cp_info_operator_selection_is_not_possible_in"), 
   333             emit hbTrId("txt_cp_info_operator_selection_is_not_possible_in"), 
   334             HbMessageBox::MessageTypeInformation);
   334             HbMessageBox::MessageTypeWarning);
   335     } else if(m_cpSettingsWrapper->isOngoingCall()) {
   335     } else if(m_cpSettingsWrapper->isOngoingCall()) {
   336         // ongoing call.
   336         // ongoing call.
   337         restoreOperatorSelectionUi();
   337         restoreOperatorSelectionUi();
   338         emit showGlobalNote(
   338         emit showGlobalNote(
   339             m_activeNoteId, 
   339             m_activeNoteId, 
   340             emit hbTrId("txt_cp_info_active_calls_must_be_disconnected_befo"), 
   340             emit hbTrId("txt_cp_info_active_calls_must_be_disconnected_befo"), 
   341             HbMessageBox::MessageTypeInformation);
   341             HbMessageBox::MessageTypeWarning);
   342     } else {
   342     } else {
   343         // ok case
   343         // ok case
   344         PSetNetworkWrapper::NetworkSelectionMode mode;
   344         PSetNetworkWrapper::NetworkSelectionMode mode;
   345         PSetNetworkWrapper::ErrorCode err = 
   345         PSetNetworkWrapper::ErrorCode err = 
   346             m_psetNetworkWrapper->getNetworkSelectionMode(mode);
   346             m_psetNetworkWrapper->getNetworkSelectionMode(mode);
   557             break;
   557             break;
   558         default:
   558         default:
   559             break;
   559             break;
   560     }
   560     }
   561     emit showGlobalNote(
   561     emit showGlobalNote(
   562         m_activeNoteId, text, HbMessageBox::MessageTypeInformation);
   562         m_activeNoteId, text, HbMessageBox::MessageTypeWarning);
   563     
   563     
   564     // Update UI
   564     // Update UI
   565     if(type == PSetNetworkWrapper::RequestSetNetworkMode) {
   565     if(type == PSetNetworkWrapper::RequestSetNetworkMode) {
   566        m_psetNetworkWrapper->getNetworkAccessMode();
   566        m_psetNetworkWrapper->getNetworkAccessMode();
   567        }
   567        }
   660             text = hbTrId("Selected network: ");
   660             text = hbTrId("Selected network: ");
   661             text.append(networkName(currentInfo));
   661             text.append(networkName(currentInfo));
   662         }
   662         }
   663             break; 
   663             break; 
   664     }
   664     }
   665     
   665 
   666     emit showGlobalNote(
   666     emit showNotificationDialog(text);
   667         m_activeNoteId, text, HbMessageBox::MessageTypeInformation);
   667 
   668     
       
   669     DPRINT << ": OUT";
   668     DPRINT << ": OUT";
   670 }
   669 }
   671 
   670 
   672 
   671 
   673 /*!
   672 /*!
   914         SIGNAL(showGlobalNote(
   913         SIGNAL(showGlobalNote(
   915             int &, const QString&, HbMessageBox::MessageBoxType)),
   914             int &, const QString&, HbMessageBox::MessageBoxType)),
   916         &notes, 
   915         &notes, 
   917         SLOT(showGlobalNote(
   916         SLOT(showGlobalNote(
   918             int &, const QString&, HbMessageBox::MessageBoxType)));
   917             int &, const QString&, HbMessageBox::MessageBoxType)));
       
   918 
       
   919     QObject::connect(
       
   920         this, 
       
   921         SIGNAL(showNotificationDialog( const QString&)),
       
   922         &notes, 
       
   923         SLOT(showNotificationDialog( const QString&)));
   919     
   924     
   920     QObject::connect(
   925     QObject::connect(
   921         this, 
   926         this, 
   922         SIGNAL(cancelNote(int)),
   927         SIGNAL(cancelNote(int)),
   923         &notes, 
   928         &notes,