112 * return video id of the item at given index |
112 * return video id of the item at given index |
113 * |
113 * |
114 * @param index |
114 * @param index |
115 * @return int |
115 * @return int |
116 */ |
116 */ |
117 TMPXItemId getMediaIdFromIndex(int index) const; |
117 TMPXItemId& getMediaIdFromIndex(const int &index) const; |
118 |
118 |
119 /** |
119 /** |
120 * return video path of the item with given media id |
120 * return video path of the item with given media id |
121 * |
121 * |
122 * @param mediaId |
122 * @param mediaId |
123 * @return int |
123 * @return int |
124 */ |
124 */ |
125 const QString getFilePathForId(TMPXItemId mediaId) const; |
125 const QString getFilePathForId(const TMPXItemId &mediaId) const; |
126 |
126 |
127 /** |
127 /** |
128 * return name of the item at given index |
128 * return name of the item at given index |
129 * |
129 * |
130 * @param index |
130 * @param index |
131 * @return QString |
131 * @return QString |
132 */ |
132 */ |
133 const QString getVideoNameFromIndex( int index ) const; |
133 const QString getVideoNameFromIndex(const int &index ) const; |
134 |
134 |
135 /** |
135 /** |
136 * return default tn always |
136 * return default tn always |
137 * |
137 * |
138 * @param index |
138 * @param index |
139 * @return QIcon |
139 * @return QIcon |
140 */ |
140 */ |
141 const QIcon* getVideoThumbnailFromIndex( int index ) const; |
141 const QIcon* getVideoThumbnailFromIndex(const int &index ) const; |
142 |
142 |
143 /** |
143 /** |
144 * return video count of the item at given index |
144 * return video count of the item at given index |
145 * |
145 * |
146 * @param index |
146 * @param index |
147 * @return quint32 |
147 * @return quint32 |
148 */ |
148 */ |
149 quint32 VideoListDataModelPrivate::getCategoryVideoCountFromIndex( int index ) const; |
149 quint32 getCategoryVideoCountFromIndex(const int &index ) const; |
150 |
150 |
151 /** |
151 /** |
152 * return video size of the item at given index |
152 * return video size of the item at given index |
153 * |
153 * |
154 * @param index |
154 * @param index |
155 * @return quint32 |
155 * @return quint32 |
156 */ |
156 */ |
157 quint32 getVideoSizeFromIndex( int index ) const; |
157 quint32 getVideoSizeFromIndex(const int &index ) const; |
158 |
158 |
159 /** |
159 /** |
160 * return video age profile of the item at given index |
160 * return video age profile of the item at given index |
161 * |
161 * |
162 * @param index |
162 * @param index |
163 * @return quint32 |
163 * @return quint32 |
164 */ |
164 */ |
165 quint32 getVideoAgeProfileFromIndex( int index ) const; |
165 quint32 getVideoAgeProfileFromIndex(const int &index ) const; |
166 |
166 |
167 /** |
167 /** |
168 * return video duration of the item at given index |
168 * return video duration of the item at given index |
169 * |
169 * |
170 * @param index |
170 * @param index |
171 * @return quint32 |
171 * @return quint32 |
172 */ |
172 */ |
173 quint32 getVideodurationFromIndex( int index ) const; |
173 quint32 getVideodurationFromIndex(const int &index ) const; |
174 |
174 |
175 /** |
175 /** |
176 * return video creation datetime of the item at given index |
176 * return video creation datetime of the item at given index |
177 * |
177 * |
178 * @param index |
178 * @param index |
179 * @return QDateTime |
179 * @return QDateTime |
180 */ |
180 */ |
181 QDateTime getVideoDateFromIndex( int index ) const; |
181 QDateTime getVideoDateFromIndex(const int &index ) const; |
182 |
182 |
183 /** |
183 /** |
184 * Returns video status |
184 * Returns video status |
185 * |
185 * |
186 * @param index: item position where client wants the date from. |
186 * @param index: item position where client wants the date from. |
187 * |
187 * |
188 * @return int status code |
188 * @return int status code |
189 */ |
189 */ |
190 int getVideoStatusFromIndex(int index) const; |
190 int getVideoStatusFromIndex(const int &index) const; |
191 |
191 |
192 /** |
192 /** |
193 * marks videos to be removed: it's id and index are saved to |
193 * marks videos to be removed: it's id and index are saved to |
194 * remove buffer in data container |
194 * remove buffer in data container |
195 * |
195 * |
209 /** |
209 /** |
210 * Returns the file path of the video. |
210 * Returns the file path of the video. |
211 * |
211 * |
212 * @param index: item position where client wants the file path from. |
212 * @param index: item position where client wants the file path from. |
213 */ |
213 */ |
214 const QString getFilePathFromIndex(int index) const; |
214 const QString getFilePathFromIndex(const int &index) const; |
215 |
215 |
216 /** |
216 /** |
217 * returns mBelongsToAlbum; |
217 * returns mBelongsToAlbum; |
218 */ |
218 */ |
219 bool belongsToAlbum(TMPXItemId itemId, TMPXItemId albumId); |
219 bool belongsToAlbum(const TMPXItemId &itemId, TMPXItemId albumId); |
220 |
220 |
221 /** |
221 /** |
222 * returns mBelongsToAlbum; |
222 * returns mBelongsToAlbum; |
223 */ |
223 */ |
224 void setAlbumInUse(TMPXItemId albumId); |
224 void setAlbumInUse(const TMPXItemId &albumId); |
225 |
225 |
226 /** |
226 /** |
227 * returns mRemoveFrAlbumReturn |
227 * returns mRemoveFrAlbumReturn |
228 */ |
228 */ |
229 int removeItemsFromAlbum(TMPXItemId &albumId, const QList<TMPXItemId> &ids); |
229 int removeItemsFromAlbum(const TMPXItemId &albumId, const QList<TMPXItemId> &ids); |
230 |
230 |
231 |
231 |
232 private: // private methods |
232 private: // private methods |
233 |
233 |
234 /** |
234 /** |