summaryrefslogtreecommitdiffstats
path: root/kpackage/packageInfo.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kpackage/packageInfo.h
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/packageInfo.h')
-rw-r--r--kpackage/packageInfo.h44
1 files changed, 22 insertions, 22 deletions
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 <qmap.h>
-#include <qdict.h>
-#include <qstring.h>
-#include <qpixmap.h>
-#include <qptrlist.h>
-#include <qlistview.h>
+#include <tqmap.h>
+#include <tqdict.h>
+#include <tqstring.h>
+#include <tqpixmap.h>
+#include <tqptrlist.h>
+#include <tqlistview.h>
class pkgInterface;
class KpTreeListItem;
@@ -61,11 +61,11 @@ class KpTreeList;
class packageInfo
{
public:
- packageInfo(QMap<QString, QString> _info, pkgInterface *type);
+ packageInfo(TQMap<TQString, TQString> _info, pkgInterface *type);
// Constructor: create a packageInfo object using the property
// dictionary from _info
- packageInfo(QMap<QString, QString> _info, const QString &_filename);
+ packageInfo(TQMap<TQString, TQString> _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<packageInfo> *pki, const QString &exp, bool installed,
+ bool pkgInsert(TQPtrList<packageInfo> *pki, const TQString &exp, bool installed,
bool infoPackage = FALSE);
// insert packgeInfo either installed or not installed
- QMap<QString, QString> info;
+ TQMap<TQString, TQString> 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.