summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/wav/kfile_wav.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/wav/kfile_wav.cpp')
-rw-r--r--kfile-plugins/wav/kfile_wav.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kfile-plugins/wav/kfile_wav.cpp b/kfile-plugins/wav/kfile_wav.cpp
index be2724c7..09e2c2cc 100644
--- a/kfile-plugins/wav/kfile_wav.cpp
+++ b/kfile-plugins/wav/kfile_wav.cpp
@@ -26,11 +26,11 @@
#include <kstringvalidator.h>
#include <kdebug.h>
-#include <qdict.h>
-#include <qvalidator.h>
-#include <qcstring.h>
-#include <qfile.h>
-#include <qdatetime.h>
+#include <tqdict.h>
+#include <tqvalidator.h>
+#include <tqcstring.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
#if !defined(__osf__)
#include <inttypes.h>
@@ -43,8 +43,8 @@ typedef KGenericFactory<KWavPlugin> WavFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_wav, WavFactory( "kfile_wav" ))
-KWavPlugin::KWavPlugin(QObject *parent, const char *name,
- const QStringList &args)
+KWavPlugin::KWavPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
@@ -57,15 +57,15 @@ KWavPlugin::KWavPlugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "Sample Size", i18n("Sample Size"), QVariant::Int);
+ item = addItemInfo(group, "Sample Size", i18n("Sample Size"), TQVariant::Int);
setSuffix(item, i18n(" bits"));
- item = addItemInfo(group, "Sample Rate", i18n("Sample Rate"), QVariant::Int);
+ item = addItemInfo(group, "Sample Rate", i18n("Sample Rate"), TQVariant::Int);
setSuffix(item, i18n(" Hz"));
- item = addItemInfo(group, "Channels", i18n("Channels"), QVariant::Int);
+ item = addItemInfo(group, "Channels", i18n("Channels"), TQVariant::Int);
- item = addItemInfo(group, "Length", i18n("Length"), QVariant::Int);
+ item = addItemInfo(group, "Length", i18n("Length"), TQVariant::Int);
setAttributes(item, KFileMimeTypeInfo::Cummulative);
setUnit(item, KFileMimeTypeInfo::Seconds);
}
@@ -75,7 +75,7 @@ bool KWavPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
if ( info.path().isEmpty() ) // remote file
return false;
- QFile file(info.path());
+ TQFile file(info.path());
uint32_t format_size;
uint16_t format_tag;
@@ -89,7 +89,7 @@ bool KWavPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
uint16_t unknown_chunk16;
bool have_fmt = false;
bool have_data = false;
- QIODevice::Offset file_length;
+ TQIODevice::Offset file_length;
const char *riff_signature = "RIFF";
const char *wav_signature = "WAVE";
@@ -99,15 +99,15 @@ bool KWavPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
if (!file.open(IO_ReadOnly))
{
- kdDebug(7034) << "Couldn't open " << QFile::encodeName(info.path()) << endl;
+ kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl;
return false;
}
file_length = file.size() - 100; // a bit of insurance
- QDataStream dstream(&file);
+ TQDataStream dstream(&file);
// WAV files are little-endian
- dstream.setByteOrder(QDataStream::LittleEndian);
+ dstream.setByteOrder(TQDataStream::LittleEndian);
// Read and verify the RIFF signature
dstream.readRawBytes(signature_buffer, 4);