diff options
Diffstat (limited to 'kftpgrabber/src/misc/customcommands/entry.cpp')
-rw-r--r-- | kftpgrabber/src/misc/customcommands/entry.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kftpgrabber/src/misc/customcommands/entry.cpp b/kftpgrabber/src/misc/customcommands/entry.cpp index 346f3cf..4f9d0fb 100644 --- a/kftpgrabber/src/misc/customcommands/entry.cpp +++ b/kftpgrabber/src/misc/customcommands/entry.cpp @@ -40,25 +40,25 @@ #include "parameterentrydialog.h" #include "responsedialog.h" -#include <klocale.h> -#include <kmessagebox.h> +#include <tdelocale.h> +#include <tdemessagebox.h> namespace KFTPCore { namespace CustomCommands { -Entry::Entry(QObject *parent, const QString &name) - : QObject(parent), +Entry::Entry(TQObject *parent, const TQString &name) + : TQObject(parent), m_name(name) { } -void Entry::appendParameter(ParameterType type, const QString &name) +void Entry::appendParameter(ParameterType type, const TQString &name) { m_params.append(Parameter(type, name)); } -void Entry::setResponseHandler(const QString &handler, QDomNode args) +void Entry::setResponseHandler(const TQString &handler, TQDomNode args) { m_handler = handler; m_handlerArguments = args; @@ -67,11 +67,11 @@ void Entry::setResponseHandler(const QString &handler, QDomNode args) void Entry::execute(KFTPSession::Session *session) { // Create a dialog for parameter input - QString command = m_command; + TQString command = m_command; if (m_params.count() > 0) { ParameterEntryDialog *dialog = new ParameterEntryDialog(this, m_params); - if (dialog->exec() != QDialog::Accepted) { + if (dialog->exec() != TQDialog::Accepted) { delete dialog; return; } @@ -83,20 +83,20 @@ void Entry::execute(KFTPSession::Session *session) // Execute the command with proper parameters m_lastSession = session; - connect(session->getClient()->eventHandler(), SIGNAL(gotRawResponse(const QString&)), this, SLOT(handleResponse(const QString&))); + connect(session->getClient()->eventHandler(), SIGNAL(gotRawResponse(const TQString&)), this, SLOT(handleResponse(const TQString&))); session->getClient()->raw(command); } -void Entry::handleResponse(const QString &response) +void Entry::handleResponse(const TQString &response) { if (!m_lastSession) return; - m_lastSession->getClient()->eventHandler()->QObject::disconnect(this); + m_lastSession->getClient()->eventHandler()->TQObject::disconnect(this); m_lastSession = 0; // Invoke the proper handler - QString expectedReturn = m_handlerArguments.namedItem("expected").toElement().attribute("code"); + TQString expectedReturn = m_handlerArguments.namedItem("expected").toElement().attribute("code"); if (!response.startsWith(expectedReturn)) { KMessageBox::error(0, i18n("<qt>Requested operation has failed! Response from server is:<br/><br /><b>%1</b></qt>").arg(response)); @@ -110,7 +110,7 @@ void Entry::handleResponse(const QString &response) return; } - QString parsed = handler->handleResponse(response, m_handlerArguments); + TQString parsed = handler->handleResponse(response, m_handlerArguments); // Find the proper way to display the parsed response switch (m_displayType) { @@ -134,14 +134,14 @@ Entry::Parameter::Parameter() { } -Entry::Parameter::Parameter(ParameterType type, const QString &name) +Entry::Parameter::Parameter(ParameterType type, const TQString &name) : m_type(type), m_name(name) { } EntryAction::EntryAction(Entry *entry, KFTPSession::Session *session) - : KAction(entry->name(), entry->icon()), + : TDEAction(entry->name(), entry->icon()), m_entryInfo(entry), m_session(session) { |