videocollection/videocollectionwrapper/inc/videothumbnaildata.h
changeset 50 21fe8338c6bf
parent 34 bbb98528c666
child 58 d2b028fd1f7d
equal deleted inserted replaced
49:824471cb468a 50:21fe8338c6bf
    69      * @param mediaId id for media whose thumbnail is to be removed
    69      * @param mediaId id for media whose thumbnail is to be removed
    70      *
    70      *
    71      * @return bool: true if item removed correctly, false if not.
    71      * @return bool: true if item removed correctly, false if not.
    72      *
    72      *
    73      */
    73      */
    74     bool removeThumbnail(TMPXItemId mediaId);
    74     bool removeThumbnail(const TMPXItemId &mediaId);
    75     
    75     
    76     /**
    76     /**
    77      * Method returns a pointer to video's thumbnail.
    77      * Method returns a pointer to video's thumbnail.
    78      *
    78      *
    79      * If thumbnail fetching is ongoing or not yet started, pointer to default 
    79      * If thumbnail fetching is ongoing or not yet started, pointer to default 
    83      * @param tnData reference to thumbnail data where data is occupied
    83      * @param tnData reference to thumbnail data where data is occupied
    84      *
    84      *
    85      * @return QIcon* thumbnail pointer
    85      * @return QIcon* thumbnail pointer
    86      *
    86      *
    87      */
    87      */
    88     const QIcon* getThumbnail(TMPXItemId mediaId);
    88     const QIcon* getThumbnail(const TMPXItemId &mediaId);
    89 
    89 
    90     /**
    90     /**
    91      * Starts background thumbnail fetching, the model used for the background fetching
    91      * Starts background thumbnail fetching, the model used for the background fetching
    92      * is also changed.
    92      * is also changed.
    93      *
    93      *
   111      * @param enable true enables and false disables thumbnail creation.
   111      * @param enable true enables and false disables thumbnail creation.
   112      */
   112      */
   113     void enableThumbnailCreation(bool enable);    
   113     void enableThumbnailCreation(bool enable);    
   114     
   114     
   115     /**
   115     /**
       
   116      * Returns background fetching enabled status. 
       
   117      * 
       
   118      * @return bool: true if background fetching is enabled, otherwise false.
       
   119      */
       
   120     bool backgroundFetchingEnabled();
       
   121     
       
   122     /**
   116      * Frees allocated data for thumbnails and cancels ongoing fetches.
   123      * Frees allocated data for thumbnails and cancels ongoing fetches.
   117      * 
   124      * 
   118      */
   125      */
   119     void freeThumbnailData();
   126     void freeThumbnailData();
   120 
   127 
   124      * This signal is emitted from thumbnailReadySlot, when
   131      * This signal is emitted from thumbnailReadySlot, when
   125      *
   132      *
   126      * @param mediaIds: media ids of the videos whose thumbnail is ready.
   133      * @param mediaIds: media ids of the videos whose thumbnail is ready.
   127      *
   134      *
   128      */
   135      */
   129     void thumbnailsFetched(QList<TMPXItemId> mediaIds);
   136     void thumbnailsFetched(QList<TMPXItemId>& mediaIds);
   130     
   137     
   131 private:
   138 private:
   132 
   139 
   133     /**
   140     /**
   134      * Default constructor
   141      * Default constructor