diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /krec/mp3_export | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-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 'krec/mp3_export')
-rw-r--r-- | krec/mp3_export/krecexport_mp3.cpp | 20 | ||||
-rw-r--r-- | krec/mp3_export/krecexport_mp3.h | 10 |
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; |