videocollection/videocollectionwrapper/src/videothumbnailfetcher.cpp
changeset 39 f6d44a0cd476
parent 37 4eb2df7f7cbe
child 58 d2b028fd1f7d
equal deleted inserted replaced
38:ff53afa8ad05 39:f6d44a0cd476
    13 *
    13 *
    14 * Description: VideoThumbnailFetcher class implementation
    14 * Description: VideoThumbnailFetcher class implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 4 %
    18 // Version : %version: 6 %
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <qpixmap.h>
    21 #include <qpixmap.h>
    22 #include <thumbnailmanager_qt.h>
    22 #include <thumbnailmanager_qt.h>
    23 
    23 
   300 // -----------------------------------------------------------------------------
   300 // -----------------------------------------------------------------------------
   301 //
   301 //
   302 void VideoThumbnailFetcher::thumbnailReadySlot(QPixmap tnData, void *internal, int requestId, int error)
   302 void VideoThumbnailFetcher::thumbnailReadySlot(QPixmap tnData, void *internal, int requestId, int error)
   303 {
   303 {
   304     INFO_2("VideoThumbnailFetcher::thumbnailReadySlot() requestId: %d, error: %d", requestId, error);
   304     INFO_2("VideoThumbnailFetcher::thumbnailReadySlot() requestId: %d, error: %d", requestId, error);
       
   305     Q_UNUSED(requestId);
   305     
   306     
   306     TMPXItemId mediaId = TMPXItemId::InvalidId();
   307     TMPXItemId mediaId = TMPXItemId::InvalidId();
   307     if(internal)
   308     if(internal)
   308     {
   309     {
   309         mediaId = *(static_cast<TMPXItemId*>(internal));
   310         TMPXItemId *idPointer = static_cast<TMPXItemId*>(internal); 
   310     }
   311         mediaId = *idPointer;
   311     delete internal;
   312         delete idPointer;
       
   313     }
   312 
   314 
   313     // Thumbnail has not been generated yet, put it into creation list.
   315     // Thumbnail has not been generated yet, put it into creation list.
   314     if(error == -1)
   316     if(error == -1)
   315     {   
   317     {   
   316         if(mStartedFetchList.contains(mediaId))
   318         if(mStartedFetchList.contains(mediaId))