summaryrefslogtreecommitdiffstats
path: root/krec/krecexport_wave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krec/krecexport_wave.cpp')
-rw-r--r--krec/krecexport_wave.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/krec/krecexport_wave.cpp b/krec/krecexport_wave.cpp
index 80ea63d7..6224283e 100644
--- a/krec/krecexport_wave.cpp
+++ b/krec/krecexport_wave.cpp
@@ -18,15 +18,15 @@
#include <kdebug.h>
#include <ktempfile.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqtimer.h>
#include <kgenericfactory.h>
K_EXPORT_COMPONENT_FACTORY( libkrecexport_wave, KGenericFactory<KRecExport_Wave> )
KRecExport_Wave krecExportWave( 0 );
-KRecExport_Wave::KRecExport_Wave( QObject* p, const char* n, const QStringList& )
+KRecExport_Wave::KRecExport_Wave( TQObject* p, const char* n, const TQStringList& )
: KRecExportItem( p,n )
, _file( 0 )
{
@@ -43,17 +43,17 @@ kdDebug( 60005 ) << k_funcinfo << endl;
return new KRecExport_Wave( 0 );
}
-QStringList KRecExport_Wave::extensions() {
+TQStringList KRecExport_Wave::extensions() {
//kdDebug( 60005 ) << k_funcinfo << endl;
- QStringList tmp;
+ TQStringList tmp;
tmp << "*.wav" << "*.WAV";
return tmp;
}
-bool KRecExport_Wave::initialize( const QString &filename ) {
+bool KRecExport_Wave::initialize( const TQString &filename ) {
kdDebug( 60005 ) << k_funcinfo << endl;
if ( !_file ) {
- _file = new QFile( filename );
+ _file = new TQFile( filename );
if ( _file->open( IO_Raw|IO_WriteOnly ) ) {
/// Write an empty Wave-header...
for ( int i=0; i<44; i++ )
@@ -66,10 +66,10 @@ bool KRecExport_Wave::process() {
//kdDebug( 60005 ) << k_funcinfo << running << endl;
if ( _file ) {
if ( running() ) {
- QByteArray bytearray( 4096 );
+ TQByteArray bytearray( 4096 );
emit getData( bytearray );
_file->writeBlock( bytearray );
- QTimer::singleShot( 10, this, SLOT( process() ) );
+ TQTimer::singleShot( 10, this, TQT_SLOT( process() ) );
}
return true;
} else return false;