--- a/videocollection/videocollectionwrapper/inc/videolistdatamodel_p.h Thu Apr 01 23:22:15 2010 +0300
+++ b/videocollection/videocollectionwrapper/inc/videolistdatamodel_p.h Thu Apr 01 23:32:44 2010 +0300
@@ -221,6 +221,16 @@
const QIcon* getVideoThumbnailFromIndex(int index) const;
/**
+ * Returns the value for item count attribute from given index.
+ * If there is no item at that index, 0 is returned.
+ *
+ * @param index: item position where client wants the count from
+ *
+ * @return guint32 size in bytes
+ */
+ quint32 getCategoryVideoCountFromIndex( int index ) const;
+
+ /**
* Returns the size of the video from given index.
* If there is no item at that index, 0 is returned
*
@@ -317,6 +327,16 @@
* @return None.
*/
void setAlbumInUse(TMPXItemId albumId);
+
+ /**
+ * removes provided items from album provided
+ *
+ * @param albumId album from where to remove
+ * @param items to remove
+ *
+ * @return count of item removed;
+ */
+ int removeItemsFromAlbum(TMPXItemId &albumId, const QList<TMPXItemId> &items);
private: // private methods
@@ -363,9 +383,12 @@
bool isValid(const CMPXMedia &media, const TMPXItemId &itemId) const;
/**
- * Appends data in album.
+ * Album data changed, resets album data from array provided
+ *
+ * @param albumId id of album
+ * @param videoarray array of videos in album
*/
- void appendDataToAlbumL(TMPXItemId albumId, CMPXMediaArray *videoArray);
+ void albumDataChangedL(TMPXItemId albumId, CMPXMediaArray *videoArray);
/**
* Called when an album has been removed.