engine/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmds.cpp
changeset 70 a91aa46552be
parent 49 f291796e213d
child 71 27f2d7aec52a
--- a/engine/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmds.cpp	Fri Sep 17 08:29:24 2010 +0300
+++ b/engine/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmds.cpp	Mon Oct 04 00:17:18 2010 +0300
@@ -71,6 +71,7 @@
 _LIT(KPropertyDefNameTitle, "Title");
 _LIT(KPropertyDefNameFrameCount, "FrameCount");
 _LIT(KPropertyDefNameOrigin, "Origin");
+_LIT(KPropertyDefNameMymetype, "ItemType");
 
 // ----------------------------------------------------------------------------
 //  Constructor
@@ -360,7 +361,12 @@
             logicCondition.AddObjectConditionL( DataSource()->ImageDef() ); 
 			}        
         }
-        
+    if(aFilterProperties.iMimeType)
+        {
+        CMdEPropertyDef& mimetypeProperty = aObjectDef.GetPropertyDefL(KPropertyDefNameMymetype);
+        aLogicCondition.AddPropertyConditionL(mimetypeProperty, ETextPropertyConditionCompareEndsWith,*aFilterProperties.iMimeType);
+        }
+    
     if( aFilterProperties.iExcludeAnimation )
         {
         // Exclude any image with a frame count > 1