phoneapp/phoneuiqtviewadapter/src/phoneuiqtviewadapter.cpp
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
child 51 f39ed5e045e0
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
   207         int bubble = m_bubbleWrapper->bubbles().value(aCallId);
   207         int bubble = m_bubbleWrapper->bubbles().value(aCallId);
   208         m_view.clearBubbleCommands(bubble);
   208         m_view.clearBubbleCommands(bubble);
   209         m_view.removeExpandAction(bubble);
   209         m_view.removeExpandAction(bubble);
   210         m_bubbleWrapper->removeCallHeader (aCallId);
   210         m_bubbleWrapper->removeCallHeader (aCallId);
   211         m_bubbleWrapper->bubbleManager().endChanges();
   211         m_bubbleWrapper->bubbleManager().endChanges();
       
   212         m_indicatorController->clearActiveCallData();
   212         }
   213         }
   213         break;
   214         break;
   214     case EPhoneViewRemoveFromConference:
   215     case EPhoneViewRemoveFromConference:
   215         removeCallFromConference(aCallId);
   216         removeCallFromConference(aCallId);
   216         break;
   217         break;
   482         false == m_dialpadAboutToClose ) {
   483         false == m_dialpadAboutToClose ) {
   483         setDialpadMenu();
   484         setDialpadMenu();
   484     }
   485     }
   485 }
   486 }
   486 
   487 
       
   488 void PhoneUIQtViewAdapter::handleWindowActivated()
       
   489 {
       
   490     m_indicatorController->disableActiveCallIndicator();
       
   491 }
       
   492 
       
   493 void PhoneUIQtViewAdapter::handleWindowDeactivated()
       
   494 {
       
   495     m_indicatorController->enableActiveCallIndicator();
       
   496 }
       
   497 
   487 void PhoneUIQtViewAdapter::setTopApplication (TPhoneCommandParam *commandParam)
   498 void PhoneUIQtViewAdapter::setTopApplication (TPhoneCommandParam *commandParam)
   488 {
   499 {
   489     TPhoneCmdParamInteger *integerParam = static_cast<TPhoneCmdParamInteger *> (commandParam);
   500     TPhoneCmdParamInteger *integerParam = static_cast<TPhoneCmdParamInteger *> (commandParam);
   490     CPhonePubSubProxy::Instance()->ChangePropertyValue(
   501     CPhonePubSubProxy::Instance()->ChangePropertyValue(
   491         KPSUidUikon,
   502         KPSUidUikon,
   546     m_bubbleWrapper->bubbleManager ().endChanges ();
   557     m_bubbleWrapper->bubbleManager ().endChanges ();
   547     
   558     
   548     if (1 == m_bubbleWrapper->bubbles().keys().count()) {
   559     if (1 == m_bubbleWrapper->bubbles().keys().count()) {
   549         setHidden(false);
   560         setHidden(false);
   550     }
   561     }
       
   562     m_indicatorController->setActiveCallData( data.CLIText(), KNullDesC );
   551 }
   563 }
   552 
   564 
   553 void PhoneUIQtViewAdapter::createEmergencyCallHeader(
   565 void PhoneUIQtViewAdapter::createEmergencyCallHeader(
   554     int callId,
   566     int callId,
   555     TPhoneCommandParam *commandParam)
   567     TPhoneCommandParam *commandParam)
  1026             m_view.removeExpandAction(bubble);
  1038             m_view.removeExpandAction(bubble);
  1027             m_bubbleWrapper->removeCallHeader (callId);
  1039             m_bubbleWrapper->removeCallHeader (callId);
  1028             m_bubbleWrapper->bubbleManager().endChanges();
  1040             m_bubbleWrapper->bubbleManager().endChanges();
  1029         }
  1041         }
  1030     }
  1042     }
       
  1043     m_indicatorController->clearActiveCallData();
  1031 }
  1044 }
  1032 
  1045 
  1033 void PhoneUIQtViewAdapter::getNumberFromDialpad(
  1046 void PhoneUIQtViewAdapter::getNumberFromDialpad(
  1034         TPhoneCommandParam *commandParam)
  1047         TPhoneCommandParam *commandParam)
  1035 {
  1048 {
  1072     }
  1085     }
  1073 }
  1086 }
  1074 
  1087 
  1075 void PhoneUIQtViewAdapter::setCallMenu()
  1088 void PhoneUIQtViewAdapter::setCallMenu()
  1076 {
  1089 {
  1077     int bubbleId = m_bubbleWrapper->bubbleManager().expandedBubble();
  1090     if ( 0<m_bubbleWrapper->callStates().keys().size() ) {
  1078     int callId = m_bubbleWrapper->callIdByBubbleId(bubbleId);
  1091         int bubbleId = m_bubbleWrapper->bubbleManager().expandedBubble();
  1079     m_uiCommandController->setCallMenuActions(
  1092         int callId = m_bubbleWrapper->callIdByBubbleId(bubbleId);
  1080             m_bubbleWrapper->callStates(),
  1093         m_uiCommandController->setCallMenuActions(
  1081             m_bubbleWrapper->serviceIds(),
  1094                 m_bubbleWrapper->callStates(),
  1082             m_bubbleWrapper->serviceIdByCallId(callId),
  1095                 m_bubbleWrapper->serviceIds(),
  1083             callId );
  1096                 m_bubbleWrapper->serviceIdByCallId(callId),
       
  1097                 callId );
       
  1098     }
  1084 
  1099 
  1085 }
  1100 }
  1086 
  1101 
  1087 void PhoneUIQtViewAdapter::setDialpadMenu()
  1102 void PhoneUIQtViewAdapter::setDialpadMenu()
  1088 {
  1103 {