videocollection/videocollectionwrapper/src/videothumbnaildata.cpp
changeset 52 e3cecb93e76a
parent 20 b9e04db066d4
child 62 0e1e938beb1a
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
    13 *
    13 *
    14 * Description: VideoThumbnailData class implementation
    14 * Description: VideoThumbnailData class implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 26 %
    18 // Version : %version: 26.1.2 %
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include "videocollectiontrace.h"
    21 #include "videocollectiontrace.h"
    22 #include "videothumbnaildata.h"
    22 #include "videothumbnaildata.h"
    23 #include "videothumbnaildata_p.h"
    23 #include "videothumbnaildata_p.h"
    42 //
    42 //
    43 VideoThumbnailData::VideoThumbnailData() :
    43 VideoThumbnailData::VideoThumbnailData() :
    44 d_ptr(new VideoThumbnailDataPrivate())
    44 d_ptr(new VideoThumbnailDataPrivate())
    45 {
    45 {
    46 	FUNC_LOG;
    46 	FUNC_LOG;
    47     connect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)), 
    47     connect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)), 
    48             this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)));
    48             this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)));
    49 }
    49 }
    50 
    50 
    51 // -----------------------------------------------------------------------------
    51 // -----------------------------------------------------------------------------
    52 // VideoThumbnailData::~VideoThumbnailData()
    52 // VideoThumbnailData::~VideoThumbnailData()
    53 // -----------------------------------------------------------------------------
    53 // -----------------------------------------------------------------------------
    54 //
    54 //
    55 VideoThumbnailData::~VideoThumbnailData()
    55 VideoThumbnailData::~VideoThumbnailData()
    56 {
    56 {
    57 	FUNC_LOG;
    57 	FUNC_LOG;
    58     disconnect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)), 
    58     disconnect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)), 
    59             this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)));
    59             this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)));
    60     delete d_ptr;
    60     delete d_ptr;
    61 }
    61 }
    62 
    62 
    63 // -----------------------------------------------------------------------------
    63 // -----------------------------------------------------------------------------
    64 // VideoThumbnailData::removeThumbnail()
    64 // VideoThumbnailData::removeThumbnail()
    65 // -----------------------------------------------------------------------------
    65 // -----------------------------------------------------------------------------
    66 //
    66 //
    67 bool VideoThumbnailData::removeThumbnail(TMPXItemId mediaId)
    67 bool VideoThumbnailData::removeThumbnail(const TMPXItemId &mediaId)
    68 {
    68 {
    69 	INFO_2("VideoThumbnailData::removeThumbnail() mediaId (%d, %d)", mediaId.iId1, mediaId.iId2);
    69 	INFO_2("VideoThumbnailData::removeThumbnail() mediaId (%d, %d)", mediaId.iId1, mediaId.iId2);
    70     return d_ptr->removeThumbnail(mediaId);
    70     return d_ptr->removeThumbnail(mediaId);
    71 }
    71 }
    72 
    72 
    73 // -----------------------------------------------------------------------------
    73 // -----------------------------------------------------------------------------
    74 // VideoThumbnailData::getThumbnail()
    74 // VideoThumbnailData::getThumbnail()
    75 // -----------------------------------------------------------------------------
    75 // -----------------------------------------------------------------------------
    76 //
    76 //
    77 const QIcon* VideoThumbnailData::getThumbnail(TMPXItemId mediaId)
    77 const QIcon* VideoThumbnailData::getThumbnail(const TMPXItemId &mediaId)
    78 {
    78 {
    79 	INFO_2("VideoThumbnailData::getThumbnail() mediaId (%d, %d)", mediaId.iId1, mediaId.iId2);
    79 	INFO_2("VideoThumbnailData::getThumbnail() mediaId (%d, %d)", mediaId.iId1, mediaId.iId2);
    80     return d_ptr->getThumbnail(mediaId);
    80     return d_ptr->getThumbnail(mediaId);
    81 }
    81 }
    82 
    82 
   109     INFO_1("VideoThumbnailData::enableThumbnailCreation() enable: %d", enable);
   109     INFO_1("VideoThumbnailData::enableThumbnailCreation() enable: %d", enable);
   110     d_ptr->enableThumbnailCreation(enable);
   110     d_ptr->enableThumbnailCreation(enable);
   111 }
   111 }
   112 
   112 
   113 // -----------------------------------------------------------------------------
   113 // -----------------------------------------------------------------------------
       
   114 // VideoThumbnailData::backgroundFetchingEnabled()
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 bool VideoThumbnailData::backgroundFetchingEnabled()
       
   118 {
       
   119     return d_ptr->backgroundFetchingEnabled();
       
   120 }
       
   121 
       
   122 // -----------------------------------------------------------------------------
   114 // VideoThumbnailData::freeThumbnailData()
   123 // VideoThumbnailData::freeThumbnailData()
   115 // -----------------------------------------------------------------------------
   124 // -----------------------------------------------------------------------------
   116 //
   125 //
   117 void VideoThumbnailData::freeThumbnailData()
   126 void VideoThumbnailData::freeThumbnailData()
   118 {
   127 {