psmservices/psmserver/src/client/psmclientimpl.cpp
branchRCL_3
changeset 21 ccb4f6b3db21
parent 8 8d1d8440b626
child 22 8cb079868133
--- a/psmservices/psmserver/src/client/psmclientimpl.cpp	Thu Aug 19 11:09:10 2010 +0300
+++ b/psmservices/psmserver/src/client/psmclientimpl.cpp	Tue Aug 31 16:29:05 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