mtpdataproviders/mtpimagedp/src/cmtpimagedp.cpp
branchRCL_3
changeset 5 3673b591050c
parent 3 8b094906a049
child 6 ef55b168cedb
equal deleted inserted replaced
4:60a94a45d437 5:3673b591050c
   126         {
   126         {
   127         __FLOG_1(_L8("CMTPImageDataProvider::ConstructL - RProperty define error:%d"), error);
   127         __FLOG_1(_L8("CMTPImageDataProvider::ConstructL - RProperty define error:%d"), error);
   128         User::LeaveIfError(error);
   128         User::LeaveIfError(error);
   129         }    
   129         }    
   130     
   130     
       
   131     iEnumerationNotified = ETrue;
   131     __FLOG(_L8("<< CMTPImageDataProvider::ConstructL"));
   132     __FLOG(_L8("<< CMTPImageDataProvider::ConstructL"));
   132     }
   133     }
   133 
   134 
   134 /**
   135 /**
   135  Destructor
   136  Destructor
   269 void CMTPImageDataProvider::StartObjectEnumerationL(TUint32 aStorageId, TBool /*aPersistentFullEnumeration*/)
   270 void CMTPImageDataProvider::StartObjectEnumerationL(TUint32 aStorageId, TBool /*aPersistentFullEnumeration*/)
   270     {
   271     {
   271     __FLOG(_L8(">> StartObjectEnumerationL"));
   272     __FLOG(_L8(">> StartObjectEnumerationL"));
   272     
   273     
   273     TBool isComplete = ETrue;
   274     TBool isComplete = ETrue;
       
   275     iEnumerationNotified = EFalse;
       
   276 
   274     if (aStorageId == KMTPStorageAll)
   277     if (aStorageId == KMTPStorageAll)
   275         {
   278         {
   276         /*
   279         /*
   277          * framework notify data provider to enumerate
   280          * framework notify data provider to enumerate
   278          * 
   281          * 
   477 #endif // __FLOG_ACTIVE
   480 #endif // __FLOG_ACTIVE
   478     {
   481     {
   479     __FLOG(_L8(">> NotifyEnumerationCompletedL"));
   482     __FLOG(_L8(">> NotifyEnumerationCompletedL"));
   480     __FLOG_VA((_L8("Enumeration of storage 0x%08X completed with error status %d"), aStorageId, aError));
   483     __FLOG_VA((_L8("Enumeration of storage 0x%08X completed with error status %d"), aStorageId, aError));
   481         
   484         
   482     Framework().ObjectEnumerationCompleteL(aStorageId);
   485     if (!iEnumerationNotified)
       
   486         {
       
   487         iEnumerationNotified = ETrue;
       
   488         Framework().ObjectEnumerationCompleteL(aStorageId);
       
   489         }
   483     
   490     
   484     __FLOG(_L8("<< HandleEnumerationCompletedL"));
   491     __FLOG(_L8("<< HandleEnumerationCompletedL"));
   485     }
   492     }
   486 
   493 
   487 /**
   494 /**