summaryrefslogtreecommitdiffstats
path: root/kdesu/ssh.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdesu/ssh.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesu/ssh.cpp')
-rw-r--r--kdesu/ssh.cpp26
1 files changed, 13 insertions, 13 deletions
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 <sys/types.h>
#include <sys/stat.h>
-#include <qglobal.h>
-#include <qcstring.h>
+#include <tqglobal.h>
+#include <tqcstring.h>
#include <kdebug.h>
#include <klocale.h>
@@ -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 )