--- 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 );
}