videocollection/videocollectionwrapper/src/videothumbnaildata.cpp
changeset 50 21fe8338c6bf
parent 37 4eb2df7f7cbe
child 58 d2b028fd1f7d
--- a/videocollection/videocollectionwrapper/src/videothumbnaildata.cpp	Fri Jul 23 11:10:06 2010 +0300
+++ b/videocollection/videocollectionwrapper/src/videothumbnaildata.cpp	Fri Aug 06 09:43:48 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: 26 %
+// Version : %version: 26.1.2 %
 
 // INCLUDE FILES
 #include "videocollectiontrace.h"
@@ -44,8 +44,8 @@
 d_ptr(new VideoThumbnailDataPrivate())
 {
 	FUNC_LOG;
-    connect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)), 
-            this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)));
+    connect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)), 
+            this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)));
 }
 
 // -----------------------------------------------------------------------------
@@ -55,8 +55,8 @@
 VideoThumbnailData::~VideoThumbnailData()
 {
 	FUNC_LOG;
-    disconnect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)), 
-            this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>)));
+    disconnect(d_ptr, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)), 
+            this, SIGNAL(thumbnailsFetched(QList<TMPXItemId>&)));
     delete d_ptr;
 }
 
@@ -64,7 +64,7 @@
 // VideoThumbnailData::removeThumbnail()
 // -----------------------------------------------------------------------------
 //
-bool VideoThumbnailData::removeThumbnail(TMPXItemId mediaId)
+bool VideoThumbnailData::removeThumbnail(const TMPXItemId &mediaId)
 {
 	INFO_2("VideoThumbnailData::removeThumbnail() mediaId (%d, %d)", mediaId.iId1, mediaId.iId2);
     return d_ptr->removeThumbnail(mediaId);
@@ -74,7 +74,7 @@
 // VideoThumbnailData::getThumbnail()
 // -----------------------------------------------------------------------------
 //
-const QIcon* VideoThumbnailData::getThumbnail(TMPXItemId mediaId)
+const QIcon* VideoThumbnailData::getThumbnail(const TMPXItemId &mediaId)
 {
 	INFO_2("VideoThumbnailData::getThumbnail() mediaId (%d, %d)", mediaId.iId1, mediaId.iId2);
     return d_ptr->getThumbnail(mediaId);
@@ -111,6 +111,15 @@
 }
 
 // -----------------------------------------------------------------------------
+// VideoThumbnailData::backgroundFetchingEnabled()
+// -----------------------------------------------------------------------------
+//
+bool VideoThumbnailData::backgroundFetchingEnabled()
+{
+    return d_ptr->backgroundFetchingEnabled();
+}
+
+// -----------------------------------------------------------------------------
 // VideoThumbnailData::freeThumbnailData()
 // -----------------------------------------------------------------------------
 //