videocollection/videocollectionwrapper/tsrc/testvideoproxymodelallvideos/stub/inc/videoproxymodelgeneric.h
changeset 63 4707a0db12f6
parent 58 d2b028fd1f7d
equal deleted inserted replaced
58:d2b028fd1f7d 63:4707a0db12f6
    42     /**
    42     /**
    43      * Destructor.
    43      * Destructor.
    44      *
    44      *
    45      */
    45      */
    46     virtual ~VideoProxyModelGeneric();
    46     virtual ~VideoProxyModelGeneric();
       
    47 
       
    48     /**
       
    49      * Initializes model. Sets the given sourceModel as source model 
       
    50      * for this proxy model.
       
    51      * 
       
    52      * @param sourceModel the source model
       
    53      * 
       
    54      * @return int 0 if initialization was ok. 
       
    55      */
       
    56     virtual int initialize(VideoListDataModel *sourceModel);
    47 
    57 
    48 public:
    58 public:
    49     
    59     
    50     /**
    60     /**
    51     * Opens the defined item. This is quite abstract as depending
    61     * Opens the defined item. This is quite abstract as depending
   102     /**
   112     /**
   103      * Returns sourceModel;
   113      * Returns sourceModel;
   104      */
   114      */
   105     virtual const VideoListDataModel *sourceModel() const;
   115     virtual const VideoListDataModel *sourceModel() const;
   106     
   116     
       
   117     /**
       
   118      * sets item id filter used in generic proxy model
       
   119      * while filtering rows. 
       
   120      * 
       
   121      * If provided filterValue -flag is true, we filter off items that 
       
   122      * do not exist in container indicated as itemId. 
       
   123      * If false, filtering works other way around. 
       
   124      * 
       
   125      * 
       
   126      * @param filterValue item id used as filter
       
   127      * @param filterValue
       
   128      */
       
   129     virtual void setGenericIdFilter(const TMPXItemId &itemId, bool filterValue);
       
   130     
       
   131     /**
       
   132      * Set album in use and invalidates filtering.
       
   133      * 
       
   134      * @param albumId album id
       
   135      */
       
   136     virtual void setAlbumInUse(const TMPXItemId &albumId);
       
   137     
   107 public:
   138 public:
   108     static int mOpenItemCallCount;
   139     static int mOpenItemCallCount;
   109     static int mGetOpenItemCallCount;
   140     static int mGetOpenItemCallCount;
   110     static int mLessThanCallCount;
   141     static int mLessThanCallCount;
   111     static int mFilterAcceptsRowCallCount;
   142     static int mFilterAcceptsRowCallCount;