From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpackage/fbsdInterface.h | 52 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'kpackage/fbsdInterface.h') diff --git a/kpackage/fbsdInterface.h b/kpackage/fbsdInterface.h index 270b0c9..4966711 100644 --- a/kpackage/fbsdInterface.h +++ b/kpackage/fbsdInterface.h @@ -34,8 +34,8 @@ //#ifdef HAVE_FBSD_PKGTOOLS -#include -#include +#include +#include #include "packageInfo.h" #include "pkgInterface.h" @@ -54,11 +54,11 @@ public: void init(); - bool isType(char *buf, const QString &fname); + bool isType(char *buf, const TQString &fname); - packageInfo *getPackageInfo(char mode, const QString &name, const QString &version); - QStringList getFileList(packageInfo *p); - QStringList getChangeLog(packageInfo *p); + packageInfo *getPackageInfo(char mode, const TQString &name, const TQString &version); + TQStringList getFileList(packageInfo *p); + TQStringList getChangeLog(packageInfo *p); bool filesTab(packageInfo *p); // If files tab is to be enabled @@ -66,33 +66,33 @@ public: bool changeTab(packageInfo *p); // If change log tab is to be enabled - QString uninstall(int uninstallFlags, QPtrList *p, bool &test); - QString uninstall(int uninstallFlags, packageInfo *p, bool &test); - QString doUninstall(int uninstallFlags, const QString &packs, bool &test); - QString doInstall(int installFlags, const QString &packs, bool &test); + TQString uninstall(int uninstallFlags, TQPtrList *p, bool &test); + TQString uninstall(int uninstallFlags, packageInfo *p, bool &test); + TQString doUninstall(int uninstallFlags, const TQString &packs, bool &test); + TQString doInstall(int installFlags, const TQString &packs, bool &test); - QStringList FindFile(const QString &name, bool seachAll=false); - void collectDepends(packageInfo *p, const QString &name, int src); - bool parseName(const QString& name, QString *n, QString *v); + TQStringList FindFile(const TQString &name, bool seachAll=false); + void collectDepends(packageInfo *p, const TQString &name, int src); + bool parseName(const TQString& name, TQString *n, TQString *v); - void listInstalledPackages(QPtrList *pki); - void listPackages(QPtrList *pki); + void listInstalledPackages(TQPtrList *pki); + void listPackages(TQPtrList *pki); - QDict ports; + TQDict ports; public slots: void setLocation(); void setAvail(LcacheObj *); private: /** - * @short Add the name and version identifiers to a QMap. + * @short Add the name and version identifiers to a TQMap. * * name is parsed in to name and version and these are added to * d. Errors are handled. */ - void addNV(QMap &d, const QString &name); - int parseItem(QStringList::Iterator &it, QString &name, QString &value, QString separator, QStringList list ); - int pathInfo(QMap &a); + void addNV(TQMap &d, const TQString &name); + int parseItem(TQStringList::Iterator &it, TQString &name, TQString &value, TQString separator, TQStringList list ); + int pathInfo(TQMap &a); }; @@ -117,7 +117,7 @@ public: * * dname is the name of the base directory of this ports/packages tree. */ - bsdPortsIndexItem(fbsdInterface *parent, char *desc, bool binaries, const QString &dname); + bsdPortsIndexItem(fbsdInterface *parent, char *desc, bool binaries, const TQString &dname); /** @short true if this has a binary packages. */ bool bin; @@ -131,13 +131,13 @@ public: /** @short The next item in this linked list */ bsdPortsIndexItem *next; - QStringList fields; + TQStringList fields; enum {NAME=0, PATH, PREFIX, COMMENT, DESC_PATH, MAINT, CATS, BDEPS, RDEPS}; - QString bin_filename; - QString bin_filename_base; - QString port_dirname; + TQString bin_filename; + TQString bin_filename_base; + TQString port_dirname; /** * @short Given the path to an INDEX file process each port in it. @@ -145,7 +145,7 @@ public: * binaries should be true if the file is an index for packages, false for ports. * dname is the base directory. */ - static void processFile(fbsdInterface *parent, const QString &fname, bool binaries, const QString &dname); + static void processFile(fbsdInterface *parent, const TQString &fname, bool binaries, const TQString &dname); private: unsigned int name_hash; -- cgit v1.2.1