summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/wav
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kfile-plugins/wav
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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 'kfile-plugins/wav')
-rw-r--r--kfile-plugins/wav/kfile_wav.cpp32
-rw-r--r--kfile-plugins/wav/kfile_wav.h2
2 files changed, 17 insertions, 17 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);
diff --git a/kfile-plugins/wav/kfile_wav.h b/kfile-plugins/wav/kfile_wav.h
index 27990b0e..a80f49ec 100644
--- a/kfile-plugins/wav/kfile_wav.h
+++ b/kfile-plugins/wav/kfile_wav.h
@@ -29,7 +29,7 @@ class KWavPlugin: public KFilePlugin
Q_OBJECT
public:
- KWavPlugin( QObject *parent, const char *name, const QStringList& args );
+ KWavPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};