summaryrefslogtreecommitdiffstats
path: root/krec/mp3_export
diff options
context:
space:
mode:
Diffstat (limited to 'krec/mp3_export')
-rw-r--r--krec/mp3_export/krecexport_mp3.cpp20
-rw-r--r--krec/mp3_export/krecexport_mp3.h10
2 files changed, 15 insertions, 15 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;
diff --git a/krec/mp3_export/krecexport_mp3.h b/krec/mp3_export/krecexport_mp3.h
index 8bf243b3..baa40914 100644
--- a/krec/mp3_export/krecexport_mp3.h
+++ b/krec/mp3_export/krecexport_mp3.h
@@ -24,20 +24,20 @@ class QFile;
class KRecExport_MP3 : public KRecExportItem {
Q_OBJECT
public:
- KRecExport_MP3( QObject*, const char* =0, const QStringList& =0 );
+ KRecExport_MP3( TQObject*, const char* =0, const TQStringList& =0 );
~KRecExport_MP3();
KRecExport_MP3* newItem();
- QStringList extensions();
- QString exportFormat() { return QString( "Wave" ); }
+ TQStringList extensions();
+ TQString exportFormat() { return TQString( "Wave" ); }
public slots:
- bool initialize( const QString & );
+ bool initialize( const TQString & );
bool process();
bool finalize();
private:
- QFile* _file;
+ TQFile* _file;
// Lame MP3 encoder
void setLameParameters();
lame_global_flags *gfp;