diff options
Diffstat (limited to 'kget/slave.cpp')
-rw-r--r-- | kget/slave.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kget/slave.cpp b/kget/slave.cpp index 944a7f37..f8569e79 100644 --- a/kget/slave.cpp +++ b/kget/slave.cpp @@ -36,8 +36,8 @@ #include <assert.h> Slave::Slave(Transfer * _parent, const KURL & _src, const KURL & _dest) - : QObject(), - QThread() + : TQObject(), + TQThread() { mDebug << ">>>>Entering" << endl; copyjob = NULL; @@ -74,22 +74,22 @@ void Slave::PostMessage(SlaveResult _event, Q_ULLONG _data) { SlaveEvent *e1 = new SlaveEvent(m_parent, _event, _data); - QApplication::postEvent(kapp->mainWidget(), (QEvent *) e1); + TQApplication::postEvent(kapp->mainWidget(), (TQEvent *) e1); } -void Slave::PostMessage(SlaveResult _event, const QString & _msg) +void Slave::PostMessage(SlaveResult _event, const TQString & _msg) { SlaveEvent *e1 = new SlaveEvent(m_parent, _event, _msg); - QApplication::postEvent(kapp->mainWidget(), (QEvent *) e1); + TQApplication::postEvent(kapp->mainWidget(), (TQEvent *) e1); mDebug << "Msg:" << "_msg = " << _msg << endl; } -void Slave::InfoMessage(const QString & _msg) +void Slave::InfoMessage(const TQString & _msg) { SlaveEvent *e1 = new SlaveEvent(m_parent, SLV_INFO, _msg); - QApplication::postEvent(kapp->mainWidget(), (QEvent *) e1); + TQApplication::postEvent(kapp->mainWidget(), (TQEvent *) e1); mDebug << "Infor Msg:" << "_msg = " << _msg << endl; } @@ -218,17 +218,17 @@ void Slave::Connect() mDebugIn << endl; - connect(copyjob, SIGNAL(canceled(KIO::Job *)), SLOT(slotCanceled(KIO::Job *))); - connect(copyjob, SIGNAL(connected(KIO::Job *)), SLOT(slotConnected(KIO::Job *))); - connect(copyjob, SIGNAL(result(KIO::Job *)), SLOT(slotResult(KIO::Job *))); + connect(copyjob, TQT_SIGNAL(canceled(KIO::Job *)), TQT_SLOT(slotCanceled(KIO::Job *))); + connect(copyjob, TQT_SIGNAL(connected(KIO::Job *)), TQT_SLOT(slotConnected(KIO::Job *))); + connect(copyjob, TQT_SIGNAL(result(KIO::Job *)), TQT_SLOT(slotResult(KIO::Job *))); - connect(copyjob, SIGNAL(totalSize(KIO::Job *, KIO::filesize_t)), SLOT(slotTotalSize(KIO::Job *, KIO::filesize_t))); + connect(copyjob, TQT_SIGNAL(totalSize(KIO::Job *, KIO::filesize_t)), TQT_SLOT(slotTotalSize(KIO::Job *, KIO::filesize_t))); - connect(copyjob, SIGNAL(processedSize(KIO::Job *, KIO::filesize_t)), SLOT(slotProcessedSize(KIO::Job *, KIO::filesize_t))); + connect(copyjob, TQT_SIGNAL(processedSize(KIO::Job *, KIO::filesize_t)), TQT_SLOT(slotProcessedSize(KIO::Job *, KIO::filesize_t))); - connect(copyjob, SIGNAL(speed(KIO::Job *, unsigned long)), SLOT(slotSpeed(KIO::Job *, unsigned long))); + connect(copyjob, TQT_SIGNAL(speed(KIO::Job *, unsigned long)), TQT_SLOT(slotSpeed(KIO::Job *, unsigned long))); - connect(copyjob, SIGNAL(infoMessage(KIO::Job *, const QString &)), SLOT(slotInfoMessage(KIO::Job *, const QString &))); + connect(copyjob, TQT_SIGNAL(infoMessage(KIO::Job *, const TQString &)), TQT_SLOT(slotInfoMessage(KIO::Job *, const TQString &))); mDebugOut << endl; } @@ -266,7 +266,7 @@ void Slave::slotResult(KIO::Job * job) PostMessage(SLV_NOTINCACHE); return; } - QString tmsg="<font color=\"red\"> <b>" + job->errorString() + \ + TQString tmsg="<font color=\"red\"> <b>" + job->errorString() + \ "</b></font>"; InfoMessage(tmsg); if (m_parent->retryOnError() && \ @@ -321,7 +321,7 @@ void Slave::slotProcessedSize(KIO::Job *, KIO::filesize_t _processed_size) // mDebugOut<<endl; } -void Slave::slotInfoMessage(KIO::Job *, const QString & _msg) +void Slave::slotInfoMessage(KIO::Job *, const TQString & _msg) { mDebugIn << "MSG=" << _msg << endl; InfoMessage(_msg); |