mmsharing/mmshui/src/musuieventcontroller.cpp
branchRCL_3
changeset 21 ce86b6d44a6d
parent 18 0da2e08216b6
child 31 33a5d2bbf6fc
equal deleted inserted replaced
19:95754dcd27ad 21:ce86b6d44a6d
    63 // -----------------------------------------------------------------------------
    63 // -----------------------------------------------------------------------------
    64 //
    64 //
    65 CMusUiEventController::~CMusUiEventController()
    65 CMusUiEventController::~CMusUiEventController()
    66     {
    66     {
    67     MUS_LOG( "mus: [MUSUI ]  -> CMusUiEventController::~CMusUiEventController" );
    67     MUS_LOG( "mus: [MUSUI ]  -> CMusUiEventController::~CMusUiEventController" );
    68     delete iResourceHandler;
       
    69     delete iStatusPropertyWatch;    
    68     delete iStatusPropertyWatch;    
    70     delete iContactName;
    69     delete iContactName;
    71     delete iTelNumber;
    70     delete iTelNumber;
    72     delete iVideoCodec;
    71     delete iVideoCodec;
    73     delete iDialogPrompt;
    72     delete iDialogPrompt;
   138                             NMusSessionApi::KCategoryUid,
   137                             NMusSessionApi::KCategoryUid,
   139                             KStatus );
   138                             KStatus );
   140 
   139 
   141     iMmcMonitor = CMusUiMmcMonitor::NewL( *this );
   140     iMmcMonitor = CMusUiMmcMonitor::NewL( *this );
   142 
   141 
   143     iResourceHandler = CMusUiResourceHandler::NewL( iEventObserver );
   142     iResourceHandler = iEventObserver.ResourceHandler();
       
   143     __ASSERT_ALWAYS( iResourceHandler, User::Leave( KErrNotFound ) );
   144     
   144     
   145     //Mic mute status property
   145     //Mic mute status property
   146     iMicMuteStatusPropertyWatch = CMusUiPropertyWatch::NewL(
   146     iMicMuteStatusPropertyWatch = CMusUiPropertyWatch::NewL(
   147 							*this,
   147 							*this,
   148 							KPSUidTelMicrophoneMuteStatus,
   148 							KPSUidTelMicrophoneMuteStatus,
   601 //
   601 //
   602 void CMusUiEventController::ExitProcedureL( TBool aUserAcceptance )
   602 void CMusUiEventController::ExitProcedureL( TBool aUserAcceptance )
   603     {
   603     {
   604     MUS_LOG( "mus: [MUSUI ]  -> CMusUiEventController::ExitProcedureL" );
   604     MUS_LOG( "mus: [MUSUI ]  -> CMusUiEventController::ExitProcedureL" );
   605     
   605     
       
   606     iSharingObserver.DismissMenuBar();
       
   607     
   606     switch ( iShutdownState )
   608     switch ( iShutdownState )
   607         {
   609         {
   608         case EMusUiShutdownStarted: 
   610         case EMusUiShutdownStarted: 
   609             {
   611             {
   610             MUS_LOG( "mus: [MUSUI ]     ExitProcedureL: EMusUiShutdownStarted" );
   612             MUS_LOG( "mus: [MUSUI ]     ExitProcedureL: EMusUiShutdownStarted" );
   690     MUS_LOG1( 
   692     MUS_LOG1( 
   691         "mus: [MUSUI ]  -> CMusUiEventController::SetConnectionInitialized ( %d )", 
   693         "mus: [MUSUI ]  -> CMusUiEventController::SetConnectionInitialized ( %d )", 
   692         aConnectionInitialized );
   694         aConnectionInitialized );
   693     
   695     
   694     iConnectionInitialized = aConnectionInitialized;
   696     iConnectionInitialized = aConnectionInitialized;
       
   697     
       
   698     if ( !iForeground && !ExitOccured() )
       
   699         {
       
   700         TRAP_IGNORE( EnableDisplayL(EFalse) )
       
   701         }
   695     }
   702     }
   696     
   703     
   697 // -----------------------------------------------------------------------------
   704 // -----------------------------------------------------------------------------
   698 //
   705 //
   699 // -----------------------------------------------------------------------------
   706 // -----------------------------------------------------------------------------
   845     
   852     
   846         
   853         
   847     MUS_LOG( "mus: [MUSUI ]  <- CMusUiEventController::HandleForegroundEventL" );
   854     MUS_LOG( "mus: [MUSUI ]  <- CMusUiEventController::HandleForegroundEventL" );
   848     }
   855     }
   849 
   856 
       
   857 // -----------------------------------------------------------------------------
       
   858 //
       
   859 // -----------------------------------------------------------------------------
       
   860 //
       
   861 TBool CMusUiEventController::IsForeground() const
       
   862     {
       
   863     return iForeground;
       
   864     }
   850 
   865 
   851 // -----------------------------------------------------------------------------
   866 // -----------------------------------------------------------------------------
   852 //
   867 //
   853 // -----------------------------------------------------------------------------
   868 // -----------------------------------------------------------------------------
   854 //
   869 //