diff -r 072a9626b290 -r 09d657f1ee00 psmservices/psmserver/src/client/psmclientimpl.cpp --- a/psmservices/psmserver/src/client/psmclientimpl.cpp Wed Aug 18 11:03:14 2010 +0300 +++ b/psmservices/psmserver/src/client/psmclientimpl.cpp Thu Sep 02 21:48:26 2010 +0300 @@ -63,12 +63,10 @@ CPsmClientImpl::~CPsmClientImpl() { COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl()" ) ) ); - + CancelPowerSaveModeChange(); - delete iActive; delete iSettings; - iPsmServer.Close(); COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl - return" ) ) ); @@ -169,4 +167,39 @@ return *iSettings; } +#ifdef _DEBUG +TInt CPsmClientImpl::HeapMark() + { + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMark()" ) ) ); + TInt err = iPsmServer.SendReceiveSync( EDebugHeapMark, TIpcArgs() ); + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMark - return" ) ) ); + return err; + } + +TInt CPsmClientImpl::HeapMarkEnd() + { + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMarkEnd()" ) ) ); + TInt err = iPsmServer.SendReceiveSync( EDebugHeapMarkEnd, TIpcArgs() ); + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMarkEnd - return" ) ) ); + return err; + } + +TInt CPsmClientImpl::SetHeapFailure(TInt aFailureRate) + { + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::SetHeapFailure()" ) ) ); + TInt err = iPsmServer.SendReceiveSync( EDebugSetHeapFailure, TIpcArgs(aFailureRate) ); + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::SetHeapFailure - return" ) ) ); + return err; + } + +TInt CPsmClientImpl::HeapReset() + { + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapReset()" ) ) ); + TInt err = iPsmServer.SendReceiveSync( EDebugHeapReset, TIpcArgs() ); + COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapReset - return" ) ) ); + return err; + } + +#endif //_DEBUG + // End of file