summaryrefslogtreecommitdiffstats
path: root/kpackage/fbsdInterface.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/fbsdInterface.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/fbsdInterface.h')
-rw-r--r--kpackage/fbsdInterface.h52
1 files changed, 26 insertions, 26 deletions
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 <qptrlist.h>
-#include <qmap.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
#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<packageInfo> *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<packageInfo> *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<packageInfo> *pki);
- void listPackages(QPtrList<packageInfo> *pki);
+ void listInstalledPackages(TQPtrList<packageInfo> *pki);
+ void listPackages(TQPtrList<packageInfo> *pki);
- QDict <bsdPortsIndexItem> ports;
+ TQDict <bsdPortsIndexItem> ports;
public slots:
void setLocation();
void setAvail(LcacheObj *);
private:
/**
- * @short Add the name and version identifiers to a QMap<QString, QString>.
+ * @short Add the name and version identifiers to a TQMap<TQString, TQString>.
*
* name is parsed in to name and version and these are added to
* d. Errors are handled.
*/
- void addNV(QMap<QString, QString> &d, const QString &name);
- int parseItem(QStringList::Iterator &it, QString &name, QString &value, QString separator, QStringList list );
- int pathInfo(QMap<QString, QString> &a);
+ void addNV(TQMap<TQString, TQString> &d, const TQString &name);
+ int parseItem(TQStringList::Iterator &it, TQString &name, TQString &value, TQString separator, TQStringList list );
+ int pathInfo(TQMap<TQString, TQString> &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;