videocollection/videocollectionwrapper/inc/videolistdatamodel.h
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
--- a/videocollection/videocollectionwrapper/inc/videolistdatamodel.h	Thu Apr 01 23:22:15 2010 +0300
+++ b/videocollection/videocollectionwrapper/inc/videolistdatamodel.h	Thu Apr 01 23:32:44 2010 +0300
@@ -140,6 +140,17 @@
      */
     TMPXItemId albumInUse();
     
+    /**
+     * removes provided items from provided album id and calls
+     * collectionclient to update mds as well.
+     * 
+     * @param albumId album from where to remove
+     * @param items items to remove
+     * 
+     * @return count of items removed or -1 if failed 
+     */
+    int removeItemsFromAlbum(TMPXItemId &albumId, const QList<TMPXItemId> &items);    
+    
 public: // from QAbstractItemModel
     
     /**
@@ -254,7 +265,20 @@
      * 
      * @return QString detail string
      */
-    QString prepareDetailRow( int index ) const; 
+    QString prepareDetailRow(int index) const; 
+
+    /**
+     * Generates a video count string for category or album at given index.
+     * 
+     * In case item is not found in the provided index, empty
+     * string is returned.
+     * 
+     * @param index, index of the item data is requested
+     * @param index, item id of the item data is requested  
+     * 
+     * @return QString video count string
+     */
+    QString prepareVideoCountString(int index) const;
     
     /**
      * Generates a video size string from video item at given index
@@ -266,7 +290,7 @@
      * 
      * @return QString size string
      */
-    QString prepareSizeString( int index ) const;
+    QString prepareSizeString(int index) const;
     
     /**
      * Called when there are status changes in some async operation
@@ -286,7 +310,7 @@
      * 
      * @return Lengths as QStringList, first item tells the minutes, second tells seconds
      */
-    QStringList prepareLengthStrings( int index  ) const;
+    QStringList prepareLengthStrings(int index) const;
 
 private: