mtpfws/mtpfw/dataproviders/dputility/src/rmtpdpsingletons.cpp
changeset 18 1b39655331a3
parent 0 d0791faffa3f
child 47 63cf70d3ecd8
--- a/mtpfws/mtpfw/dataproviders/dputility/src/rmtpdpsingletons.cpp	Fri Mar 19 09:40:39 2010 +0200
+++ b/mtpfws/mtpfw/dataproviders/dputility/src/rmtpdpsingletons.cpp	Fri Apr 16 15:51:48 2010 +0300
@@ -14,6 +14,7 @@
 //
 
 #include "rmtpdpsingletons.h"
+#include "cmtpfsentrycache.h"
 
 #include <mtp/mmtpdataproviderframework.h>
 #include <mtp/cmtpobjectmetadata.h>
@@ -137,6 +138,8 @@
     __FLOG(_L8("CSingletons::~CSingletons - Entry"));
     iExclusionList.Close();
     iMTPUtility.Close();
+    delete iCopyingBigFileCache;
+    delete iMovingBigFileCache;
     __FLOG(_L8("CSingletons::~CSingletons - Exit"));
     __FLOG_CLOSE;
     }
@@ -147,6 +150,8 @@
     __FLOG(_L8("CSingletons::ConstructL - Entry"));
     
     iMTPUtility.OpenL(aFramework);
+    iCopyingBigFileCache = CMTPFSEntryCache::NewL();
+    iMovingBigFileCache = CMTPFSEntryCache::NewL();
     
     __FLOG(_L8("CSingletons::ConstructL - Exit"));
     }
@@ -155,3 +160,14 @@
 	{
 	return iSingletons->iMTPUtility;
 	}
+
+EXPORT_C CMTPFSEntryCache& RMTPDpSingletons::CopyingBigFileCache() const
+  {
+  return *(iSingletons->iCopyingBigFileCache);
+  }
+
+EXPORT_C CMTPFSEntryCache& RMTPDpSingletons::MovingBigFileCache() const
+  {
+  return *(iSingletons->iMovingBigFileCache);
+  }
+