--- a/tstaskmonitor/server/src/hsrunningappsession.cpp Thu May 27 13:11:12 2010 +0300
+++ b/tstaskmonitor/server/src/hsrunningappsession.cpp Fri Jun 11 13:58:37 2010 +0300
@@ -19,16 +19,19 @@
#include "hsdataobservertask.h"
#include "hsdataprovidertask.h"
+#include "tsdatatask.h"
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
CRunningAppSession::CRunningAppSession(MHsDataObserverStorage& observerStorage,
- const MHsDataProvider& dataProvider)
+ const MHsDataProvider& dataProvider,
+ MTsDataStorage& dataStorage)
:
mObserverStorage(observerStorage),
- mDataProvider(dataProvider)
+ mDataProvider(dataProvider),
+ mDataStorage(dataStorage)
{
// No implementation required
}
@@ -46,9 +49,12 @@
// -----------------------------------------------------------------------------
//
CRunningAppSession* CRunningAppSession::NewL(MHsDataObserverStorage& observerStorage,
- const MHsDataProvider& dataProvider)
+ const MHsDataProvider& dataProvider,
+ MTsDataStorage& dataStorage)
{
- CRunningAppSession* self = new (ELeave) CRunningAppSession(observerStorage, dataProvider);
+ CRunningAppSession* self = new (ELeave) CRunningAppSession(observerStorage,
+ dataProvider,
+ dataStorage);
CleanupStack::PushL(self);
self->ConstructL();
CleanupStack::Pop(self);
@@ -82,6 +88,11 @@
case FlushData:
HsDataProviderTask::ExecuteL(mDataProvider, message);
break;
+
+ case RegisterScreenshotMessage:
+ case UnregisterScreenshotMessage:
+ TsDataTask::ExecuteL(mDataStorage, message);
+ break;
default:
message.Complete(CServer2::EBadMessageNumber);