videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcontent/stub/inc/videoproxymodelgeneric.h
equal
deleted
inserted
replaced
43 * Destructor. |
43 * Destructor. |
44 * |
44 * |
45 */ |
45 */ |
46 virtual ~VideoProxyModelGeneric(); |
46 virtual ~VideoProxyModelGeneric(); |
47 |
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); |
|
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 |
52 * on the type of the item, the behaviour or result could be |
62 * on the type of the item, the behaviour or result could be |
103 * Returns sourceModel; |
113 * Returns sourceModel; |
104 */ |
114 */ |
105 virtual const VideoListDataModel *sourceModel() const; |
115 virtual const VideoListDataModel *sourceModel() const; |
106 |
116 |
107 /** |
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 |
|
138 /** |
108 * Stub method. |
139 * Stub method. |
109 */ |
140 */ |
110 void invalidateFilter(); |
141 void invalidateFilter(); |
111 |
142 |
112 /** |
143 /** |