mtpfws/mtpfw/dataproviders/devdp/src/rmtpdevicedpsingletons.cpp
branchRCL_3
changeset 6 f8e15b44d440
parent 0 d0791faffa3f
child 47 63cf70d3ecd8
equal deleted inserted replaced
0:d0791faffa3f 6:f8e15b44d440
   139 RMTPDeviceDpSingletons::CSingletons::~CSingletons()
   139 RMTPDeviceDpSingletons::CSingletons::~CSingletons()
   140     {
   140     {
   141     __FLOG(_L8("CSingletons::~CSingletons - Entry"));
   141     __FLOG(_L8("CSingletons::~CSingletons - Entry"));
   142     delete iConfigMgr;
   142     delete iConfigMgr;
   143     delete iDeviceDataStore;
   143     delete iDeviceDataStore;
       
   144     iPendingStorages.Close();
   144     __FLOG(_L8("CSingletons::~CSingletons - Exit"));
   145     __FLOG(_L8("CSingletons::~CSingletons - Exit"));
   145     __FLOG_CLOSE;
   146     __FLOG_CLOSE;
   146     }
   147     }
   147     
   148     
   148 void RMTPDeviceDpSingletons::CSingletons::ConstructL(MMTPDataProviderFramework& aFramework)
   149 void RMTPDeviceDpSingletons::CSingletons::ConstructL(MMTPDataProviderFramework& aFramework)
   152     iDeviceDataStore = CMTPDeviceDataStore::NewL();
   153     iDeviceDataStore = CMTPDeviceDataStore::NewL();
   153     iConfigMgr = CMTPDeviceDpConfigMgr::NewL(aFramework);
   154     iConfigMgr = CMTPDeviceDpConfigMgr::NewL(aFramework);
   154     __FLOG(_L8("CSingletons::ConstructL - Exit"));
   155     __FLOG(_L8("CSingletons::ConstructL - Exit"));
   155     }
   156     }
   156 
   157 
       
   158 RArray<TUint>& RMTPDeviceDpSingletons::PendingStorages()
       
   159 	{
       
   160     __FLOG(_L8("PendingStorages - Entry"));
       
   161     __ASSERT_DEBUG(iSingletons, User::Invariant());
       
   162     __FLOG(_L8("PendingStorages - Exit"));
       
   163     return iSingletons->iPendingStorages;
       
   164 	}
       
   165