videocollection/videocollectionwrapper/tsrc/testvideomodel/stub/src/videolistdatamodel_p.cpp
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 38 ff53afa8ad05
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
   253     }
   253     }
   254     return date;    
   254     return date;    
   255 }
   255 }
   256 
   256 
   257 // -----------------------------------------------------------------------------
   257 // -----------------------------------------------------------------------------
   258 // getMetaDataFromIndex
       
   259 // -----------------------------------------------------------------------------
       
   260 //
       
   261 QMap<QString, QVariant> VideoListDataModelPrivate::getMetaDataFromIndex(int /*index*/) const
       
   262 {
       
   263     QMap<QString, QVariant> map;
       
   264     
       
   265     // no need to actually populate the map with real like data, as the datamodel
       
   266     // is not responsible in anyway what data the actual map contains. So here we
       
   267     // only need to make sure that the map received in test has been gotten by
       
   268     // calling this function.
       
   269     map["metadata"] = QString("metadata");
       
   270     
       
   271     return map;
       
   272 }
       
   273 
       
   274 // -----------------------------------------------------------------------------
       
   275 // getMediaIdFromIndex
   258 // getMediaIdFromIndex
   276 // -----------------------------------------------------------------------------
   259 // -----------------------------------------------------------------------------
   277 //
   260 //
   278 TMPXItemId VideoListDataModelPrivate::getMediaIdFromIndex( int index ) const
   261 TMPXItemId VideoListDataModelPrivate::getMediaIdFromIndex( int index ) const
   279 {
   262 {
   487 
   470 
   488 // -----------------------------------------------------------------------------
   471 // -----------------------------------------------------------------------------
   489 // videoDetailsCompleted
   472 // videoDetailsCompleted
   490 // -----------------------------------------------------------------------------
   473 // -----------------------------------------------------------------------------
   491 // 
   474 // 
   492 void VideoListDataModelPrivate::videoDetailsCompletedSlot(TMPXItemId videoId)
   475 void VideoListDataModelPrivate::videoDetailsCompletedSlot(CMPXMedia* media)
   493 {
   476 {
   494     Q_UNUSED(videoId);      
   477     Q_UNUSED(media);      
   495 }
   478 }
   496 
   479 
   497 // -----------------------------------------------------------------------------
   480 // -----------------------------------------------------------------------------
   498 // albumListAvailableSlot
   481 // albumListAvailableSlot
   499 // -----------------------------------------------------------------------------
   482 // -----------------------------------------------------------------------------
   504     Q_UNUSED(albumId);
   487     Q_UNUSED(albumId);
   505     Q_UNUSED(albumItems);
   488     Q_UNUSED(albumItems);
   506 }
   489 }
   507 
   490 
   508 // -----------------------------------------------------------------------------
   491 // -----------------------------------------------------------------------------
       
   492 // itemModifiedSlot
       
   493 // -----------------------------------------------------------------------------
       
   494 // 
       
   495 void VideoListDataModelPrivate::itemModifiedSlot(const TMPXItemId &itemId)
       
   496 {
       
   497     Q_UNUSED(itemId);
       
   498 }
       
   499 
       
   500 // -----------------------------------------------------------------------------
   509 // albumRemoveFailureSlot
   501 // albumRemoveFailureSlot
   510 // -----------------------------------------------------------------------------
   502 // -----------------------------------------------------------------------------
   511 // 
   503 // 
   512 void VideoListDataModelPrivate::albumRemoveFailureSlot(QList<TMPXItemId> *items)
   504 void VideoListDataModelPrivate::albumRemoveFailureSlot(QList<TMPXItemId> *items)
   513 {
   505 {