videocollection/videocollectionwrapper/inc/videolistdatamodel.h
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
   138      * 
   138      * 
   139      * @return TMPXItemId
   139      * @return TMPXItemId
   140      */
   140      */
   141     TMPXItemId albumInUse();
   141     TMPXItemId albumInUse();
   142     
   142     
       
   143     /**
       
   144      * removes provided items from provided album id and calls
       
   145      * collectionclient to update mds as well.
       
   146      * 
       
   147      * @param albumId album from where to remove
       
   148      * @param items items to remove
       
   149      * 
       
   150      * @return count of items removed or -1 if failed 
       
   151      */
       
   152     int removeItemsFromAlbum(TMPXItemId &albumId, const QList<TMPXItemId> &items);    
       
   153     
   143 public: // from QAbstractItemModel
   154 public: // from QAbstractItemModel
   144     
   155     
   145     /**
   156     /**
   146      * Returns video item count to the proxy cache
   157      * Returns video item count to the proxy cache
   147      * 
   158      * 
   252      * 
   263      * 
   253      * @param index, index of the item data is requested
   264      * @param index, index of the item data is requested
   254      * 
   265      * 
   255      * @return QString detail string
   266      * @return QString detail string
   256      */
   267      */
   257     QString prepareDetailRow( int index ) const; 
   268     QString prepareDetailRow(int index) const; 
   258     
   269 
   259     /**
   270     /**
   260      * Generates a video size string from video item at given index
   271      * Generates a video count string for category or album at given index.
   261      * 
   272      * 
   262      * In case item is not found in the provided index, empty
   273      * In case item is not found in the provided index, empty
   263      * string is returned.
   274      * string is returned.
   264      * 
   275      * 
   265      * @param index, index of the item data is requested
   276      * @param index, index of the item data is requested
       
   277      * @param index, item id of the item data is requested  
       
   278      * 
       
   279      * @return QString video count string
       
   280      */
       
   281     QString prepareVideoCountString(int index) const;
       
   282     
       
   283     /**
       
   284      * Generates a video size string from video item at given index
       
   285      * 
       
   286      * In case item is not found in the provided index, empty
       
   287      * string is returned.
       
   288      * 
       
   289      * @param index, index of the item data is requested
   266      * 
   290      * 
   267      * @return QString size string
   291      * @return QString size string
   268      */
   292      */
   269     QString prepareSizeString( int index ) const;
   293     QString prepareSizeString(int index) const;
   270     
   294     
   271     /**
   295     /**
   272      * Called when there are status changes in some async operation
   296      * Called when there are status changes in some async operation
   273      * 
   297      * 
   274      * @param statusCode status of operation
   298      * @param statusCode status of operation
   284      * 
   308      * 
   285      * @param index, index of the item data is requested
   309      * @param index, index of the item data is requested
   286      * 
   310      * 
   287      * @return Lengths as QStringList, first item tells the minutes, second tells seconds
   311      * @return Lengths as QStringList, first item tells the minutes, second tells seconds
   288      */
   312      */
   289     QStringList prepareLengthStrings( int index  ) const;
   313     QStringList prepareLengthStrings(int index) const;
   290 
   314 
   291 private:
   315 private:
   292     
   316     
   293     /**
   317     /**
   294      * Private implementation Contains the actual video data and
   318      * Private implementation Contains the actual video data and