From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kioslave/sftp/process.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kioslave/sftp/process.cpp') diff --git a/kioslave/sftp/process.cpp b/kioslave/sftp/process.cpp index fcf012514..ca99b36bb 100644 --- a/kioslave/sftp/process.cpp +++ b/kioslave/sftp/process.cpp @@ -43,9 +43,9 @@ #include // Needed on some systems. #endif -#include -#include -#include +#include +#include +#include #include #include @@ -99,10 +99,10 @@ MyPtyProcess::~MyPtyProcess() */ -QCString MyPtyProcess::readLineFrom(int fd, QCString& inbuf, bool block) +TQCString MyPtyProcess::readLineFrom(int fd, TQCString& inbuf, bool block) { int pos; - QCString ret; + TQCString ret; if (!inbuf.isEmpty()) { @@ -172,7 +172,7 @@ QCString MyPtyProcess::readLineFrom(int fd, QCString& inbuf, bool block) return ret; } -void MyPtyProcess::writeLine(QCString line, bool addnl) +void MyPtyProcess::writeLine(TQCString line, bool addnl) { if (!line.isEmpty()) write(m_Fd, line, line.length()); @@ -180,7 +180,7 @@ void MyPtyProcess::writeLine(QCString line, bool addnl) write(m_Fd, "\n", 1); } -void MyPtyProcess::unreadLineFrom(QCString inbuf, QCString line, bool addnl) +void MyPtyProcess::unreadLineFrom(TQCString inbuf, TQCString line, bool addnl) { if (addnl) line += '\n'; @@ -193,7 +193,7 @@ void MyPtyProcess::unreadLineFrom(QCString inbuf, QCString line, bool addnl) * Fork and execute the command. This returns in the parent. */ -int MyPtyProcess::exec(QCString command, QCStringList args) +int MyPtyProcess::exec(TQCString command, QCStringList args) { kdDebug(PTYPROC) << "MyPtyProcess::exec(): " << command << endl;// << ", args = " << args << endl; @@ -259,18 +259,18 @@ int MyPtyProcess::exec(QCString command, QCStringList args) _exit(1); // From now on, terminal output goes through the tty. - QCString path; + TQCString path; if (command.contains('/')) path = command; else { - QString file = KStandardDirs::findExe(command); + TQString file = KStandardDirs::findExe(command); if (file.isEmpty()) { kdError(PTYPROC) << k_lineinfo << command << " not found\n"; _exit(1); } - path = QFile::encodeName(file); + path = TQFile::encodeName(file); } int i; @@ -393,7 +393,7 @@ int MyPtyProcess::waitForChild() if (ret) { - QCString line = readLine(false); + TQCString line = readLine(false); while (!line.isNull()) { if (!m_Exit.isEmpty() && !qstrnicmp(line, m_Exit, m_Exit.length())) -- cgit v1.2.3