convergedconnectionhandler/cchserver/src/cchuihandler.cpp
branchRCL_3
changeset 11 bddb6d4447db
parent 0 a4daefaec16c
child 20 be41ab7b952f
equal deleted inserted replaced
10:7117cbf1600a 11:bddb6d4447db
   170 // ---------------------------------------------------------------------------
   170 // ---------------------------------------------------------------------------
   171 //
   171 //
   172 void CCchUIHandler::MobileNetworkNoService(  )
   172 void CCchUIHandler::MobileNetworkNoService(  )
   173     {
   173     {
   174     CCHLOGSTRING( "CCchUIHandler::MobileNetworkNoService" );
   174     CCHLOGSTRING( "CCchUIHandler::MobileNetworkNoService" );
   175     TRAP_IGNORE( ShowEmergencyWarningNoteL( EFalse ) );
       
   176     }
   175     }
   177 
   176 
   178 // ---------------------------------------------------------------------------
   177 // ---------------------------------------------------------------------------
   179 // CCchUIHandler::HandleVoipStateChanged
   178 // CCchUIHandler::HandleVoipStateChanged
   180 // (other items were commented in a header).
   179 // (other items were commented in a header).
   203         TInt emergencyWarningShown( 0 );
   202         TInt emergencyWarningShown( 0 );
   204         err = iCchRepository->Get( 
   203         err = iCchRepository->Get( 
   205              KCCHVoIPEmergencyWarningShown, emergencyWarningShown );
   204              KCCHVoIPEmergencyWarningShown, emergencyWarningShown );
   206         if( err == KErrNone )
   205         if( err == KErrNone )
   207             {
   206             {
   208             if ( !iVoIPEmergencyNoteState )
       
   209                 {
       
   210                 iVoIPEmergencyNoteState = 
       
   211                     iCchEtelNetworkStatusNotifier->IsNetworkStatusNoService();    
       
   212                 }
       
   213             if( !emergencyWarningShown )
   207             if( !emergencyWarningShown )
   214                 {
   208                 {
   215                 ShowEmergencyWarningNoteL( ETrue );
   209                 ShowEmergencyWarningNoteL( ETrue );
   216                 }
       
   217             else if( iVoIPEmergencyNoteState )
       
   218                 {
       
   219                 ShowEmergencyWarningNoteL( EFalse );
       
   220                 }
   210                 }
   221             }
   211             }
   222         }
   212         }
   223     else if ( !aStatus && iVoIPSmallIndicatorShown )
   213     else if ( !aStatus && iVoIPSmallIndicatorShown )
   224         {
   214         {
   300                 R_QTN_FIRST_EMERGENCY_WARNING_NOTE, 
   290                 R_QTN_FIRST_EMERGENCY_WARNING_NOTE, 
   301                 R_AVKON_SOFTKEYS_OK_EMPTY,
   291                 R_AVKON_SOFTKEYS_OK_EMPTY,
   302                 SecondaryDisplay::ECmdShowVoipEmergencyCallReadinessQuery );
   292                 SecondaryDisplay::ECmdShowVoipEmergencyCallReadinessQuery );
   303             iServer.SetVoIPEmergencyNoteShown( ETrue );
   293             iServer.SetVoIPEmergencyNoteShown( ETrue );
   304             }
   294             }
   305         else
   295 
   306             {
       
   307             TInt voIPEmergencyNoteDoNotShow( 0 );
       
   308             iCchRepository->Get( 
       
   309                 KCCHVoIPShowEmergencyWarningOnOff, voIPEmergencyNoteDoNotShow );
       
   310             if ( voIPEmergencyNoteDoNotShow && !iServer.VoIPEmergencyNoteShown() )
       
   311                 {
       
   312                 iServer.SetVoIPEmergencyNoteShown( ETrue );
       
   313                 iNoteHandler->LaunchGlobalNoteL(
       
   314                     R_QTN_VOIP_EM_CALL_ERROR_NOTE_NO_CS, 
       
   315                     R_AVKON_SOFTKEYS_OK_EMPTY,
       
   316                     SecondaryDisplay::ECmdShowVoipEmergencyCallErrorNoteNoCsQuery );
       
   317                 }
       
   318             }
       
   319         }
   296         }
   320     } 
   297     } 
   321 
   298 
   322 // ----------------------------------------------------------------------------
   299 // ----------------------------------------------------------------------------
   323 // CCchUIHandler::MonitorOfflineStatusL()
   300 // CCchUIHandler::MonitorOfflineStatusL()