mtpfws/mtpfw/dataproviders/dputility/src/rmtpdpsingletons.cpp
branchRCL_3
changeset 4 60a94a45d437
parent 0 d0791faffa3f
equal deleted inserted replaced
3:8b094906a049 4:60a94a45d437
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 #include "rmtpdpsingletons.h"
    16 #include "rmtpdpsingletons.h"
       
    17 #include "cmtpfsentrycache.h"
    17 
    18 
    18 #include <mtp/mmtpdataproviderframework.h>
    19 #include <mtp/mmtpdataproviderframework.h>
    19 #include <mtp/cmtpobjectmetadata.h>
    20 #include <mtp/cmtpobjectmetadata.h>
    20 
    21 
    21 
    22 
   135 RMTPDpSingletons::CSingletons::~CSingletons()
   136 RMTPDpSingletons::CSingletons::~CSingletons()
   136     {
   137     {
   137     __FLOG(_L8("CSingletons::~CSingletons - Entry"));
   138     __FLOG(_L8("CSingletons::~CSingletons - Entry"));
   138     iExclusionList.Close();
   139     iExclusionList.Close();
   139     iMTPUtility.Close();
   140     iMTPUtility.Close();
       
   141     delete iCopyingBigFileCache;
       
   142     delete iMovingBigFileCache;
   140     __FLOG(_L8("CSingletons::~CSingletons - Exit"));
   143     __FLOG(_L8("CSingletons::~CSingletons - Exit"));
   141     __FLOG_CLOSE;
   144     __FLOG_CLOSE;
   142     }
   145     }
   143     
   146     
   144 void RMTPDpSingletons::CSingletons::ConstructL(MMTPDataProviderFramework& aFramework)
   147 void RMTPDpSingletons::CSingletons::ConstructL(MMTPDataProviderFramework& aFramework)
   145     {
   148     {
   146     __FLOG_OPEN(KMTPSubsystem, KComponent);
   149     __FLOG_OPEN(KMTPSubsystem, KComponent);
   147     __FLOG(_L8("CSingletons::ConstructL - Entry"));
   150     __FLOG(_L8("CSingletons::ConstructL - Entry"));
   148     
   151     
   149     iMTPUtility.OpenL(aFramework);
   152     iMTPUtility.OpenL(aFramework);
       
   153     iCopyingBigFileCache = CMTPFSEntryCache::NewL();
       
   154     iMovingBigFileCache = CMTPFSEntryCache::NewL();
   150     
   155     
   151     __FLOG(_L8("CSingletons::ConstructL - Exit"));
   156     __FLOG(_L8("CSingletons::ConstructL - Exit"));
   152     }
   157     }
   153 
   158 
   154 EXPORT_C RMTPUtility& RMTPDpSingletons::MTPUtility() const
   159 EXPORT_C RMTPUtility& RMTPDpSingletons::MTPUtility() const
   155 	{
   160 	{
   156 	return iSingletons->iMTPUtility;
   161 	return iSingletons->iMTPUtility;
   157 	}
   162 	}
       
   163 
       
   164 EXPORT_C CMTPFSEntryCache& RMTPDpSingletons::CopyingBigFileCache() const
       
   165   {
       
   166   return *(iSingletons->iCopyingBigFileCache);
       
   167   }
       
   168 
       
   169 EXPORT_C CMTPFSEntryCache& RMTPDpSingletons::MovingBigFileCache() const
       
   170   {
       
   171   return *(iSingletons->iMovingBigFileCache);
       
   172   }
       
   173