summaryrefslogtreecommitdiffstats
path: root/libkdepim/collectingprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/collectingprocess.cpp')
-rw-r--r--libkdepim/collectingprocess.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/libkdepim/collectingprocess.cpp b/libkdepim/collectingprocess.cpp
index 5d2dc2496..2e1b61714 100644
--- a/libkdepim/collectingprocess.cpp
+++ b/libkdepim/collectingprocess.cpp
@@ -32,7 +32,7 @@
#include "collectingprocess.h"
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <string.h>
@@ -43,13 +43,13 @@ struct CollectingProcess::Private {
{}
uint stdoutSize;
- QValueList<QByteArray> stdoutBuffer;
+ TQValueList<TQByteArray> stdoutBuffer;
uint stderrSize;
- QValueList<QByteArray> stderrBuffer;
+ TQValueList<TQByteArray> stderrBuffer;
};
-CollectingProcess::CollectingProcess( QObject * parent, const char * name )
+CollectingProcess::CollectingProcess( TQObject * parent, const char * name )
: KProcess( parent, name )
{
d = new Private();
@@ -61,25 +61,25 @@ CollectingProcess::~CollectingProcess() {
bool CollectingProcess::start( RunMode runmode, Communication comm ) {
// prevent duplicate connection
- disconnect( this, SIGNAL( receivedStdout( KProcess *, char *, int ) ),
- this, SLOT( slotReceivedStdout( KProcess *, char *, int ) ) );
+ disconnect( this, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ),
+ this, TQT_SLOT( slotReceivedStdout( KProcess *, char *, int ) ) );
if ( comm & Stdout ) {
- connect( this, SIGNAL( receivedStdout( KProcess *, char *, int ) ),
- this, SLOT( slotReceivedStdout( KProcess *, char *, int ) ) );
+ connect( this, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ),
+ this, TQT_SLOT( slotReceivedStdout( KProcess *, char *, int ) ) );
}
// prevent duplicate connection
- disconnect( this, SIGNAL( receivedStderr( KProcess *, char *, int ) ),
- this, SLOT( slotReceivedStderr( KProcess *, char *, int ) ) );
+ disconnect( this, TQT_SIGNAL( receivedStderr( KProcess *, char *, int ) ),
+ this, TQT_SLOT( slotReceivedStderr( KProcess *, char *, int ) ) );
if ( comm & Stderr ) {
- connect( this, SIGNAL( receivedStderr( KProcess *, char *, int ) ),
- this, SLOT( slotReceivedStderr( KProcess *, char *, int ) ) );
+ connect( this, TQT_SIGNAL( receivedStderr( KProcess *, char *, int ) ),
+ this, TQT_SLOT( slotReceivedStderr( KProcess *, char *, int ) ) );
}
return KProcess::start( runmode, comm );
}
void CollectingProcess::slotReceivedStdout( KProcess *, char *buf, int len )
{
- QByteArray b;
+ TQByteArray b;
b.duplicate( buf, len );
d->stdoutBuffer.append( b );
d->stdoutSize += len;
@@ -87,21 +87,21 @@ void CollectingProcess::slotReceivedStdout( KProcess *, char *buf, int len )
void CollectingProcess::slotReceivedStderr( KProcess *, char *buf, int len )
{
- QByteArray b;
+ TQByteArray b;
b.duplicate( buf, len );
d->stderrBuffer.append( b );
d->stderrSize += len;
}
-QByteArray CollectingProcess::collectedStdout()
+TQByteArray CollectingProcess::collectedStdout()
{
if ( d->stdoutSize == 0 ) {
- return QByteArray();
+ return TQByteArray();
}
uint offset = 0;
- QByteArray b( d->stdoutSize );
- for ( QValueList<QByteArray>::const_iterator it = d->stdoutBuffer.begin();
+ TQByteArray b( d->stdoutSize );
+ for ( TQValueList<TQByteArray>::const_iterator it = d->stdoutBuffer.begin();
it != d->stdoutBuffer.end();
++it ) {
memcpy( b.data() + offset, (*it).data(), (*it).size() );
@@ -113,15 +113,15 @@ QByteArray CollectingProcess::collectedStdout()
return b;
}
-QByteArray CollectingProcess::collectedStderr()
+TQByteArray CollectingProcess::collectedStderr()
{
if ( d->stderrSize == 0 ) {
- return QByteArray();
+ return TQByteArray();
}
uint offset = 0;
- QByteArray b( d->stderrSize );
- for ( QValueList<QByteArray>::const_iterator it = d->stderrBuffer.begin();
+ TQByteArray b( d->stderrSize );
+ for ( TQValueList<TQByteArray>::const_iterator it = d->stderrBuffer.begin();
it != d->stderrBuffer.end();
++it ) {
memcpy( b.data() + offset, (*it).data(), (*it).size() );