equal
deleted
inserted
replaced
61 // ----------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
62 // |
62 // |
63 CPsmClientImpl::~CPsmClientImpl() |
63 CPsmClientImpl::~CPsmClientImpl() |
64 { |
64 { |
65 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl()" ) ) ); |
65 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl()" ) ) ); |
66 |
66 |
67 CancelPowerSaveModeChange(); |
67 CancelPowerSaveModeChange(); |
68 |
|
69 delete iActive; |
68 delete iActive; |
70 delete iSettings; |
69 delete iSettings; |
71 |
|
72 iPsmServer.Close(); |
70 iPsmServer.Close(); |
73 |
71 |
74 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl - return" ) ) ); |
72 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl - return" ) ) ); |
75 } |
73 } |
76 |
74 |
167 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::PsmSettings()" ) ) ); |
165 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::PsmSettings()" ) ) ); |
168 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::PsmSettings - return" ) ) ); |
166 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::PsmSettings - return" ) ) ); |
169 return *iSettings; |
167 return *iSettings; |
170 } |
168 } |
171 |
169 |
|
170 #ifdef _DEBUG |
|
171 TInt CPsmClientImpl::HeapMark() |
|
172 { |
|
173 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMark()" ) ) ); |
|
174 TInt err = iPsmServer.SendReceiveSync( EDebugHeapMark, TIpcArgs() ); |
|
175 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMark - return" ) ) ); |
|
176 return err; |
|
177 } |
|
178 |
|
179 TInt CPsmClientImpl::HeapMarkEnd() |
|
180 { |
|
181 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMarkEnd()" ) ) ); |
|
182 TInt err = iPsmServer.SendReceiveSync( EDebugHeapMarkEnd, TIpcArgs() ); |
|
183 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapMarkEnd - return" ) ) ); |
|
184 return err; |
|
185 } |
|
186 |
|
187 TInt CPsmClientImpl::SetHeapFailure(TInt aFailureRate) |
|
188 { |
|
189 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::SetHeapFailure()" ) ) ); |
|
190 TInt err = iPsmServer.SendReceiveSync( EDebugSetHeapFailure, TIpcArgs(aFailureRate) ); |
|
191 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::SetHeapFailure - return" ) ) ); |
|
192 return err; |
|
193 } |
|
194 |
|
195 TInt CPsmClientImpl::HeapReset() |
|
196 { |
|
197 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapReset()" ) ) ); |
|
198 TInt err = iPsmServer.SendReceiveSync( EDebugHeapReset, TIpcArgs() ); |
|
199 COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::HeapReset - return" ) ) ); |
|
200 return err; |
|
201 } |
|
202 |
|
203 #endif //_DEBUG |
|
204 |
172 // End of file |
205 // End of file |