phonesettings/cpphonesettingsplugins/barringplugin/src/cpbarringplugingroup.cpp
changeset 65 2a5d4ab426d3
parent 50 377c906a8701
child 74 d1c62c765e48
equal deleted inserted replaced
60:1eef62f5c541 65:2a5d4ab426d3
    44     m_pSetWrapper(0),
    44     m_pSetWrapper(0),
    45     m_barringWrapper(0),
    45     m_barringWrapper(0),
    46     m_editBarringPasswordItem(0),
    46     m_editBarringPasswordItem(0),
    47     m_barringStatusRequestOngoing(false),
    47     m_barringStatusRequestOngoing(false),
    48     m_activeNoteId(0),
    48     m_activeNoteId(0),
       
    49     m_activeProgressNoteId(0),
    49     m_phoneNotes(0),
    50     m_phoneNotes(0),
    50     m_barringPasswordValidator(0),
    51     m_barringPasswordValidator(0),
    51     m_delayedBarringActivationNote(false),
    52     m_delayedBarringActivationNote(false),
    52     m_clickedBarringItem(NULL),
    53     m_clickedBarringItem(NULL),
    53     m_changeBarringPasswordPhase(NonePhase),
    54     m_changeBarringPasswordPhase(NonePhase),
   128     m_barringRequestQueue.enqueue(formItem);
   129     m_barringRequestQueue.enqueue(formItem);
   129     processBarringStatusRequestQueue();
   130     processBarringStatusRequestQueue();
   130     
   131     
   131     DPRINT << ": OUT";
   132     DPRINT << ": OUT";
   132 }
   133 }
   133 
       
   134 
   134 
   135 /*!
   135 /*!
   136   CpBarringPluginGroup::setupConnectionsToWrapper.
   136   CpBarringPluginGroup::setupConnectionsToWrapper.
   137  */
   137  */
   138 void CpBarringPluginGroup::setupConnectionsToWrapper()
   138 void CpBarringPluginGroup::setupConnectionsToWrapper()
   294     if (PSetCallBarringWrapper::BarringErrorNone != result) {
   294     if (PSetCallBarringWrapper::BarringErrorNone != result) {
   295         // Stop status query process for this time. Statuses are tried to 
   295         // Stop status query process for this time. Statuses are tried to 
   296         // query again for uncompleted items when user expands/opens barring 
   296         // query again for uncompleted items when user expands/opens barring 
   297         // settings group again.
   297         // settings group again.
   298         m_phoneNotes->cancelNote(m_activeNoteId);
   298         m_phoneNotes->cancelNote(m_activeNoteId);
       
   299         m_phoneNotes->cancelNote(m_activeProgressNoteId);
       
   300         m_activeProgressNoteId = 0;
   299         m_phoneNotes->showGlobalErrorNote(m_activeNoteId, result);
   301         m_phoneNotes->showGlobalErrorNote(m_activeNoteId, result);
   300         m_barringRequestQueue.clear();
   302         m_barringRequestQueue.clear();
   301         return;
   303         return;
   302     }
   304     }
   303 
   305 
   322                 : Qt::Unchecked;
   324                 : Qt::Unchecked;
   323         updateCheckStateOfItem(*itemForCompletedRequest, checkState);
   325         updateCheckStateOfItem(*itemForCompletedRequest, checkState);
   324     }
   326     }
   325     if (m_barringRequestQueue.isEmpty()) {
   327     if (m_barringRequestQueue.isEmpty()) {
   326         m_phoneNotes->cancelNote(m_activeNoteId);
   328         m_phoneNotes->cancelNote(m_activeNoteId);
       
   329         m_phoneNotes->cancelNote(m_activeProgressNoteId);
       
   330         m_activeProgressNoteId = 0;
   327         if (m_delayedBarringActivationNote) {
   331         if (m_delayedBarringActivationNote) {
   328             m_delayedBarringActivationNote = false;
   332             m_delayedBarringActivationNote = false;
   329             m_phoneNotes->showNotificationDialog(hbTrId("txt_phone_info_barring_activated"));
   333             m_phoneNotes->showNotificationDialog(hbTrId("txt_phone_info_barring_activated"));
   330         }
   334         }
   331         
   335         
   450                 item->contentWidgetData("barringType"));
   454                 item->contentWidgetData("barringType"));
   451         m_barringWrapper->barringStatus(ServiceGroupVoice, barringType);
   455         m_barringWrapper->barringStatus(ServiceGroupVoice, barringType);
   452         
   456         
   453         m_barringStatusRequestOngoing = true;
   457         m_barringStatusRequestOngoing = true;
   454         
   458         
   455         if (!m_phoneNotes->noteShowing()) {
   459         if (!m_activeProgressNoteId && !m_phoneNotes->noteShowing()) {
   456             // Launch progress note only once for status update.
   460             // Launch progress note only once for status update.
   457             m_phoneNotes->showGlobalProgressNote(
   461             m_phoneNotes->showGlobalProgressNote(
   458                 m_activeNoteId, hbTrId("txt_common_info_requesting"));
   462                 m_activeProgressNoteId, hbTrId("txt_common_info_requesting"));
   459         }
   463         }
   460     }
   464     }
   461     
   465     
   462     DPRINT << ": OUT";
   466     DPRINT << ": OUT";
   463 }
   467 }