diff options
Diffstat (limited to 'kfile-plugins/deb/kfile_deb.cpp')
-rw-r--r-- | kfile-plugins/deb/kfile_deb.cpp | 42 |
1 files changed, 21 insertions, 21 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); |