summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/kftptransferfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kftpgrabber/src/kftptransferfile.cpp')
-rw-r--r--kftpgrabber/src/kftptransferfile.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kftpgrabber/src/kftptransferfile.cpp b/kftpgrabber/src/kftptransferfile.cpp
index bbc2b5d..4c73bcd 100644
--- a/kftpgrabber/src/kftptransferfile.cpp
+++ b/kftpgrabber/src/kftptransferfile.cpp
@@ -40,15 +40,15 @@
#include "engine/thread.h"
-#include "misc/config.h"
+#include "misc/kftpconfig.h"
#include <tdemessagebox.h>
#include <tdelocale.h>
#include <tdeio/renamedlg.h>
#include <kdiskfreesp.h>
-#include <ntqtimer.h>
-#include <ntqfileinfo.h>
+#include <tqtimer.h>
+#include <tqfileinfo.h>
using namespace KFTPEngine;
using namespace KFTPSession;
@@ -69,15 +69,15 @@ bool TransferFile::assignSessions(Session *source, Session *destination)
// Connect signals
if (m_srcConnection) {
- connect(m_srcConnection->getClient()->eventHandler(), SIGNAL(engineEvent(KFTPEngine::Event*)), this, SLOT(slotEngineEvent(KFTPEngine::Event*)));
- connect(m_srcConnection, SIGNAL(aborting()), this, SLOT(slotSessionAborting()));
- connect(m_srcConnection, SIGNAL(connectionLost(KFTPSession::Connection*)), this, SLOT(slotConnectionLost(KFTPSession::Connection*)));
+ connect(m_srcConnection->getClient()->eventHandler(), TQ_SIGNAL(engineEvent(KFTPEngine::Event*)), this, TQ_SLOT(slotEngineEvent(KFTPEngine::Event*)));
+ connect(m_srcConnection, TQ_SIGNAL(aborting()), this, TQ_SLOT(slotSessionAborting()));
+ connect(m_srcConnection, TQ_SIGNAL(connectionLost(KFTPSession::Connection*)), this, TQ_SLOT(slotConnectionLost(KFTPSession::Connection*)));
}
if (m_dstConnection) {
- connect(m_dstConnection->getClient()->eventHandler(), SIGNAL(engineEvent(KFTPEngine::Event*)), this, SLOT(slotEngineEvent(KFTPEngine::Event*)));
- connect(m_dstConnection, SIGNAL(aborting()), this, SLOT(slotSessionAborting()));
- connect(m_dstConnection, SIGNAL(connectionLost(KFTPSession::Connection*)), this, SLOT(slotConnectionLost(KFTPSession::Connection*)));
+ connect(m_dstConnection->getClient()->eventHandler(), TQ_SIGNAL(engineEvent(KFTPEngine::Event*)), this, TQ_SLOT(slotEngineEvent(KFTPEngine::Event*)));
+ connect(m_dstConnection, TQ_SIGNAL(aborting()), this, TQ_SLOT(slotSessionAborting()));
+ connect(m_dstConnection, TQ_SIGNAL(connectionLost(KFTPSession::Connection*)), this, TQ_SLOT(slotConnectionLost(KFTPSession::Connection*)));
}
return true;
@@ -108,14 +108,14 @@ void TransferFile::execute()
// Init timer to follow the update
if (!m_updateTimer) {
m_updateTimer = new TQTimer(this);
- connect(m_updateTimer, SIGNAL(timeout()), this, SLOT(slotTimerUpdate()));
+ connect(m_updateTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimerUpdate()));
m_updateTimer->start(1000);
}
// Should we check for free space ?
if (KFTPCore::Config::diskCheckSpace() && !m_dfTimer) {
m_dfTimer = new TQTimer(this);
- connect(m_dfTimer, SIGNAL(timeout()), this, SLOT(slotTimerDiskFree()));
+ connect(m_dfTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimerDiskFree()));
m_dfTimer->start(KFTPCore::Config::diskCheckInterval() * 1000);
}
@@ -305,7 +305,7 @@ void TransferFile::slotTimerDiskFree()
// Check for disk usage
if (KFTPCore::Config::diskCheckSpace()) {
KDiskFreeSp *df = KDiskFreeSp::findUsageInfo((getDestUrl().path()));
- connect(df, SIGNAL(foundMountPoint(const TQString&, unsigned long, unsigned long, unsigned long)), this, SLOT(slotDiskFree(const TQString&, unsigned long, unsigned long, unsigned long)));
+ connect(df, TQ_SIGNAL(foundMountPoint(const TQString&, unsigned long, unsigned long, unsigned long)), this, TQ_SLOT(slotDiskFree(const TQString&, unsigned long, unsigned long, unsigned long)));
}
}
@@ -334,17 +334,17 @@ void TransferFile::resetTransfer()
if (getStatus() != Waiting) {
// Disconnect signals
if (m_srcConnection) {
- 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->getClient()->eventHandler()->TQObject::disconnect(this, TQ_SLOT(slotEngineEvent(KFTPEngine::Event*)));
+ m_srcConnection->TQObject::disconnect(this, TQ_SLOT(slotSessionAborting()));
+ m_srcConnection->TQObject::disconnect(this, TQ_SLOT(slotConnectionLost(KFTPSession::Connection*)));
m_srcConnection->remove();
}
if (m_dstConnection) {
- 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->getClient()->eventHandler()->TQObject::disconnect(this, TQ_SLOT(slotEngineEvent(KFTPEngine::Event*)));
+ m_dstConnection->TQObject::disconnect(this, TQ_SLOT(slotSessionAborting()));
+ m_dstConnection->TQObject::disconnect(this, TQ_SLOT(slotConnectionLost(KFTPSession::Connection*)));
m_dstConnection->remove();
}
@@ -368,10 +368,10 @@ void TransferFile::abort()
if (getStatus() == Waiting) {
if (m_srcSession)
- m_srcSession->TQObject::disconnect(this, SLOT(slotConnectionAvailable()));
+ m_srcSession->TQObject::disconnect(this, TQ_SLOT(slotConnectionAvailable()));
if (m_dstSession)
- m_dstSession->TQObject::disconnect(this, SLOT(slotConnectionAvailable()));
+ m_dstSession->TQObject::disconnect(this, TQ_SLOT(slotConnectionAvailable()));
}
if (m_updateTimer) {