summaryrefslogtreecommitdiffstats
path: root/libkdepim/weaver.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/weaver.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/weaver.h')
-rw-r--r--libkdepim/weaver.h40
1 files changed, 20 insertions, 20 deletions
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 <stdio.h>
}
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qthread.h>
-#include <qwaitcondition.h>
-#include <qmutex.h>
-#include <qevent.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqthread.h>
+#include <tqwaitcondition.h>
+#include <tqmutex.h>
+#include <tqevent.h>
#include <kdepimmacros.h>
@@ -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<Job> jobs);
+ void enqueue (TQPtrList<Job> 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<Thread> m_inventory;
+ TQPtrList<Thread> m_inventory;
/** The job queue. */
- QPtrList<Job> m_assignments;
+ TQPtrList<Job> 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