videocollection/videocollectionwrapper/inc/videolistdatamodel_p.h
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
   219      * @return QIcon thumbnail of the item
   219      * @return QIcon thumbnail of the item
   220      */
   220      */
   221     const QIcon* getVideoThumbnailFromIndex(int index)  const;
   221     const QIcon* getVideoThumbnailFromIndex(int index)  const;
   222     
   222     
   223     /**
   223     /**
       
   224      * Returns the value for item count attribute from given index. 
       
   225 	 * If there is no item at that index, 0 is returned.
       
   226      * 
       
   227      * @param index: item position where client wants the count from 
       
   228      * 
       
   229      * @return guint32 size in bytes
       
   230      */
       
   231     quint32 getCategoryVideoCountFromIndex( int index ) const;
       
   232     
       
   233     /**
   224      * Returns the size of the video from given index.
   234      * Returns the size of the video from given index.
   225      * If there is no item at that index, 0 is returned
   235      * If there is no item at that index, 0 is returned
   226      * 
   236      * 
   227      * @param index: item position where client wants the size from 
   237      * @param index: item position where client wants the size from 
   228      * 
   238      * 
   315      * 
   325      * 
   316      * @param albumId, Album to set in use.
   326      * @param albumId, Album to set in use.
   317      * @return None.
   327      * @return None.
   318      */
   328      */
   319     void setAlbumInUse(TMPXItemId albumId);
   329     void setAlbumInUse(TMPXItemId albumId);
       
   330     
       
   331     /**
       
   332      * removes provided items from album provided
       
   333      * 
       
   334      * @param albumId album from where to remove
       
   335      * @param items to remove
       
   336      * 
       
   337      * @return count of item removed;
       
   338      */
       
   339     int removeItemsFromAlbum(TMPXItemId &albumId, const QList<TMPXItemId> &items);
   320 
   340 
   321 private: // private methods
   341 private: // private methods
   322   
   342   
   323     /**
   343     /**
   324      * private default constructor definition
   344      * private default constructor definition
   361      * @return true if valid.
   381      * @return true if valid.
   362      */
   382      */
   363     bool isValid(const CMPXMedia &media, const TMPXItemId &itemId) const;
   383     bool isValid(const CMPXMedia &media, const TMPXItemId &itemId) const;
   364     
   384     
   365     /**
   385     /**
   366      * Appends data in album.
   386      * Album data changed, resets album data from array provided
   367      */
   387      * 
   368     void appendDataToAlbumL(TMPXItemId albumId, CMPXMediaArray *videoArray);
   388      * @param albumId id of album
       
   389      * @param videoarray array of videos in album 
       
   390      */
       
   391     void albumDataChangedL(TMPXItemId albumId, CMPXMediaArray *videoArray);
   369 
   392 
   370     /**
   393     /**
   371      * Called when an album has been removed.
   394      * Called when an album has been removed.
   372      * 
   395      * 
   373      * @param albumId, Album which items are received.
   396      * @param albumId, Album which items are received.