summaryrefslogtreecommitdiffstats
path: root/kdessh
diff options
context:
space:
mode:
Diffstat (limited to 'kdessh')
-rw-r--r--kdessh/kdessh.cpp18
-rw-r--r--kdessh/sshdlg.cpp8
-rw-r--r--kdessh/sshdlg.h6
3 files changed, 16 insertions, 16 deletions
diff --git a/kdessh/kdessh.cpp b/kdessh/kdessh.cpp
index 6fa10ca..c449004 100644
--- a/kdessh/kdessh.cpp
+++ b/kdessh/kdessh.cpp
@@ -83,14 +83,14 @@ int main(int argc, char *argv[])
KCmdLineArgs::usage(i18n("No command or host specified."));
// Check if ssh is available
- if (KStandardDirs::findExe(QString::fromLatin1("ssh")).isEmpty())
+ if (KStandardDirs::findExe(TQString::fromLatin1("ssh")).isEmpty())
{
kdError(1511) << "ssh not found\n";
exit(1);
}
// Get remote userid
- QCString user = args->getOption("u");
+ TQCString user = args->getOption("u");
if (user.isNull())
{
struct passwd *pw = getpwuid(getuid());
@@ -103,11 +103,11 @@ int main(int argc, char *argv[])
}
// Remote stub location
- QCString stub = args->getOption("s");
+ TQCString stub = args->getOption("s");
// Get remote host, command
- QCString host = args->arg(0);
- QCString command = args->arg(1);
+ TQCString host = args->arg(0);
+ TQCString command = args->arg(1);
for (int i=2; i<args->count(); i++)
{
command += " ";
@@ -151,22 +151,22 @@ int main(int argc, char *argv[])
// Read configuration
KConfig *config = KGlobal::config();
- config->setGroup(QString::fromLatin1("Passwords"));
- int timeout = config->readNumEntry(QString::fromLatin1("Timeout"), defTimeout);
+ config->setGroup(TQString::fromLatin1("Passwords"));
+ int timeout = config->readNumEntry(TQString::fromLatin1("Timeout"), defTimeout);
SshProcess proc(host, user);
proc.setStub(stub);
int needpw = proc.checkNeedPassword();
if (needpw < 0)
{
- QString msg = i18n("Ssh returned with an error!\n"
+ TQString msg = i18n("Ssh returned with an error!\n"
"The error message is:\n\n");
msg += proc.error();
KMessageBox::error(0L, msg);
exit(1);
}
- QCString password;
+ TQCString password;
if (needpw != 0)
{
KDEsshDialog *dlg = new KDEsshDialog(host, user, stub,
diff --git a/kdessh/sshdlg.cpp b/kdessh/sshdlg.cpp
index a652688..bffc694 100644
--- a/kdessh/sshdlg.cpp
+++ b/kdessh/sshdlg.cpp
@@ -13,18 +13,18 @@
#include "sshdlg.h"
-KDEsshDialog::KDEsshDialog(QCString host, QCString user, QCString stub,
- QString prompt, bool enableKeep)
+KDEsshDialog::KDEsshDialog(TQCString host, TQCString user, TQCString stub,
+ TQString prompt, bool enableKeep)
: KPasswordDialog(Password, enableKeep, 0)
{
m_Host = host;
m_User = user;
m_Stub = stub;
- setCaption(QString::fromLatin1("%1@%2").arg(m_User).arg(m_Host));
+ setCaption(TQString::fromLatin1("%1@%2").arg(m_User).arg(m_Host));
// Make the prompt a little more polite :-)
- if (prompt.lower().left(6) == QString::fromLatin1("enter "))
+ if (prompt.lower().left(6) == TQString::fromLatin1("enter "))
prompt.remove(0, 6);
int pos = prompt.find(':');
if (pos != -1)
diff --git a/kdessh/sshdlg.h b/kdessh/sshdlg.h
index 1090312..c552548 100644
--- a/kdessh/sshdlg.h
+++ b/kdessh/sshdlg.h
@@ -17,15 +17,15 @@ class KDEsshDialog
Q_OBJECT
public:
- KDEsshDialog(QCString host, QCString user, QCString stub,
- QString prompt, bool enableKeep);
+ KDEsshDialog(TQCString host, TQCString user, TQCString stub,
+ TQString prompt, bool enableKeep);
~KDEsshDialog();
protected:
bool checkPassword(const char *password);
private:
- QCString m_User, m_Host, m_Stub;
+ TQCString m_User, m_Host, m_Stub;
};