summaryrefslogtreecommitdiffstats
path: root/kpackage/pkgInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpackage/pkgInterface.h')
-rw-r--r--kpackage/pkgInterface.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/kpackage/pkgInterface.h b/kpackage/pkgInterface.h
index 3094af8..839ada2 100644
--- a/kpackage/pkgInterface.h
+++ b/kpackage/pkgInterface.h
@@ -29,9 +29,9 @@
#define PKG_IFACE_H
#include "../config.h"
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <kglobal.h>
#include <kstandarddirs.h>
@@ -53,15 +53,15 @@ class KActionCollection;
class param
{
public:
- param(const QString &nameP, bool initP, bool invertP, const QString &flagP);
- param(const QString &nameP, bool initP, bool invertP, const QString &flagP, const QString &flagAP);
+ param(const TQString &nameP, bool initP, bool invertP, const TQString &flagP);
+ param(const TQString &nameP, bool initP, bool invertP, const TQString &flagP, const TQString &flagAP);
~param();
- QString name; // Name of flag
+ TQString name; // Name of flag
bool init; // Initial value
bool invert; // Whether it needs to be inverted
- QString flag; // text flag on command
- QString flagA; // text flag on command
+ TQString flag; // text flag on command
+ TQString flagA; // text flag on command
};
//////////////////////////////////////////////////////////////////////////////
@@ -74,33 +74,33 @@ public:
pkgInterface();
virtual ~pkgInterface();
- virtual bool isType(char *buf, const QString &fname) = 0;
+ virtual bool isType(char *buf, const TQString &fname) = 0;
// looks at start of file to check that package is correct type
virtual void makeMenu(KActionCollection* act);
virtual void setMenu(KActionCollection* act, bool enable);
- bool ifExe(QString exe);
+ bool ifExe(TQString exe);
// Check if this executable exists
- virtual packageInfo *getPackageInfo(char mode, const QString &name,
- const QString &version) = 0;
+ virtual packageInfo *getPackageInfo(char mode, const TQString &name,
+ const TQString &version) = 0;
// get info on installed or uninstalled package. version is only set if
// mode is 'i' (ie, if the package is already installed).
- virtual QStringList getFileList(packageInfo *p) = 0;
+ virtual TQStringList getFileList(packageInfo *p) = 0;
// get list of files in the package
- virtual QStringList depends(const QString &name, int src);
+ virtual TQStringList depends(const TQString &name, int src);
// check dependencies for package
- virtual QStringList verify(packageInfo *p, const QStringList &files);
+ virtual TQStringList verify(packageInfo *p, const TQStringList &files);
// check the installed files in a package
- virtual QStringList FindFile(const QString &name, bool seachAll=false) = 0;
+ virtual TQStringList FindFile(const TQString &name, bool seachAll=false) = 0;
// search for packages containg a file
- virtual QStringList getChangeLog(packageInfo *p) = 0;
+ virtual TQStringList getChangeLog(packageInfo *p) = 0;
// Get change log
virtual bool filesTab(packageInfo *p) = 0;
@@ -109,68 +109,68 @@ public:
virtual bool changeTab(packageInfo *p) = 0;
// If change log tab is to be enabled
- virtual bool parseName(const QString &name, QString *n, QString *v) = 0;
+ virtual bool parseName(const TQString &name, TQString *n, TQString *v) = 0;
// breakup file name into package name and version
- virtual void listPackages(QPtrList<packageInfo> *pki);
+ virtual void listPackages(TQPtrList<packageInfo> *pki);
// scan various locations for list of packages
- virtual void listInstalledPackages(QPtrList<packageInfo> *pki) = 0;
+ virtual void listInstalledPackages(TQPtrList<packageInfo> *pki) = 0;
// produce list of currently installed packages
- virtual QStringList listInstalls(const QStringList &packs, bool install, bool &cancel);
+ virtual TQStringList listInstalls(const TQStringList &packs, bool install, bool &cancel);
// Convert list of packages requested to install to list of all packages to install
virtual void smerge(packageInfo *p);
// merge in package info entry
- QString getDir(cacheObj *cp);
+ TQString getDir(cacheObj *cp);
// list directory local or remote
- void listDir(QPtrList<packageInfo> *pki, const QString &fname, const QString &dir, bool subdirs = FALSE);
+ void listDir(TQPtrList<packageInfo> *pki, const TQString &fname, const TQString &dir, bool subdirs = FALSE);
// list the packages in a directory
- packageInfo *collectDir(const QString &name, const QString &size, const QString &dir);
+ packageInfo *collectDir(const TQString &name, const TQString &size, const TQString &dir);
// build packageInfo object from directory entry
- QString getPackList(cacheObj *cp);
+ TQString getPackList(cacheObj *cp);
// get packages information file
- virtual QString provMap(const QString &p);
+ virtual TQString provMap(const TQString &p);
// convert from package depends to package
- QString setOptions(int flags, QPtrList<param> &params);
+ TQString setOptions(int flags, TQPtrList<param> &params);
// convert un/install flags to text
- virtual QString doUninstall(int uninstallFlags, const QString &packs, bool &test);
- virtual QString doInstall(int installFlags, const QString &packs, bool &test);
- virtual QString uninstall(int uninstallFlags, QPtrList<packageInfo> *p,
+ virtual TQString doUninstall(int uninstallFlags, const TQString &packs, bool &test);
+ virtual TQString doInstall(int installFlags, const TQString &packs, bool &test);
+ virtual TQString uninstall(int uninstallFlags, TQPtrList<packageInfo> *p,
bool &test);
- virtual QString uninstall(int uninstallFlags, packageInfo *p,
+ virtual TQString uninstall(int uninstallFlags, packageInfo *p,
bool &test);
- virtual QString install(int installFlags, QPtrList<packageInfo> *p,
+ virtual TQString install(int installFlags, TQPtrList<packageInfo> *p,
bool &test);
- virtual QString install(int installFlags, packageInfo *p,
+ virtual TQString install(int installFlags, packageInfo *p,
bool &test);
- virtual QStringList readApt();
- virtual void writeApt(const QStringList &list);
+ virtual TQStringList readApt();
+ virtual void writeApt(const TQStringList &list);
///////////// DATA ///////////////////////
pkgOptions *uninstallation, *installation;
- QString icon;
+ TQString icon;
// name icon file
- QString head;
+ TQString head;
// capitalized name of package type
- QString name;
+ TQString name;
// More descriptive name
- QPixmap pict, bad_pict, new_pict, updated_pict;
+ TQPixmap pict, bad_pict, new_pict, updated_pict;
// icons for package states
- QPixmap folder;
+ TQPixmap folder;
// icon for package group
- QPixmap markInst;
- QPixmap markUnInst;
+ TQPixmap markInst;
+ TQPixmap markUnInst;
// icon indicating mark for install/uninstall
Locations *locatedialog;
@@ -181,13 +181,13 @@ public:
bool dirOK;
// variables related to reading packages from directories
- QString packagePattern;
- QString queryMsg;
- QString typeID;
+ TQString packagePattern;
+ TQString queryMsg;
+ TQString typeID;
// Parameters for reading packages from directories
- QPtrList<param> paramsInst;
- QPtrList<param> paramsUninst;
+ TQPtrList<param> paramsInst;
+ TQPtrList<param> paramsUninst;
bool noFetch;
// kpackage doesn't fetch this type of package itself
@@ -195,13 +195,13 @@ public:
bool defaultHandle;
// This package type defaults to on
- QString errExe;
+ TQString errExe;
// The name of an executable that wasn't found
- QString procMsg;
+ TQString procMsg;
// for running processes
- QString DELMSG;
+ TQString DELMSG;
bool hasRemote;
// can access on remote host