diff -r aabe5387f5ce -r 1b39655331a3 mtpfws/mtpfw/dataproviders/dputility/src/rmtpdpsingletons.cpp --- 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 #include @@ -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); + } +