videocollection/videocollectionwrapper/inc/videolistdatamodel.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 37 4eb2df7f7cbe
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
   200    
   200    
   201 signals:
   201 signals:
   202 
   202 
   203     /**
   203     /**
   204     * This signal is connected to video list's details ready
   204     * This signal is connected to video list's details ready
   205     * -signal indicating that video details data is fetched ok
   205     * -signal indicating that video details data is fetched
   206     * 
   206     * and provides a QMap of the details'.
   207     * @param id of the video item
       
   208     */
   207     */
   209     void fullVideoDetailsReady(TMPXItemId id);
   208     void fullVideoDetailsReady(QVariant &);
   210     
   209     
   211     /**
   210     /**
   212     * This signal is connected to proxy models short details ready
   211     * This signal is connected to proxy models short details ready
   213     * -signal indicating that video details data fetching started ok
   212     * -signal indicating that video details data fetching started ok
   214     * 
   213     * 
   230     
   229     
   231     /**
   230     /**
   232      * Signals that album content has been updated.
   231      * Signals that album content has been updated.
   233      */
   232      */
   234     void albumChanged();
   233     void albumChanged();
       
   234 
       
   235     /**
       
   236      * Signals that item data has changed.
       
   237      */
       
   238     void itemModified(const TMPXItemId &itemId);
   235     
   239     
   236 private slots:
   240 private slots:
   237     
   241     
   238     /**
   242     /**
   239      * signaled by the deleteworker in case some delete startup fails
   243      * signaled by the deleteworker in case some delete startup fails
   265      * 
   269      * 
   266      * @return QString detail string
   270      * @return QString detail string
   267      */
   271      */
   268     QString prepareDetailRow(int index) const; 
   272     QString prepareDetailRow(int index) const; 
   269 
   273 
       
   274       /**
       
   275      * Formats a detail row string for the video item
       
   276      * at the given index. 
       
   277      * 
       
   278      * In case item is not found in the provided index, empty
       
   279      * string is returned.
       
   280      * 
       
   281      * @param index, index of the item data is requested
       
   282      * @param duration, duration of the video
       
   283      *
       
   284      * @return QString detail string
       
   285      */
       
   286     QString doDetailRow(int index, const QString duration) const;
       
   287 
   270     /**
   288     /**
   271      * Generates a video count string for category or album at given index.
   289      * Generates a video count string for category or album at given index.
   272      * 
   290      * 
   273      * In case item is not found in the provided index, empty
   291      * In case item is not found in the provided index, empty
   274      * string is returned.
   292      * string is returned.
   299      * @data data from operation
   317      * @data data from operation
   300      */
   318      */
   301     void reportAsyncStatus(int statusCode, QVariant &additional);
   319     void reportAsyncStatus(int statusCode, QVariant &additional);
   302             
   320             
   303     /**
   321     /**
   304      * Generates a video length strings from video item at given index
   322      * Generates a short video length string from video item at given index
   305      * 
   323      * 
   306      * In case item is not found in the provided index, empty
   324      * In case item is not found in the provided index, empty
   307      * strings are returned.
   325      * string is returned.
   308      * 
   326      * 
   309      * @param index, index of the item data is requested
   327      * @param index, index of the item data is requested
   310      * 
   328      * 
   311      * @return Lengths as QStringList, first item tells the minutes, second tells seconds
   329      * @return Lengths as QString,  (for example "00:25:10").
   312      */
   330      */
   313     QStringList prepareLengthStrings(int index) const;
   331     QString prepareShortLengthString(int index) const;
   314 
   332 
   315 private:
   333 private:
   316     
   334     
   317     /**
   335     /**
   318      * Private implementation Contains the actual video data and
   336      * Private implementation Contains the actual video data and