summaryrefslogtreecommitdiffstats
path: root/kdecore/kprocio.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 /kdecore/kprocio.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 'kdecore/kprocio.cpp')
-rw-r--r--kdecore/kprocio.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kdecore/kprocio.cpp b/kdecore/kprocio.cpp
index d6fe33d89..15a2f70bc 100644
--- a/kdecore/kprocio.cpp
+++ b/kdecore/kprocio.cpp
@@ -27,7 +27,7 @@
#include "kprocio.h"
#include <kdebug.h>
-#include <qtextcodec.h>
+#include <tqtextcodec.h>
class KProcIOPrivate {
public:
@@ -35,7 +35,7 @@ public:
KProcess::Communication comm;
};
-KProcIO::KProcIO ( QTextCodec *_codec)
+KProcIO::KProcIO ( TQTextCodec *_codec)
: codec(_codec), d(new KProcIOPrivate)
{
rbi=0;
@@ -44,7 +44,7 @@ KProcIO::KProcIO ( QTextCodec *_codec)
if (!codec)
{
- codec = QTextCodec::codecForName("ISO 8859-1");
+ codec = TQTextCodec::codecForName("ISO 8859-1");
if (!codec)
{
kdError(174) << "Can't create ISO 8859-1 codec!" << endl;
@@ -67,14 +67,14 @@ KProcIO::resetAll ()
rbi=0;
readsignalon=writeready=true;
- disconnect (this, SIGNAL (receivedStdout (KProcess *, char *, int)),
- this, SLOT (received (KProcess *, char *, int)));
+ disconnect (this, TQT_SIGNAL (receivedStdout (KProcess *, char *, int)),
+ this, TQT_SLOT (received (KProcess *, char *, int)));
- disconnect (this, SIGNAL (receivedStderr (KProcess *, char *, int)),
- this, SLOT (received (KProcess *, char *, int)));
+ disconnect (this, TQT_SIGNAL (receivedStderr (KProcess *, char *, int)),
+ this, TQT_SLOT (received (KProcess *, char *, int)));
- disconnect (this, SIGNAL (wroteStdin(KProcess *)),
- this, SLOT (sent (KProcess *)));
+ disconnect (this, TQT_SIGNAL (wroteStdin(KProcess *)),
+ this, TQT_SLOT (sent (KProcess *)));
outbuffer.clear();
@@ -87,29 +87,29 @@ void KProcIO::setComm (Communication comm)
bool KProcIO::start (RunMode runmode, bool includeStderr)
{
- connect (this, SIGNAL (receivedStdout (KProcess *, char *, int)),
- this, SLOT (received (KProcess *, char *, int)));
+ connect (this, TQT_SIGNAL (receivedStdout (KProcess *, char *, int)),
+ this, TQT_SLOT (received (KProcess *, char *, int)));
if (includeStderr)
{
- connect (this, SIGNAL (receivedStderr (KProcess *, char *, int)),
- this, SLOT (received (KProcess *, char *, int)));
+ connect (this, TQT_SIGNAL (receivedStderr (KProcess *, char *, int)),
+ this, TQT_SLOT (received (KProcess *, char *, int)));
}
- connect (this, SIGNAL (wroteStdin(KProcess *)),
- this, SLOT (sent (KProcess *)));
+ connect (this, TQT_SIGNAL (wroteStdin(KProcess *)),
+ this, TQT_SLOT (sent (KProcess *)));
return KProcess::start (runmode, d->comm);
}
-bool KProcIO::writeStdin (const QString &line, bool appendnewline)
+bool KProcIO::writeStdin (const TQString &line, bool appendnewline)
{
return writeStdin(codec->fromUnicode(line), appendnewline);
}
-bool KProcIO::writeStdin (const QCString &line, bool appendnewline)
+bool KProcIO::writeStdin (const TQCString &line, bool appendnewline)
{
- QCString *qs = new QCString(line);
+ TQCString *qs = new TQCString(line);
if (appendnewline)
{
@@ -123,7 +123,7 @@ bool KProcIO::writeStdin (const QCString &line, bool appendnewline)
return true;
}
- QByteArray *b = (QByteArray *) qs;
+ TQByteArray *b = (TQByteArray *) qs;
b->truncate(l); // Strip trailing null
outbuffer.append(b);
@@ -136,11 +136,11 @@ bool KProcIO::writeStdin (const QCString &line, bool appendnewline)
return true;
}
-bool KProcIO::writeStdin(const QByteArray &data)
+bool KProcIO::writeStdin(const TQByteArray &data)
{
if (!data.size())
return true;
- QByteArray *b = new QByteArray(data);
+ TQByteArray *b = new TQByteArray(data);
outbuffer.append(b);
if (writeready)
@@ -173,7 +173,7 @@ void KProcIO::sent(KProcess *)
}
else
{
- QByteArray *b = outbuffer.first();
+ TQByteArray *b = outbuffer.first();
if (!b)
{
closeStdin();
@@ -188,7 +188,7 @@ void KProcIO::sent(KProcess *)
void KProcIO::received (KProcess *, char *buffer, int buflen)
{
- recvbuffer += QCString(buffer, buflen+1);
+ recvbuffer += TQCString(buffer, buflen+1);
controlledEmission();
}
@@ -222,7 +222,7 @@ void KProcIO::enableReadSignals (bool enable)
emit readReady (this);
}
-int KProcIO::readln (QString &line, bool autoAck, bool *partial)
+int KProcIO::readln (TQString &line, bool autoAck, bool *partial)
{
int len;