photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmds.cpp
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 9 6b87b143d312
child 13 bcb43dc84c44
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
    68 
    68 
    69 // CONSTANTS
    69 // CONSTANTS
    70 _LIT(KPropertyDefNameCreationDate, "CreationDate");
    70 _LIT(KPropertyDefNameCreationDate, "CreationDate");
    71 _LIT(KPropertyDefNameLastModifiedDate, "LastModifiedDate");
    71 _LIT(KPropertyDefNameLastModifiedDate, "LastModifiedDate");
    72 _LIT(KPropertyDefNameTitle, "Title");
    72 _LIT(KPropertyDefNameTitle, "Title");
    73 //Code commented cout below, so commenting the below line to remove BAD warning
       
    74 //_LIT(KPropertyDefNameDRM, "DRM");
       
    75 _LIT(KPropertyDefNameFrameCount, "FrameCount");
    73 _LIT(KPropertyDefNameFrameCount, "FrameCount");
    76 _LIT(KPropertyDefNameOrigin, "Origin");
    74 _LIT(KPropertyDefNameOrigin, "Origin");
    77 
    75 
    78 // ----------------------------------------------------------------------------
    76 // ----------------------------------------------------------------------------
    79 //  Constructor
    77 //  Constructor
   361 			}        
   359 			}        
   362         }
   360         }
   363         
   361         
   364     if( aFilterProperties.iExcludeAnimation )
   362     if( aFilterProperties.iExcludeAnimation )
   365         {
   363         {
   366         //__ASSERT_DEBUG((EGlxFilterImage == aFilterProperties.iItemType), Panic(EGlxPanicIllegalArgument));
       
   367         // Exclude any image with a frame count > 1
   364         // Exclude any image with a frame count > 1
   368         const TInt excludeAllImagesAboveOrEqualToThisFrameCount = 2;
   365         const TInt excludeAllImagesAboveOrEqualToThisFrameCount = 2;
   369         CMdEPropertyDef& frameCountProperty = DataSource()->ImageDef().GetPropertyDefL(
   366         CMdEPropertyDef& frameCountProperty = DataSource()->ImageDef().GetPropertyDefL(
   370                 KPropertyDefNameFrameCount);
   367                 KPropertyDefNameFrameCount);
   371         aLogicCondition.AddPropertyConditionL(frameCountProperty, TMdEIntLess(
   368         aLogicCondition.AddPropertyConditionL(frameCountProperty, TMdEIntLess(
   374         
   371         
   375     if( aFilterProperties.iNoDRM )
   372     if( aFilterProperties.iNoDRM )
   376         {
   373         {
   377         __ASSERT_DEBUG((EGlxFilterImage == aFilterProperties.iItemType), Panic(
   374         __ASSERT_DEBUG((EGlxFilterImage == aFilterProperties.iItemType), Panic(
   378                 EGlxPanicIllegalArgument));
   375                 EGlxPanicIllegalArgument));
   379         // Exclude any image which is DRM protected
       
   380         //CMdEPropertyDef& drmProperty = DataSource()->ImageDef().GetPropertyDefL(KPropertyDefNameDRM);
       
   381         //aLogicCondition.AddPropertyConditionL(drmProperty, EFalse);
       
   382         }
   376         }
   383         
   377         
   384     if( aFilterProperties.iPath )          // If this is set. Then we need to filter on the Ids it supplies
   378     if( aFilterProperties.iPath )          // If this is set. Then we need to filter on the Ids it supplies
   385         {
   379         {
   386         TArray<TInt> selection = aFilterProperties.iPath->Selection();
   380         TArray<TInt> selection = aFilterProperties.iPath->Selection();