phoneplugins/csplugin/src/csprovider.cpp
changeset 72 c76a0b1755b9
parent 64 6aaf0276100e
child 78 baacf668fe89
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
   266         }
   266         }
   267         
   267         
   268     CSPLOGSTRING(CSPINT, "CSProvider::NotifySsEvent >");    
   268     CSPLOGSTRING(CSPINT, "CSProvider::NotifySsEvent >");    
   269     }
   269     }
   270 
   270 
       
   271 // ---------------------------------------------------------------------------
       
   272 // CSProvider::InitializeL for testing purposes
       
   273 // ---------------------------------------------------------------------------
       
   274 //
       
   275 void CSProvider::InitializeL( const MCCPObserver& aObserver,
       
   276                               const MCCPSsObserver& aSsObserver,
       
   277                               CSPAudioHandlerBase* aAudioHandler )
       
   278     {
       
   279     
       
   280     if (!iAudioHandler)
       
   281         {        
       
   282         iAudioHandler = aAudioHandler;
       
   283         }
       
   284     
       
   285     InitializeL( aObserver, aSsObserver );    
       
   286     }
       
   287 
   271 // From CConvergedCallProvider
   288 // From CConvergedCallProvider
   272 // ---------------------------------------------------------------------------
   289 // ---------------------------------------------------------------------------
   273 // CSProvider::InitializeL
   290 // CSProvider::InitializeL
   274 // ---------------------------------------------------------------------------
   291 // ---------------------------------------------------------------------------
   275 //
   292 //
   350     iCipheringStatusMonitor = CSPCipheringStatusMonitor::NewL( iMmCustom, *this );
   367     iCipheringStatusMonitor = CSPCipheringStatusMonitor::NewL( iMmCustom, *this );
   351     iCipheringStatusMonitor->StartMonitoring();
   368     iCipheringStatusMonitor->StartMonitoring();
   352 
   369 
   353     // Create audio handler
   370     // Create audio handler
   354     CSPLOGSTRING(CSPOBJECT, "CSProvider::InitializeL create audio handler");
   371     CSPLOGSTRING(CSPOBJECT, "CSProvider::InitializeL create audio handler");
   355     iAudioHandler = CSPAudioHandler::NewL();
   372     if (!iAudioHandler)
       
   373         {
       
   374         iAudioHandler = CSPAudioHandler::NewL();
       
   375         }
   356     
   376     
   357     // Create call added handler for listening ext call creation
   377     // Create call added handler for listening ext call creation
   358     iCallAddedHandler = CSPCallAddedHandler::NewL( 
   378     iCallAddedHandler = CSPCallAddedHandler::NewL( 
   359         obs, 
   379         obs, 
   360         iLineContainer, 
   380         iLineContainer,