From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesu/ssh.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kdesu/ssh.cpp') diff --git a/kdesu/ssh.cpp b/kdesu/ssh.cpp index a325fb62e..d39634ac5 100644 --- a/kdesu/ssh.cpp +++ b/kdesu/ssh.cpp @@ -28,8 +28,8 @@ #include #include -#include -#include +#include +#include #include #include @@ -39,7 +39,7 @@ #include "kcookie.h" -SshProcess::SshProcess(const QCString &host, const QCString &user, const QCString &command) +SshProcess::SshProcess(const TQCString &host, const TQCString &user, const TQCString &command) { m_Host = host; m_User = user; @@ -54,7 +54,7 @@ SshProcess::~SshProcess() } -void SshProcess::setStub(const QCString &stub) +void SshProcess::setStub(const TQCString &stub) { m_Stub = stub; } @@ -146,13 +146,13 @@ int SshProcess::exec(const char *password, int check) * 14/SEP/2000: DCOP forwarding is not used anymore. */ -QCString SshProcess::dcopForward() +TQCString SshProcess::dcopForward() { - QCString result; + TQCString result; setDcopTransport("tcp"); - QCString srv = StubProcess::dcopServer(); + TQCString srv = StubProcess::dcopServer(); if (srv.isEmpty()) return result; @@ -164,7 +164,7 @@ QCString SshProcess::dcopForward() int j = srv.find(':', ++i); if (j == -1) return result; - QCString host = srv.mid(i, j-i); + TQCString host = srv.mid(i, j-i); bool ok; int port = srv.mid(++j).toInt(&ok); if (!ok) @@ -193,7 +193,7 @@ int SshProcess::ConverseSsh(const char *password, int check) { unsigned i, j, colon; - QCString line; + TQCString line; int state = 0; while (state < 2) @@ -257,22 +257,22 @@ int SshProcess::ConverseSsh(const char *password, int check) // Display redirection is handled by ssh natively. -QCString SshProcess::display() +TQCString SshProcess::display() { return "no"; } -QCString SshProcess::displayAuth() +TQCString SshProcess::displayAuth() { return "no"; } // Return the remote end of the forwarded connection. -QCString SshProcess::dcopServer() +TQCString SshProcess::dcopServer() { - return QCString().sprintf("tcp/localhost:%d", m_dcopPort); + return TQCString().sprintf("tcp/localhost:%d", m_dcopPort); } void SshProcess::virtual_hook( int id, void* data ) -- cgit v1.2.3