diff options
Diffstat (limited to 'libkdepim/weaver.h')
-rw-r--r-- | libkdepim/weaver.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/libkdepim/weaver.h b/libkdepim/weaver.h index 929714dfb..43d4368d0 100644 --- a/libkdepim/weaver.h +++ b/libkdepim/weaver.h @@ -8,7 +8,7 @@ http://www.kde.org http://www.hackerbuero.org $ $ License: LGPL with the following explicit clarification: - This code may be linked against any version of the Qt toolkit + This code may be linked against any version of the TQt toolkit from Troll Tech, Norway. $ */ @@ -97,7 +97,7 @@ namespace ThreadWeaver { Note: Do not create and use SPR/APR events, use Job::triggerSPR or Job::triggerAPR to create the requests. */ - class KDE_EXPORT Event : public QCustomEvent + class KDE_EXPORT Event : public TQCustomEvent { public: enum Action { @@ -161,12 +161,13 @@ namespace ThreadWeaver { Note: When using an APR, you better make sure to receive the signal with some object, otherwise the calling thread will block forever! */ - class KDE_EXPORT Job : public QObject + class KDE_EXPORT Job : public TQObject { Q_OBJECT + TQ_OBJECT public: /** Construct a Job object. */ - Job(TQObject* parent=0, const char* name=0); + Job(TQObject* tqparent=0, const char* name=0); /** Destructor. */ virtual ~Job(); @@ -246,13 +247,13 @@ namespace ThreadWeaver { /** The class Thread is used to represent the worker threads in the weaver's inventory. It is not meant to be overloaded. */ - class KDE_EXPORT Thread : public QThread + class KDE_EXPORT Thread : public TQThread { public: /** Create a thread. - These thread objects are only used inside the Weaver parent + These thread objects are only used inside the Weaver tqparent object. */ - Thread(Weaver *parent); + Thread(Weaver *tqparent); /** The destructor. */ ~Thread(); @@ -260,7 +261,7 @@ namespace ThreadWeaver { /** Overloaded to execute the assigned job. This will NOT return until shutdown() is called. The thread will try to execute one job after the other, asking - the Weaver parent for a new job when the assigned one is + the Weaver tqparent for a new job when the assigned one is finished. If no jobs are available, the thread will suspend. After shutdown() is called, the thread will end as soon as @@ -282,7 +283,7 @@ namespace ThreadWeaver { void post (Event::Action, Job* = 0); private: - Weaver *m_parent; + Weaver *m_tqparent; const unsigned int m_id; @@ -293,11 +294,12 @@ namespace ThreadWeaver { /** A weaver is the manager of worker threads (Thread objects) to which it assigns jobs from it's queue. */ - class KDE_EXPORT Weaver : public QObject + class KDE_EXPORT Weaver : public TQObject { Q_OBJECT + TQ_OBJECT public: - Weaver (TQObject* parent=0, const char* name=0, + Weaver (TQObject* tqparent=0, const char* name=0, int inventoryMin = 4, // minimal number of provided threads int inventoryMax = 32); // maximum number of provided threads virtual ~Weaver (); |