diff -r 6aaf0276100e -r c76a0b1755b9 phoneplugins/csplugin/src/csprovider.cpp --- a/phoneplugins/csplugin/src/csprovider.cpp Thu Sep 02 20:26:16 2010 +0300 +++ b/phoneplugins/csplugin/src/csprovider.cpp Fri Sep 17 08:29:19 2010 +0300 @@ -268,6 +268,23 @@ CSPLOGSTRING(CSPINT, "CSProvider::NotifySsEvent >"); } +// --------------------------------------------------------------------------- +// CSProvider::InitializeL for testing purposes +// --------------------------------------------------------------------------- +// +void CSProvider::InitializeL( const MCCPObserver& aObserver, + const MCCPSsObserver& aSsObserver, + CSPAudioHandlerBase* aAudioHandler ) + { + + if (!iAudioHandler) + { + iAudioHandler = aAudioHandler; + } + + InitializeL( aObserver, aSsObserver ); + } + // From CConvergedCallProvider // --------------------------------------------------------------------------- // CSProvider::InitializeL @@ -352,7 +369,10 @@ // Create audio handler CSPLOGSTRING(CSPOBJECT, "CSProvider::InitializeL create audio handler"); - iAudioHandler = CSPAudioHandler::NewL(); + if (!iAudioHandler) + { + iAudioHandler = CSPAudioHandler::NewL(); + } // Create call added handler for listening ext call creation iCallAddedHandler = CSPCallAddedHandler::NewL(