diff options
Diffstat (limited to 'kftpgrabber/src/kftptransferfile.cpp')
-rw-r--r-- | kftpgrabber/src/kftptransferfile.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kftpgrabber/src/kftptransferfile.cpp b/kftpgrabber/src/kftptransferfile.cpp index 9f49ae5..bbc2b5d 100644 --- a/kftpgrabber/src/kftptransferfile.cpp +++ b/kftpgrabber/src/kftptransferfile.cpp @@ -42,20 +42,20 @@ #include "misc/config.h" -#include <kmessagebox.h> -#include <klocale.h> -#include <kio/renamedlg.h> +#include <tdemessagebox.h> +#include <tdelocale.h> +#include <tdeio/renamedlg.h> #include <kdiskfreesp.h> -#include <qtimer.h> -#include <qfileinfo.h> +#include <ntqtimer.h> +#include <ntqfileinfo.h> using namespace KFTPEngine; using namespace KFTPSession; namespace KFTPQueue { -TransferFile::TransferFile(QObject *parent) +TransferFile::TransferFile(TQObject *parent) : Transfer(parent, Transfer::File), m_updateTimer(0), m_dfTimer(0) @@ -107,14 +107,14 @@ void TransferFile::execute() // Init timer to follow the update if (!m_updateTimer) { - m_updateTimer = new QTimer(this); + m_updateTimer = new TQTimer(this); connect(m_updateTimer, SIGNAL(timeout()), this, SLOT(slotTimerUpdate())); m_updateTimer->start(1000); } // Should we check for free space ? if (KFTPCore::Config::diskCheckSpace() && !m_dfTimer) { - m_dfTimer = new QTimer(this); + m_dfTimer = new TQTimer(this); connect(m_dfTimer, SIGNAL(timeout()), this, SLOT(slotTimerDiskFree())); m_dfTimer->start(KFTPCore::Config::diskCheckInterval() * 1000); } @@ -184,7 +184,7 @@ void TransferFile::slotEngineEvent(KFTPEngine::Event *event) addCompleted(m_size - m_completed); m_updateTimer->stop(); - m_updateTimer->QObject::disconnect(); + m_updateTimer->TQObject::disconnect(); if (m_openAfterTransfer && m_transferType == Download) { // Set status to stopped, so the view gets reloaded @@ -274,7 +274,7 @@ void TransferFile::slotTimerUpdate() // Update the current stats if (!m_srcSession && !m_dstSession) { m_updateTimer->stop(); - m_updateTimer->QObject::disconnect(); + m_updateTimer->TQObject::disconnect(); return; } @@ -305,16 +305,16 @@ void TransferFile::slotTimerDiskFree() // Check for disk usage if (KFTPCore::Config::diskCheckSpace()) { KDiskFreeSp *df = KDiskFreeSp::findUsageInfo((getDestUrl().path())); - connect(df, SIGNAL(foundMountPoint(const QString&, unsigned long, unsigned long, unsigned long)), this, SLOT(slotDiskFree(const QString&, unsigned long, unsigned long, unsigned long))); + connect(df, SIGNAL(foundMountPoint(const TQString&, unsigned long, unsigned long, unsigned long)), this, SLOT(slotDiskFree(const TQString&, unsigned long, unsigned long, unsigned long))); } } -void TransferFile::slotDiskFree(const QString &mountPoint, unsigned long, unsigned long, unsigned long kBAvail) +void TransferFile::slotDiskFree(const TQString &mountPoint, unsigned long, unsigned long, unsigned long kBAvail) { if (KFTPCore::Config::diskCheckSpace()) { // Is there enough free space ? if (kBAvail < (unsigned long) KFTPCore::Config::diskMinFreeSpace()) { - QString transAbortStr = i18n("Transfer of the following files <b>has been aborted</b> because there is not enough free space left on '%1':").arg(mountPoint); + TQString transAbortStr = i18n("Transfer of the following files <b>has been aborted</b> because there is not enough free space left on '%1':").arg(mountPoint); transAbortStr += "<br><i>"; transAbortStr += getSourceUrl().fileName(); transAbortStr += "</i>"; @@ -334,17 +334,17 @@ void TransferFile::resetTransfer() if (getStatus() != Waiting) { // Disconnect signals if (m_srcConnection) { - m_srcConnection->getClient()->eventHandler()->QObject::disconnect(this, SLOT(slotEngineEvent(KFTPEngine::Event*))); - m_srcConnection->QObject::disconnect(this, SLOT(slotSessionAborting())); - m_srcConnection->QObject::disconnect(this, SLOT(slotConnectionLost(KFTPSession::Connection*))); + m_srcConnection->getClient()->eventHandler()->TQObject::disconnect(this, SLOT(slotEngineEvent(KFTPEngine::Event*))); + m_srcConnection->TQObject::disconnect(this, SLOT(slotSessionAborting())); + m_srcConnection->TQObject::disconnect(this, SLOT(slotConnectionLost(KFTPSession::Connection*))); m_srcConnection->remove(); } if (m_dstConnection) { - m_dstConnection->getClient()->eventHandler()->QObject::disconnect(this, SLOT(slotEngineEvent(KFTPEngine::Event*))); - m_dstConnection->QObject::disconnect(this, SLOT(slotSessionAborting())); - m_dstConnection->QObject::disconnect(this, SLOT(slotConnectionLost(KFTPSession::Connection*))); + m_dstConnection->getClient()->eventHandler()->TQObject::disconnect(this, SLOT(slotEngineEvent(KFTPEngine::Event*))); + m_dstConnection->TQObject::disconnect(this, SLOT(slotSessionAborting())); + m_dstConnection->TQObject::disconnect(this, SLOT(slotConnectionLost(KFTPSession::Connection*))); m_dstConnection->remove(); } @@ -368,15 +368,15 @@ void TransferFile::abort() if (getStatus() == Waiting) { if (m_srcSession) - m_srcSession->QObject::disconnect(this, SLOT(slotConnectionAvailable())); + m_srcSession->TQObject::disconnect(this, SLOT(slotConnectionAvailable())); if (m_dstSession) - m_dstSession->QObject::disconnect(this, SLOT(slotConnectionAvailable())); + m_dstSession->TQObject::disconnect(this, SLOT(slotConnectionAvailable())); } if (m_updateTimer) { m_updateTimer->stop(); - m_updateTimer->QObject::disconnect(); + m_updateTimer->TQObject::disconnect(); delete m_updateTimer; m_updateTimer = 0L; @@ -384,7 +384,7 @@ void TransferFile::abort() if (m_dfTimer) { m_dfTimer->stop(); - m_dfTimer->QObject::disconnect(); + m_dfTimer->TQObject::disconnect(); delete m_dfTimer; m_dfTimer = 0L; |