videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcollections/stub/inc/videoproxymodelgeneric.h
changeset 65 a9d57bd8d7b7
parent 62 0e1e938beb1a
--- a/videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcollections/stub/inc/videoproxymodelgeneric.h	Fri Sep 17 08:30:05 2010 +0300
+++ b/videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcollections/stub/inc/videoproxymodelgeneric.h	Mon Oct 04 00:19:07 2010 +0300
@@ -47,6 +47,16 @@
      */
     virtual ~VideoProxyModelGeneric();
 
+    /**
+     * Initializes model. Sets the given sourceModel as source model 
+     * for this proxy model.
+     * 
+     * @param sourceModel the source model
+     * 
+     * @return int 0 if initialization was ok. 
+     */
+    virtual int initialize(VideoListDataModel *sourceModel);
+    
 public:
     
     /**
@@ -106,6 +116,27 @@
      */
     virtual const VideoListDataModel *sourceModel() const;
     
+    /**
+     * sets item id filter used in generic proxy model
+     * while filtering rows. 
+     * 
+     * If provided filterValue -flag is true, we filter off items that 
+     * do not exist in container indicated as itemId. 
+     * If false, filtering works other way around. 
+     * 
+     * 
+     * @param filterValue item id used as filter
+     * @param filterValue
+     */
+    virtual void setGenericIdFilter(const TMPXItemId &itemId, bool filterValue);
+    
+    /**
+     * Set album in use and invalidates filtering.
+     * 
+     * @param albumId album id
+     */
+    virtual void setAlbumInUse(const TMPXItemId &albumId);    
+    
 public:
     static int mOpenItemCallCount;
     static int mGetOpenItemCallCount;