diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 15:27:17 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 15:27:17 -0500 |
commit | 883a1fc629f00e9a41efad8514afd1ccf259d8c2 (patch) | |
tree | 53191c33748f9cd949a2eb86a64fbedc86c5ac75 /kftpgrabber/src/kftpsession.cpp | |
parent | 1385303ea163214e30825730ac0fbcc27f9634aa (diff) | |
download | kftpgrabber-883a1fc629f00e9a41efad8514afd1ccf259d8c2.tar.gz kftpgrabber-883a1fc629f00e9a41efad8514afd1ccf259d8c2.zip |
Convert to TDE R14 API
Diffstat (limited to 'kftpgrabber/src/kftpsession.cpp')
-rw-r--r-- | kftpgrabber/src/kftpsession.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kftpgrabber/src/kftpsession.cpp b/kftpgrabber/src/kftpsession.cpp index 126eb3e..4a7c433 100644 --- a/kftpgrabber/src/kftpsession.cpp +++ b/kftpgrabber/src/kftpsession.cpp @@ -46,11 +46,11 @@ #include "misc/config.h" #include "misc/filter.h" -#include <qdir.h> -#include <qobjectlist.h> +#include <ntqdir.h> +#include <ntqobjectlist.h> -#include <kmessagebox.h> -#include <klocale.h> +#include <tdemessagebox.h> +#include <tdelocale.h> #include <kdebug.h> #include <kpassdlg.h> #include <kstaticdeleter.h> @@ -66,7 +66,7 @@ namespace KFTPSession { ////////////////////////////////////////////////////////////////// Connection::Connection(Session *session, bool primary) - : QObject(session), + : TQObject(session), m_primary(primary), m_busy(false), m_aborting(false), @@ -115,7 +115,7 @@ void Connection::remove() { // Disconnect all signals from the transfer if (m_curTransfer) - m_curTransfer->QObject::disconnect(this); + m_curTransfer->TQObject::disconnect(this); m_curTransfer = 0L; m_busy = false; @@ -276,7 +276,7 @@ void Connection::reconnect() //////////////////////////////////////////////////////// Session::Session(Side side) - : QObject(), + : TQObject(), m_side(side), m_remote(false), m_aborting(false), @@ -317,7 +317,7 @@ void Session::slotClientEngineEvent(KFTPEngine::Event *event) m_aborting = false; m_lastUrl = getClient()->socket()->getCurrentUrl(); - QString siteName; + TQString siteName; if (m_site) siteName = m_site->getAttribute("name"); else @@ -341,7 +341,7 @@ void Session::slotClientEngineEvent(KFTPEngine::Event *event) Session *opposite = Manager::self()->getActive(oppositeSide(m_side)); if (m_site && !opposite->isRemote()) { - QString localPath = m_site->getProperty("deflocalpath"); + TQString localPath = m_site->getProperty("deflocalpath"); if (!localPath.isEmpty()) opposite->getFileView()->openUrl(KURL(localPath)); @@ -384,7 +384,7 @@ void Session::slotClientEngineEvent(KFTPEngine::Event *event) } case Event::EventPubkeyPassword: { // A public-key authentication password was requested - QCString pass; + TQCString pass; int ret = KPasswordDialog::getPassword(pass, i18n("Please provide your private key decryption password.")); if (ret == KPasswordDialog::Accepted) { @@ -567,8 +567,8 @@ Manager *Manager::self() return m_self; } -Manager::Manager(QObject *parent, QTabWidget *stat, KFTPTabWidget *left, KFTPTabWidget *right) - : QObject(parent), +Manager::Manager(TQObject *parent, TQTabWidget *stat, KFTPTabWidget *left, KFTPTabWidget *right) + : TQObject(parent), m_statTabs(stat), m_leftTabs(left), m_rightTabs(right), @@ -579,11 +579,11 @@ Manager::Manager(QObject *parent, QTabWidget *stat, KFTPTabWidget *left, KFTPTab Manager::m_self = this; // Connect some signals - connect(left, SIGNAL(currentChanged(QWidget*)), this, SLOT(slotActiveChanged(QWidget*))); - connect(right, SIGNAL(currentChanged(QWidget*)), this, SLOT(slotActiveChanged(QWidget*))); + connect(left, SIGNAL(currentChanged(TQWidget*)), this, SLOT(slotActiveChanged(TQWidget*))); + connect(right, SIGNAL(currentChanged(TQWidget*)), this, SLOT(slotActiveChanged(TQWidget*))); - connect(left, SIGNAL(closeRequest(QWidget*)), this, SLOT(slotSessionCloseRequest(QWidget*))); - connect(right, SIGNAL(closeRequest(QWidget*)), this, SLOT(slotSessionCloseRequest(QWidget*))); + connect(left, SIGNAL(closeRequest(TQWidget*)), this, SLOT(slotSessionCloseRequest(TQWidget*))); + connect(right, SIGNAL(closeRequest(TQWidget*)), this, SLOT(slotSessionCloseRequest(TQWidget*))); } void Manager::registerSession(Session *session) @@ -601,8 +601,8 @@ void Manager::registerSession(Session *session) session->getFileView()->m_toolBarFirst->installEventFilter(this); session->getFileView()->m_toolBarSecond->installEventFilter(this); - connect(session->getFileView()->getDetailsView(), SIGNAL(clicked(QListViewItem*)), this, SLOT(slotSwitchFocus())); - connect(session->getFileView()->getTreeView(), SIGNAL(clicked(QListViewItem*)), this, SLOT(slotSwitchFocus())); + connect(session->getFileView()->getDetailsView(), SIGNAL(clicked(TQListViewItem*)), this, SLOT(slotSwitchFocus())); + connect(session->getFileView()->getTreeView(), SIGNAL(clicked(TQListViewItem*)), this, SLOT(slotSwitchFocus())); connect(session->getFileView()->m_toolBarFirst, SIGNAL(clicked(int)), this, SLOT(slotSwitchFocus())); connect(session->getFileView()->m_toolBarSecond, SIGNAL(clicked(int)), this, SLOT(slotSwitchFocus())); @@ -631,9 +631,9 @@ Session *Manager::getActiveSession() return m_active; } -bool Manager::eventFilter(QObject *object, QEvent *event) +bool Manager::eventFilter(TQObject *object, TQEvent *event) { - if (event->type() == QEvent::FocusIn || event->type() == QEvent::MouseButtonPress) { + if (event->type() == TQEvent::FocusIn || event->type() == TQEvent::MouseButtonPress) { switchFocusToObject(object); } @@ -642,10 +642,10 @@ bool Manager::eventFilter(QObject *object, QEvent *event) void Manager::slotSwitchFocus() { - switchFocusToObject(QObject::sender()); + switchFocusToObject(TQObject::sender()); } -void Manager::switchFocusToObject(const QObject *object) +void Manager::switchFocusToObject(const TQObject *object) { if (!object) return; @@ -857,7 +857,7 @@ void Manager::setActive(Session *session) switch (session->m_side) { case LeftSide: m_leftActive = session; break; case RightSide: m_rightActive = session; break; - case IgnoreSide: qDebug("Invalid side specified!"); return; + case IgnoreSide: tqDebug("Invalid side specified!"); return; } // Refresh the GUI @@ -869,7 +869,7 @@ Session *Manager::getActive(Side side) switch (side) { case LeftSide: return m_leftActive; case RightSide: return m_rightActive; - case IgnoreSide: qDebug("Invalid side specified!"); break; + case IgnoreSide: tqDebug("Invalid side specified!"); break; } return NULL; @@ -880,19 +880,19 @@ KFTPTabWidget *Manager::getTabs(Side side) switch (side) { case LeftSide: return m_leftTabs; case RightSide: return m_rightTabs; - case IgnoreSide: qDebug("Invalid side specified!"); break; + case IgnoreSide: tqDebug("Invalid side specified!"); break; } return NULL; } -void Manager::slotActiveChanged(QWidget *page) +void Manager::slotActiveChanged(TQWidget *page) { Session *session = find(static_cast<KFTPWidgets::Browser::View*>(page)); setActive(session); } -void Manager::slotSessionCloseRequest(QWidget *page) +void Manager::slotSessionCloseRequest(TQWidget *page) { Session *session = find(static_cast<KFTPWidgets::Browser::View*>(page)); |