videocollection/videocollectionwrapper/inc/videolistdatamodel_p.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 38 ff53afa8ad05
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
    88      */
    88      */
    89     void dataChanged(const QModelIndex &startIndex, const QModelIndex &endIndex);
    89     void dataChanged(const QModelIndex &startIndex, const QModelIndex &endIndex);
    90 
    90 
    91     /**
    91     /**
    92      * This signal is emitted, collection notifies details for item has been
    92      * This signal is emitted, collection notifies details for item has been
    93      * fetched
    93      * fetched and provides a QMap of the details'.
    94      * 
    94      */
    95      * @param itemId
    95     void videoDetailsReady(QVariant &);
    96      * 
       
    97      */
       
    98     void videoDetailsReady(TMPXItemId itemId);
       
    99 
    96 
   100 private slots:
    97 private slots:
   101 
    98 
   102     /**
    99     /**
   103      * This slot is connected to VideoThumbnailData::thumbnailsFetched -signal
   100      * This slot is connected to VideoThumbnailData::thumbnailsFetched -signal
   168     /**
   165     /**
   169      * Signaled by the collection client when video details fetching
   166      * Signaled by the collection client when video details fetching
   170      * has completed.
   167      * has completed.
   171      * 
   168      * 
   172      */
   169      */
   173     void videoDetailsCompletedSlot(TMPXItemId videoId);      
   170     void videoDetailsCompletedSlot(CMPXMedia* media);      
   174     
   171     
   175     /**
   172     /**
   176      * Signalled when album items are recieved.
   173      * Signalled when album items are recieved.
   177      * 
   174      * 
   178      * @param albumId, Album which items are received.
   175      * @param albumId, Album which items are received.
   179      * @param albumItems, Items belonging to the current album.
   176      * @param albumItems, Items belonging to the current album.
   180      */
   177      */
   181     void albumListAvailableSlot(TMPXItemId albumId, CMPXMediaArray *albumItems);
   178     void albumListAvailableSlot(TMPXItemId albumId, CMPXMediaArray *albumItems);
       
   179     
       
   180     /**
       
   181      * Signalled when item has been mofidied.
       
   182      * 
       
   183      * @param itemId, item that has been modified.
       
   184      */
       
   185     void itemModifiedSlot(const TMPXItemId &itemId);
   182 
   186 
   183 public: // services 
   187 public: // services 
   184     
   188     
   185     /**
   189     /**
   186      * Returns video count
   190      * Returns video count
   259      * @return guint32 duration
   263      * @return guint32 duration
   260      */
   264      */
   261     quint32 getVideodurationFromIndex(int index) const;
   265     quint32 getVideodurationFromIndex(int index) const;
   262     
   266     
   263     /**
   267     /**
       
   268      * Returns the duration of the video from given media.
       
   269      * 
       
   270      * @param media The video media object. 
       
   271      * 
       
   272      * @return guint32 duration
       
   273      */
       
   274     quint32 getVideoDuration(CMPXMedia* media) const;
       
   275     
       
   276     /**
   264      * Returns the creation/download date of the video.
   277      * Returns the creation/download date of the video.
   265      * 
   278      * 
   266      * @param index: item position where client wants the date from.
   279      * @param index: item position where client wants the date from.
   267      * 
   280      * 
   268      * @return QDate date
   281      * @return QDate date
   269      */
   282      */
   270     QDateTime getVideoDateFromIndex(int index) const;
   283     QDateTime getVideoDateFromIndex(int index) const;
   271     
   284     
   272     /**
   285     /**
   273      * Returns the metadata for the video.
   286      * Returns the creation/download date of the video
   274      * 
   287      * 
   275      * @param index: item position where client wants the data from.
   288      * @param media The video media object.
   276      * 
   289      */
   277      * @return QMap map of the QVariants that hold the data. Keys defined 
   290     QDateTime getVideoDate(CMPXMedia* media) const;
   278      *      in VideoCollectionCommon
       
   279      */
       
   280     QMap<QString, QVariant> getMetaDataFromIndex(int index) const;
       
   281     
   291     
   282     /**
   292     /**
   283      * marks videos to be removed: it's id and index are saved to 
   293      * marks videos to be removed: it's id and index are saved to 
   284      * remove buffer in data container
   294      * remove buffer in data container
   285      * 
   295      *