summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/deb
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/deb')
-rw-r--r--kfile-plugins/deb/kfile_deb.cpp42
-rw-r--r--kfile-plugins/deb/kfile_deb.h2
2 files changed, 22 insertions, 22 deletions
diff --git a/kfile-plugins/deb/kfile_deb.cpp b/kfile-plugins/deb/kfile_deb.cpp
index b66e062..3839764 100644
--- a/kfile-plugins/deb/kfile_deb.cpp
+++ b/kfile-plugins/deb/kfile_deb.cpp
@@ -25,14 +25,14 @@
#include <kstringvalidator.h>
#include <kdebug.h>
-#include <qdict.h>
-#include <qvalidator.h>
-#include <qcstring.h>
-#include <qfile.h>
-#include <qdatetime.h>
-#include <qbuffer.h>
+#include <tqdict.h>
+#include <tqvalidator.h>
+#include <tqcstring.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
+#include <tqbuffer.h>
#include <kfilterdev.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <karchive.h>
#include <ktar.h>
#include <kar.h>
@@ -43,8 +43,8 @@ typedef KGenericFactory<KDebPlugin> DebFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_deb, DebFactory( "kfile_deb" ))
-KDebPlugin::KDebPlugin(QObject *parent, const char *name,
- const QStringList &args)
+KDebPlugin::KDebPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
@@ -53,10 +53,10 @@ KDebPlugin::KDebPlugin(QObject *parent, const char *name,
group = addGroupInfo(info, "General", i18n("General"));
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "Name", i18n("Name"), QVariant::String);
- item = addItemInfo(group, "Version", i18n("Version"), QVariant::String);
- item = addItemInfo(group, "Summary", i18n("Summary"), QVariant::String);
- item = addItemInfo(group, "Size", i18n("Size"), QVariant::Int);
+ item = addItemInfo(group, "Name", i18n("Name"), TQVariant::String);
+ item = addItemInfo(group, "Version", i18n("Version"), TQVariant::String);
+ item = addItemInfo(group, "Summary", i18n("Summary"), TQVariant::String);
+ item = addItemInfo(group, "Size", i18n("Size"), TQVariant::Int);
}
bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
@@ -64,7 +64,7 @@ bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
KAr debfile (info.path());
if ( !debfile.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;
}
@@ -75,7 +75,7 @@ bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
return false;
}
- QIODevice* filterDev = KFilterDev::device( static_cast<const KArchiveFile *>( controlentry )->device(), "application/x-gzip" );
+ TQIODevice* filterDev = KFilterDev::device( static_cast<const KArchiveFile *>( controlentry )->device(), "application/x-gzip" );
if ( !filterDev ) {
kdWarning(7034) << "Couldn't create filter device for control.tar.gz" << endl;
return false;
@@ -95,19 +95,19 @@ bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
Q_ASSERT( controlfile );
if (controlfile) {
KFileMetaInfoGroup group = appendGroup(info, "General");
- QByteArray control( static_cast<const KArchiveFile *>(controlfile)->data() );
+ TQByteArray control( static_cast<const KArchiveFile *>(controlfile)->data() );
// Now process control array
- QBuffer controldev(control);
+ TQBuffer controldev(control);
controldev.open( IO_ReadOnly );
while (!controldev.atEnd()) {
char linebuf[100];
controldev.readLine(linebuf, sizeof( linebuf ));
- QString line(linebuf);
- int fieldstart = line.find(QRegExp(":"), 0) + 2;
+ TQString line(linebuf);
+ int fieldstart = line.find(TQRegExp(":"), 0) + 2;
if (fieldstart == 1) break;
- QString fieldname = line.mid(0, fieldstart - 2);
- QString fielddata = line.mid(fieldstart, line.length() - fieldstart - 1);
+ TQString fieldname = line.mid(0, fieldstart - 2);
+ TQString fielddata = line.mid(fieldstart, line.length() - fieldstart - 1);
if (fieldname == "Package") appendItem(group, "Name", fielddata);
else if (fieldname == "Version") appendItem(group, "Version", fielddata);
diff --git a/kfile-plugins/deb/kfile_deb.h b/kfile-plugins/deb/kfile_deb.h
index 9fd1bb0..cfa5376 100644
--- a/kfile-plugins/deb/kfile_deb.h
+++ b/kfile-plugins/deb/kfile_deb.h
@@ -29,7 +29,7 @@ class KDebPlugin: public KFilePlugin
Q_OBJECT
public:
- KDebPlugin( QObject *parent, const char *name, const QStringList& args );
+ KDebPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);