summaryrefslogtreecommitdiffstats
path: root/kdesu
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdesu
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesu')
-rw-r--r--kdesu/client.cpp16
-rw-r--r--kdesu/client.h2
-rw-r--r--kdesu/kcookie.cpp2
-rw-r--r--kdesu/kdesu_pty.cpp2
-rw-r--r--kdesu/process.cpp10
-rw-r--r--kdesu/process.h2
-rw-r--r--kdesu/ssh.cpp4
-rw-r--r--kdesu/stub.cpp2
8 files changed, 20 insertions, 20 deletions
diff --git a/kdesu/client.cpp b/kdesu/client.cpp
index 5261886fc..30d6cf3e3 100644
--- a/kdesu/client.cpp
+++ b/kdesu/client.cpp
@@ -59,7 +59,7 @@ KDEsuClient::KDEsuClient()
}
// strip the screen number from the display
- display.replace(TQRegExp("\\.[0-9]+$"), "");
+ display.tqreplace(TQRegExp("\\.[0-9]+$"), "");
#else
TQCString display("QWS");
#endif
@@ -169,13 +169,13 @@ TQCString KDEsuClient::escape(const TQCString &str)
{
TQCString copy = str;
int n = 0;
- while ((n = copy.find("\\", n)) != -1)
+ while ((n = copy.tqfind("\\", n)) != -1)
{
copy.insert(n, '\\');
n += 2;
}
n = 0;
- while ((n = copy.find("\"", n)) != -1)
+ while ((n = copy.tqfind("\"", n)) != -1)
{
copy.insert(n, '\\');
n += 2;
@@ -313,7 +313,7 @@ TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group)
// kdDebug(900) << "Found a matching entry: " << reply << endl;
while (1)
{
- pos = reply.find( '\007', index );
+ pos = reply.tqfind( '\007', index );
if( pos == -1 )
{
if( index == 0 )
@@ -332,7 +332,7 @@ TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group)
return list;
}
-bool KDEsuClient::findGroup(const TQCString &group)
+bool KDEsuClient::tqfindGroup(const TQCString &group)
{
TQCString cmd = "CHKG ";
cmd += escape(group);
@@ -385,7 +385,7 @@ int KDEsuClient::stopServer()
return command("STOP\n");
}
-static TQString findDaemon()
+static TQString tqfindDaemon()
{
TQString daemon = locate("bin", "kdesud");
if (daemon.isEmpty()) // if not in KDEDIRS, rely on PATH
@@ -401,7 +401,7 @@ static TQString findDaemon()
bool KDEsuClient::isServerSGID()
{
if (d->daemon.isEmpty())
- d->daemon = findDaemon();
+ d->daemon = tqfindDaemon();
if (d->daemon.isEmpty())
return false;
@@ -417,7 +417,7 @@ bool KDEsuClient::isServerSGID()
int KDEsuClient::startServer()
{
if (d->daemon.isEmpty())
- d->daemon = findDaemon();
+ d->daemon = tqfindDaemon();
if (d->daemon.isEmpty())
return -1;
diff --git a/kdesu/client.h b/kdesu/client.h
index c1df06ff1..a75e56331 100644
--- a/kdesu/client.h
+++ b/kdesu/client.h
@@ -134,7 +134,7 @@ public:
* @param group the group key
* @return true if the group is found
*/
- bool findGroup(const TQCString &group);
+ bool tqfindGroup(const TQCString &group);
/**
* Delete a persistent variable.
diff --git a/kdesu/kcookie.cpp b/kdesu/kcookie.cpp
index f60ec7314..60ddcfe3e 100644
--- a/kdesu/kcookie.cpp
+++ b/kdesu/kcookie.cpp
@@ -54,7 +54,7 @@ QCStringList KCookie::split(const TQCString &line, char ch)
QCStringList result;
int i=0, pos;
- while ((pos = line.find(ch, i)) != -1)
+ while ((pos = line.tqfind(ch, i)) != -1)
{
result += line.mid(i, pos-i);
i = pos+1;
diff --git a/kdesu/kdesu_pty.cpp b/kdesu/kdesu_pty.cpp
index 8f48f0b88..3ab39e4f7 100644
--- a/kdesu/kdesu_pty.cpp
+++ b/kdesu/kdesu_pty.cpp
@@ -5,7 +5,7 @@
* This file is part of the KDE project, module kdesu.
* Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
*
- * This file contains code from TEShell.C of the KDE konsole.
+ * This file tqcontains code from TEShell.C of the KDE konsole.
* Copyright (c) 1997,1998 by Lars Doelle <lars.doelle@on-line.de>
*
* This is free software; you can use this library under the GNU Library
diff --git a/kdesu/process.cpp b/kdesu/process.cpp
index 06558ce04..9f23f36fd 100644
--- a/kdesu/process.cpp
+++ b/kdesu/process.cpp
@@ -5,7 +5,7 @@
* This file is part of the KDE project, module kdesu.
* Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
*
- * This file contains code from TEShell.C of the KDE konsole.
+ * This file tqcontains code from TEShell.C of the KDE konsole.
* Copyright (c) 1997,1998 by Lars Doelle <lars.doelle@on-line.de>
*
* This is free software; you can use this library under the GNU Library
@@ -179,7 +179,7 @@ TQCString PtyProcess::readLine(bool block)
if (!m_Inbuf.isEmpty())
{
- pos = m_Inbuf.find('\n');
+ pos = m_Inbuf.tqfind('\n');
if (pos == -1)
{
ret = m_Inbuf;
@@ -228,7 +228,7 @@ TQCString PtyProcess::readLine(bool block)
buf[nbytes] = '\000';
m_Inbuf += buf;
- pos = m_Inbuf.find('\n');
+ pos = m_Inbuf.tqfind('\n');
if (pos == -1)
{
ret = m_Inbuf;
@@ -371,7 +371,7 @@ int PtyProcess::exec(const TQCString &command, const QCStringList &args)
// From now on, terminal output goes through the tty.
TQCString path;
- if (command.contains('/'))
+ if (command.tqcontains('/'))
path = command;
else
{
@@ -513,7 +513,7 @@ int PtyProcess::waitForChild()
if (!m_Exit.isEmpty())
{
// match exit string only at line starts
- int pos = output.find(m_Exit);
+ int pos = output.tqfind(m_Exit);
if ((pos >= 0) && ((pos == 0 && lineStart) || (output.at (pos - 1) == '\n')))
{
kill(m_Pid, SIGTERM);
diff --git a/kdesu/process.h b/kdesu/process.h
index c45132a9c..536cb1f4a 100644
--- a/kdesu/process.h
+++ b/kdesu/process.h
@@ -159,7 +159,7 @@ public: /* static */
** (which may be zero).
** If child @p has not exited, return -2.
*/
- enum checkPidStatus { Error=-1, NotExited=-2, Killed=-3 } ;
+ enum checkPidtqStatus { Error=-1, NotExited=-2, Killed=-3 } ;
static int checkPidExited(pid_t pid);
diff --git a/kdesu/ssh.cpp b/kdesu/ssh.cpp
index d39634ac5..03051b826 100644
--- a/kdesu/ssh.cpp
+++ b/kdesu/ssh.cpp
@@ -156,12 +156,12 @@ TQCString SshProcess::dcopForward()
if (srv.isEmpty())
return result;
- int i = srv.find('/');
+ int i = srv.tqfind('/');
if (i == -1)
return result;
if (srv.left(i) != "tcp")
return result;
- int j = srv.find(':', ++i);
+ int j = srv.tqfind(':', ++i);
if (j == -1)
return result;
TQCString host = srv.mid(i, j-i);
diff --git a/kdesu/stub.cpp b/kdesu/stub.cpp
index 2af171d72..c7f39c4a8 100644
--- a/kdesu/stub.cpp
+++ b/kdesu/stub.cpp
@@ -145,7 +145,7 @@ int StubProcess::ConverseStub(int check)
it != env.end();
++it )
{
- if( (*it).find( "DESKTOP_STARTUP_ID=" ) == 0 )
+ if( (*it).tqfind( "DESKTOP_STARTUP_ID=" ) == 0 )
tmp = (*it).mid( strlen( "DESKTOP_STARTUP_ID=" ));
}
if( tmp.isEmpty())