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/packageInfo.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'kpackage/packageInfo.h') diff --git a/kpackage/packageInfo.h b/kpackage/packageInfo.h index be0dbb3..1ce24a3 100644 --- a/kpackage/packageInfo.h +++ b/kpackage/packageInfo.h @@ -45,12 +45,12 @@ #define PACKAGEINFO_H #include "../config.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include class pkgInterface; class KpTreeListItem; @@ -61,11 +61,11 @@ class KpTreeList; class packageInfo { public: - packageInfo(QMap _info, pkgInterface *type); + packageInfo(TQMap _info, pkgInterface *type); // Constructor: create a packageInfo object using the property // dictionary from _info - packageInfo(QMap _info, const QString &_filename); + packageInfo(TQMap _info, const TQString &_filename); // Constructor: same as above, but also sets filename to _filename. // This is used in the case that the package info was obtained from // an uninstalled package. @@ -76,12 +76,12 @@ public: /** * Look ups the property `property' from the dictionary */ - QString getProperty(const QString &property); + TQString getProperty(const TQString &property); /** * Checks whether the property `property' is defined in the dictionary */ - bool hasProperty(const QString &property); + bool hasProperty(const TQString &property); void fixup(); // Initialize fields if missing @@ -94,9 +94,9 @@ public: // returns the treelist item object for this package or // NULL if the object hasn't been placed - void setFilename(const QString &f); + void setFilename(const TQString &f); - QString getUrl(); + TQString getUrl(); // return URL of package file bool isFileLocal(); @@ -108,22 +108,22 @@ public: bool isFetchable(); // True if package needs to be fetched - QString getFilename(); + TQString getFilename(); - QString fetchFilename(); + TQString fetchFilename(); // gets the filename, fetching package if necessary int newer(packageInfo *p); // if package p is newer - void pkgFileIns(const QString &fileName); + void pkgFileIns(const TQString &fileName); // Insert a package from a file into package tree - bool pkgInsert(QPtrList *pki, const QString &exp, bool installed, + bool pkgInsert(TQPtrList *pki, const TQString &exp, bool installed, bool infoPackage = FALSE); // insert packgeInfo either installed or not installed - QMap info; + TQMap info; // This stores the property dictionary of the package KpTreeListItem *item; @@ -133,7 +133,7 @@ public: pkgInterface *interface; // interface points to the class of the package (deb, rpm etc) - bool smerge( const QString &exp); + bool smerge( const TQString &exp); // merge with already existing NOLIST package info bool display(int treeType); @@ -146,14 +146,14 @@ public: bool updated; private: - int getDigElement(const QString &s, int *pos); - QString getNdigElement(const QString &s, int *pos); + int getDigElement(const TQString &s, int *pos); + TQString getNdigElement(const TQString &s, int *pos); // break up version string - int pnewer(const QString &s, const QString &sp); + int pnewer(const TQString &s, const TQString &sp); // compare parts of a version string - QString url; + TQString url; // This stores the filename of the package the info was obtained from. // If it is empty then the info was obtained from an installed package. -- cgit v1.2.1