17 */ |
17 */ |
18 #ifndef MYDATAPROVIDER2_H |
18 #ifndef MYDATAPROVIDER2_H |
19 #define MYDATAPROVIDER2_H |
19 #define MYDATAPROVIDER2_H |
20 |
20 |
21 #include <QtGui> |
21 #include <QtGui> |
22 |
|
23 #include <thumbnailmanager_qt.h> |
|
24 #include <hgwidgets/hgdataprovidermodel.h> |
|
25 #include <HbIcon> |
|
26 #include <QList> |
22 #include <QList> |
27 #include <QPair> |
23 #include <QPair> |
|
24 #include <QMap> |
|
25 #include <HbIcon> |
|
26 #include <hgwidgets/hgdataprovidermodel.h> |
28 #include <mdesession.h> |
27 #include <mdesession.h> |
29 #include <mdequery.h> |
28 #include <mdequery.h> |
30 #include "flogger.h" |
29 #include "flogger.h" |
|
30 #include <thumbnailmanager_qt.h> |
31 |
31 |
32 class CMdESession; |
32 class CMdESession; |
33 class CActiveSchedulerWait; |
33 class CActiveSchedulerWait; |
34 class QEventLoop; |
34 class QEventLoop; |
35 |
35 |
67 public: |
67 public: |
68 void testRemoveItem(int pos); |
68 void testRemoveItem(int pos); |
69 void testInsertItem(int pos, QList< QPair< QVariant, int > >* data); |
69 void testInsertItem(int pos, QList< QPair< QVariant, int > >* data); |
70 |
70 |
71 private: |
71 private: |
72 QVariant mDefaultIcon; |
72 QMap<HgDataProviderIconMode, QVariant> mDefaultIcon; |
|
73 QMap<HgDataProviderIconMode, QVariant> mNoIcon; |
|
74 |
73 CActiveSchedulerWait* mScheduler; |
75 CActiveSchedulerWait* mScheduler; |
74 ThumbnailManager* mWrapper; |
76 ThumbnailManager* mWrapper; |
75 QList<int> mWaitingThumbnails; |
77 QList<int> mWaitingThumbnails; |
76 bool mThumbnailRequestPending; |
78 bool mThumbnailRequestPending; |
77 int mThumbnailRequestIndex; |
79 int mThumbnailRequestIndex; |
78 int mThumbnailRequestID; |
80 int mThumbnailRequestID; |
79 ThumbnailManager::ThumbnailSize mThumbnailsize; |
81 ThumbnailManager::ThumbnailSize mThumbnailsize; |
80 bool mMDSLoadInProgress; |
82 bool mMDSLoadInProgress; |
81 int mMode; |
83 int mMode; |
82 HbIcon mNoIcon; |
|
83 }; |
84 }; |
84 |
85 |
85 #endif // MYDATAPROVIDER2_H |
86 #endif // MYDATAPROVIDER2_H |
86 |
87 |