50 playlist related operations (save, rearrange, remove). |
50 playlist related operations (save, rearrange, remove). |
51 |
51 |
52 \sa setMpxMedia() |
52 \sa setMpxMedia() |
53 */ |
53 */ |
54 |
54 |
|
55 /*! |
|
56 \fn void dataChanged( int fromIndex, int toIndex ) |
|
57 |
|
58 This signal is emitted when a new data set is available within the |
|
59 same context. This can happen during an incremental open operation, |
|
60 if the view accesses a range of data that doesn't have final data |
|
61 (i.e. Unknown). This signal is emitted upon completion of incremental |
|
62 open operation, if such unavailable range was accessed. |
|
63 |
|
64 \sa setMpxMedia() |
|
65 */ |
55 |
66 |
56 /*! |
67 /*! |
57 \fn void albumDataChanged() |
68 \fn void albumDataChanged() |
58 |
69 |
59 This signal is specific to views with TBone. This signal is emitted when |
70 This signal is specific to views with TBone. This signal is emitted when |
239 { |
250 { |
240 return d_ptr->albumSongData( index, type ); |
251 return d_ptr->albumSongData( index, type ); |
241 } |
252 } |
242 |
253 |
243 /*! |
254 /*! |
|
255 Returns item property for the specified \a index and \a type in the current item. |
|
256 Currently supported data types are: Corrupted and DrmExpired. All others will return |
|
257 false bool. |
|
258 */ |
|
259 |
|
260 bool MpMpxCollectionData::hasItemProperty( int index, MpMpxCollectionData:: DataProperty type ) const |
|
261 { |
|
262 return d_ptr->hasItemProperty( index, type ); |
|
263 } |
|
264 |
|
265 /*! |
|
266 Returns item property for the specified \a index and \a type in the current album. |
|
267 Currently supported data types are: Corrupted and DrmExpired. All others will return |
|
268 false bool. |
|
269 */ |
|
270 bool MpMpxCollectionData::hasAlbumSongProperty( int index, MpMpxCollectionData:: DataProperty type ) const |
|
271 { |
|
272 return d_ptr->hasAlbumSongProperty( index, type); |
|
273 } |
|
274 |
|
275 /*! |
244 Sets the media \a entries from the MPX framework. The \a reopen flag indicates |
276 Sets the media \a entries from the MPX framework. The \a reopen flag indicates |
245 whether the new media is a result of reopenCollection() operation in the MpEngine. |
277 whether the new media is a result of reopenCollection() operation in the MpEngine. |
246 Internal usage only from MpEngine. |
278 Internal usage only from MpEngine. |
247 */ |
279 */ |
248 void MpMpxCollectionData::setMpxMedia( const CMPXMedia& entries, bool reopen ) |
280 void MpMpxCollectionData::setMpxMedia( const CMPXMedia& entries, bool reopen ) |
249 { |
281 { |
250 d_ptr->setMpxMedia(entries, reopen); |
282 d_ptr->setMpxMedia(entries, reopen); |
|
283 } |
|
284 |
|
285 /*! |
|
286 Called when collection was opened with incremental open. This indicates that the |
|
287 media received in setMpxMedia() has an update. |
|
288 */ |
|
289 void MpMpxCollectionData::incrementalOpenUpdate() |
|
290 { |
|
291 d_ptr->incrementalOpenUpdate(); |
251 } |
292 } |
252 |
293 |
253 /*! |
294 /*! |
254 Returns the container media from the MPX framework. |
295 Returns the container media from the MPX framework. |
255 Internal usage only from MpEngine. |
296 Internal usage only from MpEngine. |
302 int MpMpxCollectionData::albumSongIndex( int songUniqueId ) |
343 int MpMpxCollectionData::albumSongIndex( int songUniqueId ) |
303 { |
344 { |
304 return d_ptr->albumSongIndex( songUniqueId ); |
345 return d_ptr->albumSongIndex( songUniqueId ); |
305 } |
346 } |
306 |
347 |
307 //EOF |
348 /*! |
308 |
349 Returns the list of index for the song with \a songUniqueId. |
309 |
350 A list is returned due to playlist can contain the same song |
|
351 multiple times. |
|
352 |
|
353 */ |
|
354 QList<int> MpMpxCollectionData::songIndex( int songUniqueId ) |
|
355 { |
|
356 return d_ptr->songIndex( songUniqueId ); |
|
357 } |
|
358 |
|
359 /*! |
|
360 Set model index \a index as corrupted. |
|
361 |
|
362 */ |
|
363 void MpMpxCollectionData::setCorruptValue( QModelIndex index, bool tBone ) |
|
364 { |
|
365 d_ptr->setCorruptValue( index, tBone ); |
|
366 } |
|
367 |
|
368 /*! |
|
369 Set the reloadAlbumContent variable to \a reloadAlbum |
|
370 |
|
371 */ |
|
372 void MpMpxCollectionData::setReloadAlbumContent( bool reloadAlbum ) |
|
373 { |
|
374 d_ptr->setReloadAlbumContent( reloadAlbum ); |
|
375 } |
|
376 |