photosgallery/collectionframework/datasource/plugins/glxdatasourcemde/src/glxdatasourcetaskmdeidlist.cpp
branchRCL_3
changeset 35 420f6808bf21
parent 0 4e91876724a2
child 47 f9e827349359
equal deleted inserted replaced
32:78ad99c24f08 35:420f6808bf21
    23  */
    23  */
    24 
    24 
    25 #include "glxdatasourcetaskmdeidlist.h"
    25 #include "glxdatasourcetaskmdeidlist.h"
    26 
    26 
    27 #include <glxcollectionpluginCamera.hrh>
    27 #include <glxcollectionpluginCamera.hrh>
    28 #include <glxcollectionpluginDownloads.hrh>
       
    29 #include <glxcollectionpluginMonths.hrh>
    28 #include <glxcollectionpluginMonths.hrh>
    30 #include <glxcollectionpluginalbums.hrh>
    29 #include <glxcollectionpluginalbums.hrh>
    31 #include <glxcollectionpluginall.hrh>
    30 #include <glxcollectionpluginall.hrh>
    32 #include <glxcollectionplugintags.hrh>
    31 #include <glxcollectionplugintags.hrh>
    33 #include <glxerrors.h>
    32 #include <glxerrors.h>
   136                 {
   135                 {
   137                 isContent = EFalse;
   136                 isContent = EFalse;
   138                 objectDef = &DataSource()->TagDef();
   137                 objectDef = &DataSource()->TagDef();
   139                 break;
   138                 break;
   140                 }
   139                 }
   141             case KGlxCollectionPluginMonthsImplementationUid:
   140             default:
   142                 {
   141                 {
   143                 container = DataSource()->CameraAlbumId();
   142                 // default gallery query returns all objects as per filter
       
   143                 break;
       
   144                 }
       
   145             }
       
   146         }
       
   147     else    // return the content of a container
       
   148         {
       
   149         switch(request->CollectionPluginUid().iUid)
       
   150             {
       
   151             case KGlxCollectionPluginAlbumsImplementationUid:
       
   152                 {
   144                 objectDef = &DataSource()->AlbumDef();
   153                 objectDef = &DataSource()->AlbumDef();
   145                 resultMode = EQueryResultModeObjectWithoutFreetexts;
       
   146                 break;
       
   147                 }
       
   148             default:
       
   149                 {
       
   150                 // default gallery query returns all objects as per filter
       
   151                 break;
       
   152                 }
       
   153             }
       
   154         }
       
   155     else    // return the content of a container
       
   156         {
       
   157         switch(request->CollectionPluginUid().iUid)
       
   158             {
       
   159             case KGlxCollectionPluginAlbumsImplementationUid:
       
   160                 {
       
   161                 objectDef = &DataSource()->AlbumDef();
       
   162                 break;
   154                 break;
   163                 }
   155                 }
   164             case KGlxTagCollectionPluginImplementationUid: 
   156             case KGlxTagCollectionPluginImplementationUid: 
   165                 {
   157                 {
   166                 objectDef = &DataSource()->TagDef();
   158                 objectDef = &DataSource()->TagDef();
   167                 break;
       
   168                 }
       
   169             case KGlxCollectionPluginMonthsImplementationUid: 
       
   170                 {
       
   171                 AddMonthFilterL(container, iFilterProperties);
       
   172                 container = DataSource()->CameraAlbumId();
       
   173                 objectDef = &DataSource()->AlbumDef();
       
   174                 break;
   159                 break;
   175                 }
   160                 }
   176             default:
   161             default:
   177                 {
   162                 {
   178                 User::Leave(KErrNotSupported);
   163                 User::Leave(KErrNotSupported);