summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetetask.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/kopetetask.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;