summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetetask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopetetask.cpp')
-rw-r--r--kopete/libkopete/kopetetask.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/libkopete/kopetetask.cpp b/kopete/libkopete/kopetetask.cpp
index b7484116..fad469c8 100644
--- a/kopete/libkopete/kopetetask.cpp
+++ b/kopete/libkopete/kopetetask.cpp
@@ -18,7 +18,7 @@
#include <klocale.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
namespace Kopete
{
@@ -33,8 +33,8 @@ public:
}
Task::Result result;
- QString errorMessage;
- QPtrList<Task> subtasks;
+ TQString errorMessage;
+ TQPtrList<Task> subtasks;
};
Task::Task()
@@ -52,7 +52,7 @@ bool Task::succeeded() const
return d->result == ResultSucceeded;
}
-const QString &Task::errorString() const
+const TQString &Task::errorString() const
{
return d->errorMessage;
}
@@ -72,24 +72,24 @@ void Task::abort( int flags )
void Task::addSubtask( Task *task )
{
d->subtasks.append( task );
- connect( task, SIGNAL( result( Kopete::Task* ) ),
- this, SLOT( slotResult( Kopete::Task* ) ) );
- connect( task, SIGNAL( statusMessage( Kopete::Task*, const QString & ) ),
- this, SIGNAL( statusMessage( Kopete::Task*, const QString & ) ) );
+ connect( task, TQT_SIGNAL( result( Kopete::Task* ) ),
+ this, TQT_SLOT( slotResult( Kopete::Task* ) ) );
+ connect( task, TQT_SIGNAL( statusMessage( Kopete::Task*, const TQString & ) ),
+ this, TQT_SIGNAL( statusMessage( Kopete::Task*, const TQString & ) ) );
}
void Task::removeSubtask( Task *task, RemoveSubtaskIfLast actionIfLast )
{
- disconnect( task, SIGNAL( result( Kopete::Task* ) ),
- this, SLOT( slotResult( Kopete::Task* ) ) );
- disconnect( task, SIGNAL( statusMessage( Kopete::Task*, const QString & ) ),
- this, SIGNAL( statusMessage( Kopete::Task*, const QString & ) ) );
+ disconnect( task, TQT_SIGNAL( result( Kopete::Task* ) ),
+ this, TQT_SLOT( slotResult( Kopete::Task* ) ) );
+ disconnect( task, TQT_SIGNAL( statusMessage( Kopete::Task*, const TQString & ) ),
+ this, TQT_SIGNAL( statusMessage( Kopete::Task*, const TQString & ) ) );
d->subtasks.remove( task );
if ( d->subtasks.isEmpty() && actionIfLast == IfLastEmitResult )
emitResult( task->succeeded() ? ResultSucceeded : ResultFailed, task->errorString() );
}
-void Task::emitResult( Result res, const QString &errorMessage )
+void Task::emitResult( Result res, const TQString &errorMessage )
{
d->result = res;
d->errorMessage = errorMessage;