From 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2013 00:13:25 +0200 Subject: Initial TQt conversion --- src/frontend.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/frontend.cpp') diff --git a/src/frontend.cpp b/src/frontend.cpp index fee1c1b..cd01b3b 100644 --- a/src/frontend.cpp +++ b/src/frontend.cpp @@ -25,8 +25,8 @@ * ***************************************************************************/ -#include -#include +#include +#include #include #include "frontend.h" @@ -76,8 +76,8 @@ Frontend::~Frontend() * @param bBlock (Optional) true to block, false otherwise * @return true if the process was executed successfully, false otherwise */ -bool Frontend::run(const QString& sName, const QStringList& slArgs, - const QString& sWorkDir, bool bBlock) +bool Frontend::run(const TQString& sName, const TQStringList& slArgs, + const TQString& sWorkDir, bool bBlock) { // Cannot start if another controlled process is currently running if (isRunning()) { @@ -182,7 +182,7 @@ void Frontend::removeRecord() * @return true if a token was extracted up to the given delimter(s), false * if the buffer ended before a delimiter could be identified */ -bool Frontend::tokenize(char** ppBuf, int* pBufSize, QString& sResult, +bool Frontend::tokenize(char** ppBuf, int* pBufSize, TQString& sResult, ParserDelim& delim) { int nSize; @@ -236,10 +236,10 @@ bool Frontend::tokenize(char** ppBuf, int* pBufSize, QString& sResult, *pBufSize = nSize; } else if (m_bInToken) { - sResult = QString::fromLatin1(*ppBuf, *pBufSize); + sResult = TQString::fromLatin1(*ppBuf, *pBufSize); } else { - sResult = QString::null; + sResult = TQString::null; } return bFoundToken; @@ -250,7 +250,7 @@ bool Frontend::tokenize(char** ppBuf, int* pBufSize, QString& sResult, * By default, this method emits the error() signal with the given text. * @param sText The text sent to the standard error stream */ -void Frontend::parseStderr(const QString& sText) +void Frontend::parseStderr(const TQString& sText) { emit error(sText); } @@ -282,7 +282,7 @@ void Frontend::slotProcessExit(KProcess*) void Frontend::slotReadStdout(KProcess*, char* pBuffer, int nSize) { char* pLocalBuf; - QString sToken; + TQString sToken; bool bTokenEnded; ParserDelim delim; @@ -352,7 +352,7 @@ void Frontend::slotReadStdout(KProcess*, char* pBuffer, int nSize) */ void Frontend::slotReadStderr(KProcess*, char* pBuffer, int nSize) { - QString sBuf; + TQString sBuf; // Do nothing if waiting for process to die if (m_bKilled) -- cgit v1.2.1