engine/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmds.cpp
changeset 70 a91aa46552be
parent 49 f291796e213d
child 71 27f2d7aec52a
equal deleted inserted replaced
67:199e6e1e0b54 70:a91aa46552be
    69 _LIT(KPropertyDefNameCreationDate, "CreationDate");
    69 _LIT(KPropertyDefNameCreationDate, "CreationDate");
    70 _LIT(KPropertyDefNameLastModifiedDate, "LastModifiedDate");
    70 _LIT(KPropertyDefNameLastModifiedDate, "LastModifiedDate");
    71 _LIT(KPropertyDefNameTitle, "Title");
    71 _LIT(KPropertyDefNameTitle, "Title");
    72 _LIT(KPropertyDefNameFrameCount, "FrameCount");
    72 _LIT(KPropertyDefNameFrameCount, "FrameCount");
    73 _LIT(KPropertyDefNameOrigin, "Origin");
    73 _LIT(KPropertyDefNameOrigin, "Origin");
       
    74 _LIT(KPropertyDefNameMymetype, "ItemType");
    74 
    75 
    75 // ----------------------------------------------------------------------------
    76 // ----------------------------------------------------------------------------
    76 //  Constructor
    77 //  Constructor
    77 // ----------------------------------------------------------------------------
    78 // ----------------------------------------------------------------------------
    78 //  
    79 //  
   358             CMdELogicCondition& logicCondition = 
   359             CMdELogicCondition& logicCondition = 
   359                 aLogicCondition.AddLogicConditionL(ELogicConditionOperatorOr);
   360                 aLogicCondition.AddLogicConditionL(ELogicConditionOperatorOr);
   360             logicCondition.AddObjectConditionL( DataSource()->ImageDef() ); 
   361             logicCondition.AddObjectConditionL( DataSource()->ImageDef() ); 
   361 			}        
   362 			}        
   362         }
   363         }
   363         
   364     if(aFilterProperties.iMimeType)
       
   365         {
       
   366         CMdEPropertyDef& mimetypeProperty = aObjectDef.GetPropertyDefL(KPropertyDefNameMymetype);
       
   367         aLogicCondition.AddPropertyConditionL(mimetypeProperty, ETextPropertyConditionCompareEndsWith,*aFilterProperties.iMimeType);
       
   368         }
       
   369     
   364     if( aFilterProperties.iExcludeAnimation )
   370     if( aFilterProperties.iExcludeAnimation )
   365         {
   371         {
   366         // Exclude any image with a frame count > 1
   372         // Exclude any image with a frame count > 1
   367         const TInt excludeAllImagesAboveOrEqualToThisFrameCount = 2;
   373         const TInt excludeAllImagesAboveOrEqualToThisFrameCount = 2;
   368         CMdEPropertyDef& frameCountProperty = DataSource()->ImageDef().GetPropertyDefL(
   374         CMdEPropertyDef& frameCountProperty = DataSource()->ImageDef().GetPropertyDefL(