summaryrefslogtreecommitdiffstats
path: root/kpackage/slackInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpackage/slackInterface.cpp')
-rw-r--r--kpackage/slackInterface.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kpackage/slackInterface.cpp b/kpackage/slackInterface.cpp
index 6e6d993..49e7c64 100644
--- a/kpackage/slackInterface.cpp
+++ b/kpackage/slackInterface.cpp
@@ -148,7 +148,7 @@ bool SLACK::isType(char *buf, const TQString &)
bool SLACK::parseName(const TQString &name, TQString *n, TQString *v)
{
int s1;
- s1 = name.findRev('.');
+ s1 = name.tqfindRev('.');
if (s1 > 0) {
*n = name.left(s1);
v = new TQString("");
@@ -206,11 +206,11 @@ void SLACK::listInstalledPackages(TQPtrList<packageInfo> *pki)
TQDir d(DIR);
if (d.exists()) {
TQString sline = i18n("Querying SLACK package list: ");
- kpackage->setStatus(sline);
+ kpackage->settqStatus(sline);
- const QFileInfoList *list = d.entryInfoList();
+ const TQFileInfoList *list = d.entryInfoList();
int count = list->count();
- QFileInfoListIterator it( *list ); // create list iterator
+ TQFileInfoListIterator it( *list ); // create list iterator
TQFileInfo *fi; // pointer for traversing
kpackage->setPercent(0);
@@ -224,7 +224,7 @@ void SLACK::listInstalledPackages(TQPtrList<packageInfo> *pki)
fn = dr + fi->fileName();
file = fopen(TQFile::encodeName(fn),"r");
if (file) {
- vb = TQString::null;
+ vb = TQString();
while (fgets(linebuf,sizeof(linebuf),file)) {
if (strcmp(linebuf,FILELIST)) {
vb += linebuf;
@@ -260,7 +260,7 @@ void SLACK::listPackList(TQPtrList<packageInfo> *pki, const TQString &s, cacheO
TQString sline = i18n("Querying SLACK package list: ");
sline += cp->location;
- kpackage->setStatus(sline);
+ kpackage->settqStatus(sline);
kpackage->setPercent(0);
np = 0;
@@ -318,7 +318,7 @@ packageInfo *SLACK::getPackageInfo(char mode, const TQString &name, const TQStri
fn = DIR + name;
file = fopen(TQFile::encodeName(fn),"r");
if (file) {
- vb = TQString::null;
+ vb = TQString();
while (fgets(linebuf,sizeof(linebuf),file)) {
if (strcmp(linebuf,FILELIST)) {
vb += linebuf;
@@ -432,15 +432,15 @@ packageInfo *SLACK::collectInfo(const char *_inp, int insState)
} else if (!strcmp("package location",str)) {
TQString sl = xstr;
if (insState != INSTALLED) {
- int sls = sl.findRev("/");
+ int sls = sl.tqfindRev("/");
if (sls >= 0) {
TQRegExp num("[0-9][0-9]*");
- int slf = sl.find(num,sls);
+ int slf = sl.tqfind(num,sls);
if (slf >= 0) {
sls++;
TQString gt = sl.mid(sls,slf-sls);
- if (trl->find(gt)) {
- gt = *trl->find(gt);
+ if (trl->tqfind(gt)) {
+ gt = *trl->tqfind(gt);
}
a.insert("group",gt);
}
@@ -619,11 +619,11 @@ TQStringList SLACK::FindFile(const TQString &name, bool)
TQDir d(DIR);
if (d.exists()) {
TQString sline = i18n("Querying SLACK package list: ");
- kpackage->setStatus(sline);
+ kpackage->settqStatus(sline);
- const QFileInfoList *list = d.entryInfoList();
+ const TQFileInfoList *list = d.entryInfoList();
int count = list->count();
- QFileInfoListIterator it( *list ); // create list iterator
+ TQFileInfoListIterator it( *list ); // create list iterator
TQFileInfo *fi; // pointer for traversing
kpackage->setPercent(0);
@@ -643,7 +643,7 @@ TQStringList SLACK::FindFile(const TQString &name, bool)
}
}
while (fgets(linebuf,sizeof(linebuf),file)) {
- if (TQString::fromLocal8Bit(linebuf).find(name) != -1) {
+ if (TQString(TQString::fromLocal8Bit(linebuf)).tqfind(name) != -1) {
st = "/";
st += linebuf;
st.truncate(st.length() -1);