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 |