videocollection/videocollectionwrapper/inc/videothumbnaildata_p.h
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 37 4eb2df7f7cbe
--- a/videocollection/videocollectionwrapper/inc/videothumbnaildata_p.h	Thu Apr 01 23:22:15 2010 +0300
+++ b/videocollection/videocollectionwrapper/inc/videothumbnaildata_p.h	Thu Apr 01 23:32:44 2010 +0300
@@ -34,6 +34,7 @@
 class QModelIndex;
 class QTimer;
 class VideoThumbnailFetcher;
+class HbIcon;
 
 class VideoThumbnailDataPrivate : public QObject
 {
@@ -243,7 +244,7 @@
     VideoThumbnailFetcher            *mThumbnailFetcher;
     
     /**
-     * Local data map for thumbnail data:
+     * Local cache for thumbnail data:
      * - key is the video's media id
      * - data is the actual thumbnail data.
      * If thumbnail data is not yet fetched, QIcon is default thumbnail.
@@ -251,10 +252,12 @@
     QCache<TMPXItemId, QIcon>        mThumbnailData;
 
     /**
-     * Default thumbnail for a video.
+     * Local hash for default thumbnails.
+     * - key is mpx item id defining default tn type 
+     *  - data is the actual thumbnail data.
      */
-    QIcon                           *mDefaultTnVideo;
-
+    QHash<TMPXItemId, HbIcon>       mDefaultThumbnails;
+    
     /**
      * Default thumbnail for a category.
      */