summaryrefslogtreecommitdiffstats
path: root/krec/mp3_export/krecexport_mp3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krec/mp3_export/krecexport_mp3.cpp')
-rw-r--r--krec/mp3_export/krecexport_mp3.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/krec/mp3_export/krecexport_mp3.cpp b/krec/mp3_export/krecexport_mp3.cpp
index 85418688..0c4e8dc8 100644
--- a/krec/mp3_export/krecexport_mp3.cpp
+++ b/krec/mp3_export/krecexport_mp3.cpp
@@ -18,12 +18,12 @@
#include <kdebug.h>
#include <ktempfile.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqtimer.h>
#include <kgenericfactory.h>
#include <stdlib.h>
#include <time.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <kmessagebox.h>
#include <kconfig.h>
#include <kmessagebox.h>
@@ -44,7 +44,7 @@ K_EXPORT_COMPONENT_FACTORY( libkrecexport_mp3, KGenericFactory<KRecExport_MP3> )
KRecExport_MP3 krecExportMP3( 0 );
-KRecExport_MP3::KRecExport_MP3( QObject* p, const char* n, const QStringList& )
+KRecExport_MP3::KRecExport_MP3( TQObject* p, const char* n, const TQStringList& )
: KRecExportItem( p,n )
, _file( 0 )
, error_occurred( false )
@@ -63,14 +63,14 @@ kdDebug( 60005 ) << k_funcinfo << endl;
return new KRecExport_MP3( 0 );
}
-QStringList KRecExport_MP3::extensions() {
+TQStringList KRecExport_MP3::extensions() {
//kdDebug( 60005 ) << k_funcinfo << endl;
- QStringList tmp;
+ TQStringList tmp;
tmp << "*.wav" << "*.WAV";
return tmp;
}
-bool KRecExport_MP3::initialize( const QString &filename ) {
+bool KRecExport_MP3::initialize( const TQString &filename ) {
kdDebug( 60005 ) << k_funcinfo << endl;
if ( !_file &&
!( bits()!=16 && channels()!=2 &&
@@ -85,7 +85,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
" configuration. Make use" \
" of the Control Center to configure these settings." ),
i18n( "Quality Configuration" ), "qualityinfo_mp3" );
- _file = new QFile( filename );
+ _file = new TQFile( filename );
if ( _file->open( IO_Raw|IO_WriteOnly ) ) {
if ( ! init_done ) {
gfp = lame_init();
@@ -115,7 +115,7 @@ bool KRecExport_MP3::process() {
//kdDebug( 60005 ) << k_funcinfo << running << endl;
if ( _file ) {
if ( running() ) {
- QByteArray bytearray( 4096 );
+ TQByteArray bytearray( 4096 );
emit getData( bytearray );
int mp3bytes = lame_encode_buffer_interleaved( gfp,
reinterpret_cast<short int *>( bytearray.data() ),
@@ -128,7 +128,7 @@ bool KRecExport_MP3::process() {
i18n( lame_error[ code ] ) );
error_occurred = true;
}
- QTimer::singleShot( 10, this, SLOT( process() ) );
+ TQTimer::singleShot( 10, this, TQT_SLOT( process() ) );
}
return true;
} else return false;