mmshplugins/mmshaoplugin/src/muscallmonitor.cpp
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
    87 
    87 
    88 // -----------------------------------------------------------------------------
    88 // -----------------------------------------------------------------------------
    89 //
    89 //
    90 // -----------------------------------------------------------------------------
    90 // -----------------------------------------------------------------------------
    91 //
    91 //
    92 void CMusCallMonitor::StartMonitorL(RMobileLine& aLine, 
    92 void CMusCallMonitor::StartMonitorL(RMobileLine& aLine, MMusTsyPropertyObserver& aObserver)
    93                                     MMusTsyPropertyObserver& aObserver,
       
    94                                     MMusCallStateObserver& aCallStateObserver)
       
    95     {
    93     {
    96     MUS_LOG( "mus: [MUSAO]  -> CMusCallMonitor::StartMonitorL" )
    94     MUS_LOG( "mus: [MUSAO]  -> CMusCallMonitor::StartMonitorL" )
    97     if(IsMonitored())User::Leave(KErrAlreadyExists);    
    95     if(IsMonitored())User::Leave(KErrAlreadyExists);    
    98     User::LeaveIfError( iCall.OpenExistingCall( aLine, iCallName ) );        
    96     User::LeaveIfError( iCall.OpenExistingCall( aLine, iCallName ) );        
    99     iCallStatusMonitor = CMusCallStatusMonitor::NewL( iCall, aObserver, aCallStateObserver );
    97     iCallStatusMonitor = CMusCallStatusMonitor::NewL( iCall, aObserver );
   100     iCallEventMonitor = CMusCallEventMonitor::NewL( iCall, aObserver, aCallStateObserver );    
    98     iCallEventMonitor = CMusCallEventMonitor::NewL( iCall, aObserver );
       
    99     
   101     MUS_LOG( "mus: [MUSAO]  <- CMusCallMonitor::StartMonitorL" )
   100     MUS_LOG( "mus: [MUSAO]  <- CMusCallMonitor::StartMonitorL" )
   102     }
   101     }
   103 
   102 
   104 // -----------------------------------------------------------------------------
   103 // -----------------------------------------------------------------------------
   105 //
   104 //
   186     iCallStatusMonitor->SetStateL( aVal );
   185     iCallStatusMonitor->SetStateL( aVal );
   187     iCallEventMonitor->SetStateL( aVal );
   186     iCallEventMonitor->SetStateL( aVal );
   188     }
   187     }
   189 
   188 
   190 
   189 
   191 // --------------------------------------------------------------------------------
       
   192 // CMusCallMonitor::IsDataReadyL()
       
   193 // Checks if Data is ready CS Call.
       
   194 // --------------------------------------------------------------------------------
       
   195 
       
   196 TBool CMusCallMonitor::IsDataReadyL()
       
   197     {
       
   198     // Wrapper Function for Monitoring CS Call Data
       
   199     return iCallStatusMonitor->IsDataReadyL();
       
   200     }
       
   201 
       
   202 // End of file
   190 // End of file
   203