mmsharing/livecommsui/lcui/tsrc/ipvtengine/src/musengmcesession.cpp
changeset 34 01f0bb65bcf1
parent 22 496ad160a278
equal deleted inserted replaced
29:36d7ded3ca23 34:01f0bb65bcf1
    33 #include <cntitem.h>
    33 #include <cntitem.h>
    34 #include <cntfield.h>
    34 #include <cntfield.h>
    35 #include <cntdef.h>
    35 #include <cntdef.h>
    36 #include <cntfldst.h>
    36 #include <cntfldst.h>
    37 
    37 
       
    38 
    38 #include "svptimer.h"
    39 #include "svptimer.h"
    39 
    40 
    40 RDrawableWindow* testWindow = 0;
    41 RDrawableWindow* testWindow = 0;
    41 
    42 
    42 // -----------------------------------------------------------------------------
    43 // -----------------------------------------------------------------------------
    60     iLiveVideoPlayer = CMusEngLiveVideoPlayer::NewL( *this, iCameraHandler, *this );      
    61     iLiveVideoPlayer = CMusEngLiveVideoPlayer::NewL( *this, iCameraHandler, *this );      
    61     iLcSessionState = MLcSession::EUninitialized;
    62     iLcSessionState = MLcSession::EUninitialized;
    62 
    63 
    63     iTimer = CSVPTimer::NewL( *this, 1 ); 
    64     iTimer = CSVPTimer::NewL( *this, 1 ); 
    64     iCameraHandler.SetSession( this );
    65     iCameraHandler.SetSession( this );
       
    66     
       
    67     // indicator control
       
    68     iIndicatorCtr = new  ( ELeave ) LcVtIndicatorController();
    65     
    69     
    66     MUS_LOG( "mus: [ENGINE]  <- CMusEngMceSession::ConstructL()" )
    70     MUS_LOG( "mus: [ENGINE]  <- CMusEngMceSession::ConstructL()" )
    67     }
    71     }
    68 
    72 
    69 // -----------------------------------------------------------------------------
    73 // -----------------------------------------------------------------------------
    76 
    80 
    77     delete iRemoteAddress;
    81     delete iRemoteAddress;
    78     delete iRemoteVideoPlayer; 
    82     delete iRemoteVideoPlayer; 
    79     delete iLiveVideoPlayer;    
    83     delete iLiveVideoPlayer;    
    80     delete iScreen;
    84     delete iScreen;
       
    85     
       
    86     if (iIndicatorCtr)
       
    87         {
       
    88         iIndicatorCtr->disableActiveCallIndicator();
       
    89         delete iIndicatorCtr;
       
    90         }    
    81     MUS_LOG( "mus: [ENGINE]  <- CMusEngMceSession::~CMusEngMceSession()" )
    91     MUS_LOG( "mus: [ENGINE]  <- CMusEngMceSession::~CMusEngMceSession()" )
    82     }
    92     }
    83 	
    93 	
    84 // -----------------------------------------------------------------------------
    94 // -----------------------------------------------------------------------------
    85 // From MMusEngDisplayHandler
    95 // From MMusEngDisplayHandler
   616     MUS_LOG1( "mus: [ENGINE]     -> CMusEngMceSession::SetForegroundStatus() %d", 
   626     MUS_LOG1( "mus: [ENGINE]     -> CMusEngMceSession::SetForegroundStatus() %d", 
   617               aIsForeground )
   627               aIsForeground )
   618     if ( iScreen ){
   628     if ( iScreen ){
   619         iScreen->Update(aIsForeground);
   629         iScreen->Update(aIsForeground);
   620     }
   630     }
       
   631     
       
   632     if ( aIsForeground )
       
   633         {
       
   634         iIndicatorCtr->disableActiveCallIndicator();
       
   635         }
       
   636     else {
       
   637         iIndicatorCtr->enableActiveCallIndicator();
       
   638         }
   621     return KErrNone;
   639     return KErrNone;
   622     }
   640     }
   623 
   641 
   624 _LIT( KIpVtEngStubRemoteDetails, "5556567844" );
   642 _LIT( KIpVtEngStubRemoteDetails, "5556567844" );
   625 
   643