summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/recording/encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/recording/encoder.cpp')
-rw-r--r--kradio3/plugins/recording/encoder.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kradio3/plugins/recording/encoder.cpp b/kradio3/plugins/recording/encoder.cpp
index b33a8c3..5f051d6 100644
--- a/kradio3/plugins/recording/encoder.cpp
+++ b/kradio3/plugins/recording/encoder.cpp
@@ -23,25 +23,25 @@
#include "recording-configuration.h"
#include "soundstreamevent.h"
-#include <qsocketnotifier.h>
-#include <qevent.h>
-#include <qapplication.h>
-#include <qregexp.h>
+#include <tqsocketnotifier.h>
+#include <tqevent.h>
+#include <tqapplication.h>
+#include <tqregexp.h>
#include <kconfig.h>
#include <kdeversion.h>
#include <klocale.h>
-RecordingEncoding::RecordingEncoding(QObject *parent, SoundStreamID ssid,
+RecordingEncoding::RecordingEncoding(TQObject *tqparent, SoundStreamID ssid,
const RecordingConfig &cfg, const RadioStation *rs,
- const QString &filename)
+ const TQString &filename)
:
- m_parent(parent),
+ m_parent(tqparent),
m_config(cfg),
m_RadioStation(rs ? rs->copy() : NULL),
m_SoundStreamID(ssid),
m_error(false),
- m_errorString(QString::null),
+ m_errorString(TQString()),
m_done(false),
m_InputBuffers(m_config.m_EncodeBufferCount < 3 ? 3 : m_config.m_EncodeBufferCount,
m_config.m_EncodeBufferSize < 4096 ? 4096 : m_config.m_EncodeBufferSize),
@@ -57,9 +57,9 @@ RecordingEncoding::RecordingEncoding(QObject *parent, SoundStreamID s
if (m_config.m_EncodeBufferSize < 4096)
m_config.m_EncodeBufferSize = 4096;
- m_buffersMetaData = new QPtrList<BufferSoundMetaData> *[m_config.m_EncodeBufferCount];
+ m_buffersMetaData = new TQPtrList<BufferSoundMetaData> *[m_config.m_EncodeBufferCount];
for (size_t i = 0; i < m_config.m_EncodeBufferCount; ++i) {
- m_buffersMetaData [i] = new QPtrList<BufferSoundMetaData>;
+ m_buffersMetaData [i] = new TQPtrList<BufferSoundMetaData>;
m_buffersMetaData [i]->setAutoDelete(true);
}
}
@@ -146,7 +146,7 @@ void RecordingEncoding::run()
char *export_buffer = NULL;
size_t export_buffer_size = 0;
- Q_UINT64 old_pos = m_encodedSize;
+ TQ_UINT64 old_pos = m_encodedSize;
encode(buffer, buffer_fill, export_buffer, export_buffer_size);
@@ -159,14 +159,14 @@ void RecordingEncoding::run()
}
if (step_event)
- QApplication::postEvent(m_parent, step_event);
+ TQApplication::postEvent(m_parent, step_event);
}
m_done = true;
closeOutput();
SoundMetaData md(m_encodedSize, last_md.relativeTimestamp(), last_md.absoluteTimestamp(), m_outputURL);
- QApplication::postEvent(m_parent, new SoundStreamEncodingStepEvent(m_SoundStreamID, NULL, 0, md));
+ TQApplication::postEvent(m_parent, new SoundStreamEncodingStepEvent(m_SoundStreamID, NULL, 0, md));
- QApplication::postEvent(m_parent, new SoundStreamEncodingTerminatedEvent(m_SoundStreamID));
+ TQApplication::postEvent(m_parent, new SoundStreamEncodingTerminatedEvent(m_SoundStreamID));
}