equal
deleted
inserted
replaced
23 #include <QMutex> |
23 #include <QMutex> |
24 #include <QSet> |
24 #include <QSet> |
25 #include <HbIcon> |
25 #include <HbIcon> |
26 #include <qcontactmanager.h> |
26 #include <qcontactmanager.h> |
27 #include "cntinfoprovider.h" |
27 #include "cntinfoprovider.h" |
28 |
|
29 #define DP( s ); |
|
30 #define DP_IN( s ); |
|
31 #define DP_OUT( s ); |
|
32 |
28 |
33 class ThumbnailManager; |
29 class ThumbnailManager; |
34 |
30 |
35 QTM_USE_NAMESPACE |
31 QTM_USE_NAMESPACE |
36 |
32 |
92 will be informed back to the client later so that it can choose to reschedule |
88 will be informed back to the client later so that it can choose to reschedule |
93 the jobs. |
89 the jobs. |
94 */ |
90 */ |
95 class CntCacheThread : public QThread |
91 class CntCacheThread : public QThread |
96 { |
92 { |
|
93 friend class TestCntCache; |
97 Q_OBJECT |
94 Q_OBJECT |
98 public: |
95 public: |
99 CntCacheThread(); |
96 CntCacheThread(); |
100 ~CntCacheThread(); |
97 ~CntCacheThread(); |
101 |
98 |
124 |
121 |
125 // maps info providers to their responsibilities |
122 // maps info providers to their responsibilities |
126 QMap<CntInfoProvider*, ContactInfoFields> mDataProviders; |
123 QMap<CntInfoProvider*, ContactInfoFields> mDataProviders; |
127 |
124 |
128 QMutex mJobMutex; // guards access to the job lists |
125 QMutex mJobMutex; // guards access to the job lists |
|
126 bool mStarted; // true when thread has been started |
129 bool mJobLoopRunning; // true from when job loop event has been posted until job loop exits |
127 bool mJobLoopRunning; // true from when job loop event has been posted until job loop exits |
130 int mPostponeJobs; // set to true by client if it needs the CPU |
128 int mPostponeJobs; // set to true by client if it needs the CPU |
131 QList<int> mInfoJobs; // list of all info jobs |
129 QList<int> mInfoJobs; // list of all info jobs |
132 QList<int> mCancelledInfoJobs; // list of all cancelled info jobs |
130 QList<int> mCancelledInfoJobs; // list of all cancelled info jobs |
133 QList<QString> mIconJobs; // list of all icon jobs |
131 QList<QString> mIconJobs; // list of all icon jobs |