summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/mpeg/kfile_mpeg.cpp
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/mpeg/kfile_mpeg.cpp
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/mpeg/kfile_mpeg.cpp')
-rw-r--r--kfile-plugins/mpeg/kfile_mpeg.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kfile-plugins/mpeg/kfile_mpeg.cpp b/kfile-plugins/mpeg/kfile_mpeg.cpp
index b0696d40..f532318e 100644
--- a/kfile-plugins/mpeg/kfile_mpeg.cpp
+++ b/kfile-plugins/mpeg/kfile_mpeg.cpp
@@ -30,11 +30,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>
// #include <iostream>
@@ -46,8 +46,8 @@ typedef KGenericFactory<KMpegPlugin> MpegFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_mpeg, MpegFactory( "kfile_mpeg" ))
-KMpegPlugin::KMpegPlugin(QObject *parent, const char *name,
- const QStringList &args)
+KMpegPlugin::KMpegPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
@@ -59,18 +59,18 @@ KMpegPlugin::KMpegPlugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "Length", i18n("Length"), QVariant::Int);
+ item = addItemInfo(group, "Length", i18n("Length"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::Seconds);
- item = addItemInfo(group, "Resolution", i18n("Resolution"), QVariant::Size);
+ item = addItemInfo(group, "Resolution", i18n("Resolution"), TQVariant::Size);
- item = addItemInfo(group, "Frame rate", i18n("Frame Rate"), QVariant::Double);
+ item = addItemInfo(group, "Frame rate", i18n("Frame Rate"), TQVariant::Double);
setSuffix(item, i18n("fps"));
- item = addItemInfo(group, "Video codec", i18n("Video Codec"), QVariant::String);
- item = addItemInfo(group, "Audio codec", i18n("Audio Codec"), QVariant::String);
+ item = addItemInfo(group, "Video codec", i18n("Video Codec"), TQVariant::String);
+ item = addItemInfo(group, "Audio codec", i18n("Audio Codec"), TQVariant::String);
- item = addItemInfo(group, "Aspect ratio", i18n("Aspect ratio"), QVariant::String);
+ item = addItemInfo(group, "Aspect ratio", i18n("Aspect ratio"), TQVariant::String);
}
// Frame-rate table from libmpeg3
@@ -216,12 +216,12 @@ int KMpegPlugin::skip_packet() {
}
int KMpegPlugin::skip_riff_chunk() {
- dstream.setByteOrder(QDataStream::LittleEndian);
+ dstream.setByteOrder(TQDataStream::LittleEndian);
uint32_t len;
dstream >> len;
// std::cerr << "Length of skipped chunk: " << len << std::endl;
- dstream.setByteOrder(QDataStream::BigEndian);
+ dstream.setByteOrder(TQDataStream::BigEndian);
return len;
}
@@ -358,7 +358,7 @@ bool KMpegPlugin::read_mpeg()
// kdDebug(7034) << "Bytes skimmed:" << skimmed << endl;
skimmed = 0;
}
-// kdDebug(7034) << "Packet of type:" << QString::number(byte,16) << endl;
+// kdDebug(7034) << "Packet of type:" << TQString::number(byte,16) << endl;
switch (byte) {
case 0xb3:
if (video_found) break;
@@ -415,7 +415,7 @@ bool KMpegPlugin::read_mpeg()
audio_found = true;
break;
default:
-// kdDebug(7034) << "Unhandled packet of type:" << QString::number(byte,16) << endl;
+// kdDebug(7034) << "Unhandled packet of type:" << TQString::number(byte,16) << endl;
break;
}
state = 0;
@@ -454,7 +454,7 @@ void KMpegPlugin::read_length()
file.at(file.size()-1024);
for(int j=1; j<64; j++) {
// dstream.setDevice(&file);
-// dstream.setByteOrder(QDataStream::BigEndian);
+// dstream.setByteOrder(TQDataStream::BigEndian);
for(int i=0; i<1024; i++) {
dstream >> byte;
switch (state) {
@@ -502,12 +502,12 @@ bool KMpegPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
// open file, set up stream and set endianness
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;
}
dstream.setDevice(&file);
- dstream.setByteOrder(QDataStream::BigEndian);
+ dstream.setByteOrder(TQDataStream::BigEndian);
start_time = end_time = 0L;
@@ -519,7 +519,7 @@ bool KMpegPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
appendItem(group, "Frame rate", double(frame_rate));
- appendItem(group, "Resolution", QSize(horizontal_size, vertical_size));
+ appendItem(group, "Resolution", TQSize(horizontal_size, vertical_size));
/* The GOP timings are completely bogus
read_length();
if (end_time != 0) {