equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: VideoListDataModelPrivate class implementation |
14 * Description: VideoListDataModelPrivate class implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 37 % |
18 // Version : %version: 38 % |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <hbglobal.h> |
21 #include <hbglobal.h> |
22 #include <mpxmediageneraldefs.h> |
22 #include <mpxmediageneraldefs.h> |
23 #include <mpxmediavideodefs.h> |
23 #include <mpxmediavideodefs.h> |
449 mAlbumData[albumId] = items; |
449 mAlbumData[albumId] = items; |
450 |
450 |
451 // signal that album has been updated |
451 // signal that album has been updated |
452 emit q_ptr->albumChanged(); |
452 emit q_ptr->albumChanged(); |
453 |
453 |
454 // signal that model is ready |
454 // signal that model has changed. |
455 emit q_ptr->modelReady(); |
455 emit q_ptr->modelChanged(); |
456 } |
456 } |
457 |
457 |
458 |
458 |
459 // ----------------------------------------------------------------------------- |
459 // ----------------------------------------------------------------------------- |
460 // thumbnailsFetchedSlot |
460 // thumbnailsFetchedSlot |
495 int endIndex = mMediaData.count() - 1; |
495 int endIndex = mMediaData.count() - 1; |
496 if(startIndex <= endIndex) |
496 if(startIndex <= endIndex) |
497 { |
497 { |
498 q_ptr->beginInsertRows(QModelIndex(), startIndex, endIndex); |
498 q_ptr->beginInsertRows(QModelIndex(), startIndex, endIndex); |
499 q_ptr->endInsertRows(); |
499 q_ptr->endInsertRows(); |
500 } |
500 emit q_ptr->modelChanged(); |
501 |
501 } |
502 emit q_ptr->modelReady(); |
|
503 } |
502 } |
504 |
503 |
505 // ----------------------------------------------------------------------------- |
504 // ----------------------------------------------------------------------------- |
506 // appendVideoListSlot |
505 // appendVideoListSlot |
507 // ----------------------------------------------------------------------------- |
506 // ----------------------------------------------------------------------------- |
888 emit q_ptr->itemModified(itemId); |
887 emit q_ptr->itemModified(itemId); |
889 } |
888 } |
890 } |
889 } |
891 } |
890 } |
892 |
891 |
|
892 // ----------------------------------------------------------------------------- |
|
893 // listCompleteSlot |
|
894 // ----------------------------------------------------------------------------- |
|
895 // |
|
896 void VideoListDataModelPrivate::listCompleteSlot() |
|
897 { |
|
898 emit q_ptr->modelReady(); |
|
899 } |
|
900 |
893 // End of file |
901 // End of file |