diff -r d1dadafc5584 -r 26079c1bb561 taskswitcher/server/src/tsrunningappmodel.cpp --- a/taskswitcher/server/src/tsrunningappmodel.cpp Mon Sep 27 11:31:59 2010 +0300 +++ b/taskswitcher/server/src/tsrunningappmodel.cpp Wed Oct 06 16:00:22 2010 +0300 @@ -20,29 +20,26 @@ #include #include "tsrunningappmodel.h" - -#include "tsrunningappstorage.h" - +#include "tsrunningappstorageimp.h" #include "tsdatalist.h" #include "tsmodelobserver.h" #include "tsscreenshotprovider.h" +#include "tsresourcemanager.h" CTsRunningAppModel *CTsRunningAppModel::NewL( MTsResourceManager& aResources, - MTsWindowGroupsMonitor& aMonitor, TsEnv& aEnv ) { - CTsRunningAppModel *self = CTsRunningAppModel::NewLC( aResources, aMonitor, aEnv ); + CTsRunningAppModel *self = CTsRunningAppModel::NewLC( aResources, aEnv ); CleanupStack::Pop( self ); return self; } CTsRunningAppModel *CTsRunningAppModel::NewLC( MTsResourceManager& aResources, - MTsWindowGroupsMonitor& aMonitor, TsEnv& aEnv ) { CTsRunningAppModel *self = new (ELeave) CTsRunningAppModel( aResources ); CleanupStack::PushL( self ); - self->ConstructL( aResources, aMonitor, aEnv ); + self->ConstructL( aResources, aEnv ); return self; } @@ -59,11 +56,11 @@ } void CTsRunningAppModel::ConstructL( MTsResourceManager& aResources, - MTsWindowGroupsMonitor& aMonitor, TsEnv& aEnv) { - iDataList = CTsDataList::NewL( aResources, aMonitor, *this, aEnv ); - iScreenshotProvider = CTsScreenshotProvider::NewL(*iDataList, aMonitor ); + iDataList = CTsDataList::NewL( aResources, *this, aEnv ); + iScreenshotProvider = + CTsScreenshotProvider::NewL(*iDataList, aResources.WsMonitor()); RArray wgList; CleanupClosePushL( wgList );