diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kdessh/kdessh.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdessh/kdessh.cpp')
-rw-r--r-- | kdessh/kdessh.cpp | 18 |
1 files changed, 9 insertions, 9 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, |