summaryrefslogtreecommitdiffstats
path: root/libkdepim/weaver.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkdepim/weaver.h
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/weaver.h')
-rw-r--r--libkdepim/weaver.h24
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 ();