summaryrefslogtreecommitdiffstats
path: root/kioslave/audiocd/plugins/lame/collectingprocess.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kioslave/audiocd/plugins/lame/collectingprocess.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/audiocd/plugins/lame/collectingprocess.cpp')
-rw-r--r--kioslave/audiocd/plugins/lame/collectingprocess.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kioslave/audiocd/plugins/lame/collectingprocess.cpp b/kioslave/audiocd/plugins/lame/collectingprocess.cpp
index b3a13755..42bdf206 100644
--- a/kioslave/audiocd/plugins/lame/collectingprocess.cpp
+++ b/kioslave/audiocd/plugins/lame/collectingprocess.cpp
@@ -32,7 +32,7 @@
#include "collectingprocess.h"
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <string.h>
@@ -41,13 +41,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();
@@ -59,25 +59,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;
@@ -85,21 +85,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() );
@@ -111,15 +111,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() );