summaryrefslogtreecommitdiffstats
path: root/krec/ogg_export/krecexport_ogg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krec/ogg_export/krecexport_ogg.cpp')
-rw-r--r--krec/ogg_export/krecexport_ogg.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/krec/ogg_export/krecexport_ogg.cpp b/krec/ogg_export/krecexport_ogg.cpp
index 6a5d5735..e2b495dd 100644
--- a/krec/ogg_export/krecexport_ogg.cpp
+++ b/krec/ogg_export/krecexport_ogg.cpp
@@ -22,12 +22,12 @@
#include <kdebug.h>
#include <ktempfile.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqtimer.h>
#include <kconfig.h>
#include <stdlib.h>
#include <time.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <kgenericfactory.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -36,7 +36,7 @@ K_EXPORT_COMPONENT_FACTORY( libkrecexport_ogg, KGenericFactory<KRecExport_OGG> )
KRecExport_OGG krecExportOGG( 0 );
-KRecExport_OGG::KRecExport_OGG( QObject* p, const char* n, const QStringList& )
+KRecExport_OGG::KRecExport_OGG( TQObject* p, const char* n, const TQStringList& )
: KRecExportItem( p,n )
, _file( 0 )
, init_done( false )
@@ -54,14 +54,14 @@ kdDebug( 60005 ) << k_funcinfo << endl;
return new KRecExport_OGG( 0 );
}
-QStringList KRecExport_OGG::extensions() {
+TQStringList KRecExport_OGG::extensions() {
//kdDebug( 60005 ) << k_funcinfo << endl;
- QStringList tmp;
+ TQStringList tmp;
tmp << "*.ogg" << "*.OGG";
return tmp;
}
-bool KRecExport_OGG::initialize( const QString &filename ) {
+bool KRecExport_OGG::initialize( const TQString &filename ) {
kdDebug( 60005 ) << k_funcinfo << endl;
if ( !_file &&
!( samplingRate()!=44100 && bits()!=16 && channels()!=2 &&
@@ -76,7 +76,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
" the corresponding section of the audiocd:/ configuration. Make use" \
" of the Control Center to configure these settings." ),
i18n( "Quality Configuration" ), "qualityinfo_ogg" );
- _file = new QFile( filename );
+ _file = new TQFile( filename );
if ( _file->open( IO_Raw|IO_WriteOnly ) ) {
if ( ! init_done ) {
setOggParameters();
@@ -95,7 +95,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
vorbis_comment_add_tag ( &vc, const_cast<char *>( "kde-encoder" ),
const_cast<char *>( "KRec" ) );
if ( write_vorbis_comments ) {
- QDateTime dt = QDateTime::currentDateTime();
+ TQDateTime dt = TQDateTime::currentDateTime();
vorbis_comment_add_tag ( &vc, const_cast<char *>( "title" ),
const_cast<char *>( "" ) );
vorbis_comment_add_tag ( &vc, const_cast<char *>( "artist" ),
@@ -132,7 +132,7 @@ bool KRecExport_OGG::process() {
//kdDebug( 60005 ) << k_funcinfo << endl;
if ( _file ) {
if ( running() ) {
- QByteArray bytearray( 4096 );
+ TQByteArray bytearray( 4096 );
emit getData( bytearray );
float **buffer = vorbis_analysis_buffer( &vd, bytearray.size() >> 2 );
@@ -169,7 +169,7 @@ bool KRecExport_OGG::process() {
}
}
}
- QTimer::singleShot( 10, this, SLOT( process() ) );
+ TQTimer::singleShot( 10, this, TQT_SLOT( process() ) );
}
return true;
} else return false;