--- a/mtpfws/mtpfw/dataproviders/dputility/src/rmtpdpsingletons.cpp Mon Mar 15 12:43:12 2010 +0200
+++ b/mtpfws/mtpfw/dataproviders/dputility/src/rmtpdpsingletons.cpp Wed Mar 31 22:58:56 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);
+ }
+