summaryrefslogtreecommitdiffstats
path: root/kpackage/kissInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpackage/kissInterface.cpp')
-rw-r--r--kpackage/kissInterface.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kpackage/kissInterface.cpp b/kpackage/kissInterface.cpp
index a568a18..29de45f 100644
--- a/kpackage/kissInterface.cpp
+++ b/kpackage/kissInterface.cpp
@@ -34,8 +34,8 @@
#include <setjmp.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <kurl.h>
#include <kglobal.h>
@@ -74,8 +74,8 @@ KISS::KISS():pkgInterface()
"KISS", "*.installer",
i18n("Location of Folders Containing KISS Packages"));
- connect(locatedialog,SIGNAL(returnVal(LcacheObj *)),
- this,SLOT(setAvail(LcacheObj *)));
+ connect(locatedialog,TQT_SIGNAL(returnVal(LcacheObj *)),
+ this,TQT_SLOT(setAvail(LcacheObj *)));
locatedialog->apply_slot();
queryMsg = i18n("Querying KISS package list: ");
@@ -99,10 +99,10 @@ KISS::~KISS()
//////////////////////////////////////////////////////////////////////////////
// check if kiss file
-bool KISS::isType(char *buf, const QString &)
+bool KISS::isType(char *buf, const TQString &)
{
if (hasProgram) {
- QString tmp = buf;
+ TQString tmp = buf;
if (tmp.find("perl",0,false) >= 0)
return true;
else
@@ -112,7 +112,7 @@ bool KISS::isType(char *buf, const QString &)
}
}
-bool KISS::parseName(const QString& name, QString *n, QString *v)
+bool KISS::parseName(const TQString& name, TQString *n, TQString *v)
{
int d1, d2, s1;
@@ -131,12 +131,12 @@ bool KISS::parseName(const QString& name, QString *n, QString *v)
return FALSE;
}
-void KISS::listInstalledPackages(QPtrList<packageInfo> *pki)
+void KISS::listInstalledPackages(TQPtrList<packageInfo> *pki)
{
- QString vb;
+ TQString vb;
packageInfo *p;
- QString sline = i18n("Querying KISS package list: ");
+ TQString sline = i18n("Querying KISS package list: ");
reader.setup("kiss");
*reader.proc << "-qq";
@@ -167,10 +167,10 @@ void KISS::listInstalledPackages(QPtrList<packageInfo> *pki)
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// mode: i = query installed u = query uninstalled
-packageInfo *KISS::getPackageInfo(char mode, const QString &name, const QString &)
+packageInfo *KISS::getPackageInfo(char mode, const TQString &name, const TQString &)
{
packageInfo *pki = 0;
- QString vb,search;
+ TQString vb,search;
switch(mode)
{
@@ -193,8 +193,8 @@ packageInfo *KISS::getPackageInfo(char mode, const QString &name, const QString
if (reader.start(0,TRUE)) {
pki = collectInfo(reader.buf.ascii());
- QFileInfo fi(name);
- QString s;
+ TQFileInfo fi(name);
+ TQString s;
s.setNum(fi.size());
pki->info.insert("file-size", s);
}
@@ -208,10 +208,10 @@ packageInfo *KISS::getPackageInfo(char mode, const QString &name, const QString
//////////////////////////////////////////////////////////////////////////////
packageInfo *KISS::collectInfo(const char *_inp)
{
- QMap<QString, QString> a;
+ TQMap<TQString, TQString> a;
char *str, *xstr;
- QString qstr;
+ TQString qstr;
char *inp = qstrdup(_inp);
str = strtok(inp,"\n");
@@ -250,7 +250,7 @@ packageInfo *KISS::collectInfo(const char *_inp)
} else if (!strcmp("size",str)) {
a.insert("file-size", xstr);
} else if (!strcmp("installed-size",str)) {
- QString str = xstr;
+ TQString str = xstr;
a.insert("size", str + "000");
} else {
a.insert(str, xstr);
@@ -269,7 +269,7 @@ packageInfo *KISS::collectInfo(const char *_inp)
//////////////////////////////////////////////////////////////////////////////
-QStringList KISS::getChangeLog(packageInfo *) {
+TQStringList KISS::getChangeLog(packageInfo *) {
return 0;
}
@@ -283,10 +283,10 @@ bool KISS::changeTab(packageInfo *) {
}
//////////////////////////////////////////////////////////////////////////////
-QStringList KISS::getFileList(packageInfo *p)
+TQStringList KISS::getFileList(packageInfo *p)
{
- QString vb, fn;
- QString name;
+ TQString vb, fn;
+ TQString name;
char mode;
fn = p->getFilename();
@@ -295,7 +295,7 @@ QStringList KISS::getFileList(packageInfo *p)
else
mode = 'i';
- QStringList filelist;
+ TQStringList filelist;
switch(mode)
{
@@ -343,9 +343,9 @@ QStringList KISS::getFileList(packageInfo *p)
// Call the script to install packages setting parameters
// to kiss dependent on flags
//////////////////////////////////////////////////////////////////////////////
-QString KISS::uninstall(int uninstallFlags, QPtrList<packageInfo> *plist, bool &test)
+TQString KISS::uninstall(int uninstallFlags, TQPtrList<packageInfo> *plist, bool &test)
{
- QString packs;
+ TQString packs;
packageInfo *pk;
for (pk = plist->first(); pk != 0; pk = plist->next()) {
@@ -355,7 +355,7 @@ QString KISS::uninstall(int uninstallFlags, QPtrList<packageInfo> *plist, bool &
return 0;
}
-QString KISS::doUninstall(int, const QString &packs, bool &)
+TQString KISS::doUninstall(int, const TQString &packs, bool &)
{
return "kiss -d " + packs;
}
@@ -364,12 +364,12 @@ QString KISS::doUninstall(int, const QString &packs, bool &)
// Call the script to install packages setting parameters
// to kiss dependent on flags, returning whether everyting worked
//////////////////////////////////////////////////////////////////////////////
-QString KISS::install(int installFlags, QPtrList<packageInfo> *plist, bool &test)
+TQString KISS::install(int installFlags, TQPtrList<packageInfo> *plist, bool &test)
{
packageInfo *pk;
int i = 0;
for (pk = plist->first(); pk != 0; pk = plist->next()) {
- QString fname = pk->fetchFilename();
+ TQString fname = pk->fetchFilename();
if (!fname.isEmpty()) {
doInstall(installFlags, fname, test);
i++;
@@ -378,22 +378,22 @@ QString KISS::install(int installFlags, QPtrList<packageInfo> *plist, bool &test
return 0;
}
-QString KISS::doInstall(int, const QString &packs, bool &)
+TQString KISS::doInstall(int, const TQString &packs, bool &)
{
return "perl " + packs;
}
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
-QStringList KISS::FindFile(const QString &name, bool)
+TQStringList KISS::FindFile(const TQString &name, bool)
{
- QString s = "kiss -p ";
+ TQString s = "kiss -p ";
s += name;
- QStringList filelist;
+ TQStringList filelist;
// filelist = kpty->run(s);
- // for ( QStringList::Iterator it = filelist.begin(); it != filelist.end(); ++it ) {
+ // for ( TQStringList::Iterator it = filelist.begin(); it != filelist.end(); ++it ) {
// *it = *it + '\t' + name ;
// }