diff -r b46a585f6909 -r efe85016a067 phonebookengines/cntlistmodel/inc/cntcache_p.h --- a/phonebookengines/cntlistmodel/inc/cntcache_p.h Fri Jun 11 13:29:23 2010 +0300 +++ b/phonebookengines/cntlistmodel/inc/cntcache_p.h Wed Jun 23 18:02:44 2010 +0300 @@ -26,10 +26,6 @@ #include #include "cntinfoprovider.h" -#define DP( s ); -#define DP_IN( s ); -#define DP_OUT( s ); - class ThumbnailManager; QTM_USE_NAMESPACE @@ -94,6 +90,7 @@ */ class CntCacheThread : public QThread { + friend class TestCntCache; Q_OBJECT public: CntCacheThread(); @@ -126,6 +123,7 @@ QMap mDataProviders; QMutex mJobMutex; // guards access to the job lists + bool mStarted; // true when thread has been started bool mJobLoopRunning; // true from when job loop event has been posted until job loop exits int mPostponeJobs; // set to true by client if it needs the CPU QList mInfoJobs; // list of all info jobs