logsui/logsengine/logssymbianos/tsrc/stubs/logclient_stubs.cpp
changeset 9 68f3171a5819
parent 0 4a5361db8937
child 13 52d644758b05
child 16 c5af8598d22c
--- a/logsui/logsengine/logssymbianos/tsrc/stubs/logclient_stubs.cpp	Thu Jun 24 14:44:14 2010 +0300
+++ b/logsui/logsengine/logssymbianos/tsrc/stubs/logclient_stubs.cpp	Thu Jul 08 11:31:03 2010 +0300
@@ -25,6 +25,7 @@
 int stubViewCount = 1;
 int stubLeaveWithError = KErrNone;
 int stubViewFlagsValue = 0;
+QString stubLastCalledFunc;
 
 // ----------------------------------------------------------------------------
 // LogClientStubsHelper
@@ -35,6 +36,7 @@
     stubAsyncCallPossible = true;
     stubLeaveWithError = KErrNone;
     stubViewFlagsValue = 0;
+    stubLastCalledFunc.clear();
 }
 
 void LogClientStubsHelper::createEvents(int numEvents)
@@ -62,6 +64,11 @@
     return stubViewFlagsValue;
 }
 
+QString LogClientStubsHelper::lastCalledFunc()
+{
+    return stubLastCalledFunc;
+}
+
 // ----------------------------------------------------------------------------
 // CLogActive
 // ----------------------------------------------------------------------------
@@ -190,12 +197,14 @@
 
 void CLogClient::ClearLog(const TTime& /*aDate*/, TRequestStatus& aStatus)
 {
+    stubLastCalledFunc = "ClearLog";
     aStatus = KRequestPending;
     User::RequestComplete( &aStatus, KErrNone );
 }
 
 void CLogClient::ClearLog(TInt /*aRecentList*/, TRequestStatus& aStatus)
 {
+    stubLastCalledFunc = "ClearLogRecentList";
     aStatus = KRequestPending;
     User::RequestComplete( &aStatus, KErrNone );
 }