equal
deleted
inserted
replaced
94 */ |
94 */ |
95 void CMTPImageDataProvider::ConstructL() |
95 void CMTPImageDataProvider::ConstructL() |
96 { |
96 { |
97 __FLOG_OPEN(KMTPSubsystem, KComponent); |
97 __FLOG_OPEN(KMTPSubsystem, KComponent); |
98 __FLOG(_L8(">> CMTPImageDataProvider::ConstructL")); |
98 __FLOG(_L8(">> CMTPImageDataProvider::ConstructL")); |
99 |
|
100 iThumbnailManager = CMTPImageDpThumbnailCreator::NewL(*this); |
|
101 iNewPicNotifier = CMTPImageDpNewPicturesNotifier::NewL(); |
99 iNewPicNotifier = CMTPImageDpNewPicturesNotifier::NewL(); |
102 |
100 |
103 //Setup central repository connection |
101 //Setup central repository connection |
104 const TUint32 KUidMTPImageRepositoryValue(0x2001FCA2); |
102 const TUint32 KUidMTPImageRepositoryValue(0x2001FCA2); |
105 const TUid KUidMTPImageRepository = {KUidMTPImageRepositoryValue}; |
103 const TUid KUidMTPImageRepository = {KUidMTPImageRepositoryValue}; |
452 __FLOG(_L8(">> NotifyStorageEnumerationCompleteL")); |
450 __FLOG(_L8(">> NotifyStorageEnumerationCompleteL")); |
453 Framework().StorageEnumerationCompleteL(); |
451 Framework().StorageEnumerationCompleteL(); |
454 __FLOG(_L8("<< NotifyStorageEnumerationCompleteL")); |
452 __FLOG(_L8("<< NotifyStorageEnumerationCompleteL")); |
455 } |
453 } |
456 |
454 |
457 CMTPImageDpThumbnailCreator& CMTPImageDataProvider::ThumbnailManager() const |
455 CMTPImageDpThumbnailCreator* CMTPImageDataProvider::ThumbnailManager() |
458 { |
456 { |
459 __ASSERT_DEBUG(iThumbnailManager, User::Invariant()); |
457 if(NULL == iThumbnailManager) |
460 return *iThumbnailManager; |
458 { |
461 } |
459 TRAP_IGNORE(iThumbnailManager = CMTPImageDpThumbnailCreator::NewL(*this)); |
|
460 } |
|
461 return iThumbnailManager; |
|
462 } |
462 |
463 |
463 CMTPImageDpObjectPropertyMgr& CMTPImageDataProvider::PropertyMgr()const |
464 CMTPImageDpObjectPropertyMgr& CMTPImageDataProvider::PropertyMgr()const |
464 { |
465 { |
465 __ASSERT_DEBUG(iPropertyMgr, User::Invariant()); |
466 __ASSERT_DEBUG(iPropertyMgr, User::Invariant()); |
466 return *iPropertyMgr; |
467 return *iPropertyMgr; |