From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdepim/weaver.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'libkdepim/weaver.h') diff --git a/libkdepim/weaver.h b/libkdepim/weaver.h index 00c624d84..929714dfb 100644 --- a/libkdepim/weaver.h +++ b/libkdepim/weaver.h @@ -23,12 +23,12 @@ extern "C" #include } -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include @@ -70,8 +70,8 @@ namespace ThreadWeaver { { if ( Debug == true && ( severity<=DebugLevel || severity == 0) ) { - static QMutex mutex; - QString text; + static TQMutex mutex; + TQString text; mutex.lock(); va_list ap; @@ -166,7 +166,7 @@ namespace ThreadWeaver { Q_OBJECT public: /** Construct a Job object. */ - Job(QObject* parent=0, const char* name=0); + Job(TQObject* parent=0, const char* name=0); /** Destructor. */ virtual ~Job(); @@ -235,11 +235,11 @@ namespace ThreadWeaver { bool m_finished; - QMutex *m_mutex; + TQMutex *m_mutex; Thread * m_thread; - QWaitCondition *m_wc; + TQWaitCondition *m_wc; }; class Weaver; @@ -268,7 +268,7 @@ namespace ThreadWeaver { */ void run(); - /* Provide the msleep() method (protected in QThread) to be + /* Provide the msleep() method (protected in TQThread) to be available for executed jobs. */ void msleep(unsigned long msec); @@ -297,7 +297,7 @@ namespace ThreadWeaver { { Q_OBJECT public: - Weaver (QObject* parent=0, const char* name=0, + Weaver (TQObject* parent=0, const char* name=0, int inventoryMin = 4, // minimal number of provided threads int inventoryMax = 32); // maximum number of provided threads virtual ~Weaver (); @@ -311,7 +311,7 @@ namespace ThreadWeaver { them. Otherwise, when enqueueing your jobs individually, there is a chance that you receive more than one finished signal. */ - void enqueue (QPtrList jobs); + void enqueue (TQPtrList jobs); /** Remove a job from the queue. If the job qas queued but not started so far, it is simple removed from the queue. For now, it is unsupported to @@ -410,11 +410,11 @@ namespace ThreadWeaver { void assignJobs(); /** Check incoming events for user defined ones. The threads use user defined events to communicate with the Weaver. */ - bool event ( QEvent* ); + bool event ( TQEvent* ); /** The thread inventory. */ - QPtrList m_inventory; + TQPtrList m_inventory; /** The job queue. */ - QPtrList m_assignments; + TQPtrList m_assignments; /** The number of jobs that are assigned to the worker threads, but not finished. */ int m_active; @@ -423,9 +423,9 @@ namespace ThreadWeaver { /** Stored setting . */ int m_inventoryMax; /** Wait condition all idle or done threads wait for. */ - QWaitCondition m_jobAvailable; + TQWaitCondition m_jobAvailable; /** Wait for a job to finish. */ - QWaitCondition m_jobFinished; + TQWaitCondition m_jobFinished; /** Indicates if the weaver is shutting down and exiting it's threads. */ bool m_shuttingDown; @@ -441,7 +441,7 @@ namespace ThreadWeaver { bool m_suspend; private: /** Mutex to serialize operations. */ - QMutex *m_mutex; + TQMutex *m_mutex; }; } // namespace ThreadWeaver } // namespace KPIM -- cgit v1.2.1