summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-11-24 17:44:20 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2013-11-24 17:44:20 -0600
commita655766d43ecbaa38ecbe82ae46a29e7eef55e8c (patch)
tree9eea86635c0ac3a5edb56b5d38b0236818f3dde3
parent58852c67b5185930b7a82480c46eb25f7416048c (diff)
downloadtdelibs-a655766d43ecbaa38ecbe82ae46a29e7eef55e8c.tar.gz
tdelibs-a655766d43ecbaa38ecbe82ae46a29e7eef55e8c.zip
Rename KDEsu->TDEsu to provide consistency with previous renamings.
This relates to bug report 1707.
-rw-r--r--tdeio/tdeio/sessiondata.cpp4
-rw-r--r--tdeio/tdeio/slavebase.cpp2
-rw-r--r--tdesu/client.cpp50
-rw-r--r--tdesu/client.h10
-rw-r--r--tdesu/libtdesu.nmcheck2
5 files changed, 34 insertions, 34 deletions
diff --git a/tdeio/tdeio/sessiondata.cpp b/tdeio/tdeio/sessiondata.cpp
index 4e4dd14ac..9c6b33b0a 100644
--- a/tdeio/tdeio/sessiondata.cpp
+++ b/tdeio/tdeio/sessiondata.cpp
@@ -82,14 +82,14 @@ public:
private:
#ifdef Q_OS_UNIX
- KDEsuClient * m_tdesuClient;
+ TDEsuClient * m_tdesuClient;
#endif
};
SessionData::AuthDataList::AuthDataList()
{
#ifdef Q_OS_UNIX
- m_tdesuClient = new KDEsuClient;
+ m_tdesuClient = new TDEsuClient;
#endif
setAutoDelete(true);
}
diff --git a/tdeio/tdeio/slavebase.cpp b/tdeio/tdeio/slavebase.cpp
index cfc67fd04..cb071fc05 100644
--- a/tdeio/tdeio/slavebase.cpp
+++ b/tdeio/tdeio/slavebase.cpp
@@ -1182,7 +1182,7 @@ bool SlaveBase::pingCacheDaemon() const
{
#ifdef Q_OS_UNIX
// TODO: Ping kded / kpasswdserver
- KDEsuClient client;
+ TDEsuClient client;
int success = client.ping();
if( success == -1 )
{
diff --git a/tdesu/client.cpp b/tdesu/client.cpp
index 91e922250..c82137cae 100644
--- a/tdesu/client.cpp
+++ b/tdesu/client.cpp
@@ -37,7 +37,7 @@
#include "client.h"
-class KDEsuClient::KDEsuClientPrivate {
+class TDEsuClient::TDEsuClientPrivate {
public:
TQString daemon;
};
@@ -47,7 +47,7 @@ public:
+ strlen ((ptr)->sun_path))
#endif
-KDEsuClient::KDEsuClient()
+TDEsuClient::TDEsuClient()
{
sockfd = -1;
#ifdef Q_WS_X11
@@ -65,19 +65,19 @@ KDEsuClient::KDEsuClient()
#endif
sock = TQFile::encodeName(locateLocal("socket", TQString("tdesud_%1").arg(display.data())));
- d = new KDEsuClientPrivate;
+ d = new TDEsuClientPrivate;
connect();
}
-KDEsuClient::~KDEsuClient()
+TDEsuClient::~TDEsuClient()
{
delete d;
if (sockfd >= 0)
close(sockfd);
}
-int KDEsuClient::connect()
+int TDEsuClient::connect()
{
if (sockfd >= 0)
close(sockfd);
@@ -165,7 +165,7 @@ int KDEsuClient::connect()
return 0;
}
-TQCString KDEsuClient::escape(const TQCString &str)
+TQCString TDEsuClient::escape(const TQCString &str)
{
TQCString copy = str;
int n = 0;
@@ -185,7 +185,7 @@ TQCString KDEsuClient::escape(const TQCString &str)
return copy;
}
-int KDEsuClient::command(const TQCString &cmd, TQCString *result)
+int TDEsuClient::command(const TQCString &cmd, TQCString *result)
{
if (sockfd < 0)
return -1;
@@ -211,7 +211,7 @@ int KDEsuClient::command(const TQCString &cmd, TQCString *result)
return 0;
}
-int KDEsuClient::setPass(const char *pass, int timeout)
+int TDEsuClient::setPass(const char *pass, int timeout)
{
TQCString cmd = "PASS ";
cmd += escape(pass);
@@ -221,7 +221,7 @@ int KDEsuClient::setPass(const char *pass, int timeout)
return command(cmd);
}
-int KDEsuClient::exec(const TQCString &prog, const TQCString &user, const TQCString &options, const QCStringList &env)
+int TDEsuClient::exec(const TQCString &prog, const TQCString &user, const TQCString &options, const QCStringList &env)
{
TQCString cmd;
cmd = "EXEC ";
@@ -243,7 +243,7 @@ int KDEsuClient::exec(const TQCString &prog, const TQCString &user, const TQCStr
return command(cmd);
}
-int KDEsuClient::setHost(const TQCString &host)
+int TDEsuClient::setHost(const TQCString &host)
{
TQCString cmd = "HOST ";
cmd += escape(host);
@@ -251,21 +251,21 @@ int KDEsuClient::setHost(const TQCString &host)
return command(cmd);
}
-int KDEsuClient::setPriority(int prio)
+int TDEsuClient::setPriority(int prio)
{
TQCString cmd;
cmd.sprintf("PRIO %d\n", prio);
return command(cmd);
}
-int KDEsuClient::setScheduler(int sched)
+int TDEsuClient::setScheduler(int sched)
{
TQCString cmd;
cmd.sprintf("SCHD %d\n", sched);
return command(cmd);
}
-int KDEsuClient::delCommand(const TQCString &key, const TQCString &user)
+int TDEsuClient::delCommand(const TQCString &key, const TQCString &user)
{
TQCString cmd = "DEL ";
cmd += escape(key);
@@ -274,7 +274,7 @@ int KDEsuClient::delCommand(const TQCString &key, const TQCString &user)
cmd += "\n";
return command(cmd);
}
-int KDEsuClient::setVar(const TQCString &key, const TQCString &value, int timeout,
+int TDEsuClient::setVar(const TQCString &key, const TQCString &value, int timeout,
const TQCString &group)
{
TQCString cmd = "SET ";
@@ -289,7 +289,7 @@ int KDEsuClient::setVar(const TQCString &key, const TQCString &value, int timeou
return command(cmd);
}
-TQCString KDEsuClient::getVar(const TQCString &key)
+TQCString TDEsuClient::getVar(const TQCString &key)
{
TQCString cmd = "GET ";
cmd += escape(key);
@@ -299,7 +299,7 @@ TQCString KDEsuClient::getVar(const TQCString &key)
return reply;
}
-TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group)
+TQValueList<TQCString> TDEsuClient::getKeys(const TQCString &group)
{
TQCString cmd = "GETK ";
cmd += escape(group);
@@ -332,7 +332,7 @@ TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group)
return list;
}
-bool KDEsuClient::findGroup(const TQCString &group)
+bool TDEsuClient::findGroup(const TQCString &group)
{
TQCString cmd = "CHKG ";
cmd += escape(group);
@@ -342,7 +342,7 @@ bool KDEsuClient::findGroup(const TQCString &group)
return true;
}
-int KDEsuClient::delVar(const TQCString &key)
+int TDEsuClient::delVar(const TQCString &key)
{
TQCString cmd = "DELV ";
cmd += escape(key);
@@ -350,7 +350,7 @@ int KDEsuClient::delVar(const TQCString &key)
return command(cmd);
}
-int KDEsuClient::delGroup(const TQCString &group)
+int TDEsuClient::delGroup(const TQCString &group)
{
TQCString cmd = "DELG ";
cmd += escape(group);
@@ -358,7 +358,7 @@ int KDEsuClient::delGroup(const TQCString &group)
return command(cmd);
}
-int KDEsuClient::delVars(const TQCString &special_key)
+int TDEsuClient::delVars(const TQCString &special_key)
{
TQCString cmd = "DELS ";
cmd += escape(special_key);
@@ -366,12 +366,12 @@ int KDEsuClient::delVars(const TQCString &special_key)
return command(cmd);
}
-int KDEsuClient::ping()
+int TDEsuClient::ping()
{
return command("PING\n");
}
-int KDEsuClient::exitCode()
+int TDEsuClient::exitCode()
{
TQCString result;
if (command("EXIT\n", &result) != 0)
@@ -380,7 +380,7 @@ int KDEsuClient::exitCode()
return result.toLong();
}
-int KDEsuClient::stopServer()
+int TDEsuClient::stopServer()
{
return command("STOP\n");
}
@@ -398,7 +398,7 @@ static TQString findDaemon()
return daemon;
}
-bool KDEsuClient::isServerSGID()
+bool TDEsuClient::isServerSGID()
{
if (d->daemon.isEmpty())
d->daemon = findDaemon();
@@ -414,7 +414,7 @@ bool KDEsuClient::isServerSGID()
return (sbuf.st_mode & S_ISGID);
}
-int KDEsuClient::startServer()
+int TDEsuClient::startServer()
{
if (d->daemon.isEmpty())
d->daemon = findDaemon();
diff --git a/tdesu/client.h b/tdesu/client.h
index 750dd9264..7f7a7aa9f 100644
--- a/tdesu/client.h
+++ b/tdesu/client.h
@@ -47,10 +47,10 @@ typedef TQValueList<TQCString> QCStringList;
* See setVar, delVar, delGroup.
*/
-class TDESU_EXPORT KDEsuClient {
+class TDESU_EXPORT TDEsuClient {
public:
- KDEsuClient();
- ~KDEsuClient();
+ TDEsuClient();
+ ~TDEsuClient();
/**
* Lets tdesud execute a command. If the daemon does not have a password
@@ -198,8 +198,8 @@ private:
int command(const TQCString &cmd, TQCString *result=0L);
TQCString escape(const TQCString &str);
- class KDEsuClientPrivate;
- KDEsuClientPrivate *d;
+ class TDEsuClientPrivate;
+ TDEsuClientPrivate *d;
};
#endif //Q_OS_UNIX
diff --git a/tdesu/libtdesu.nmcheck b/tdesu/libtdesu.nmcheck
index 8e4827481..292284231 100644
--- a/tdesu/libtdesu.nmcheck
+++ b/tdesu/libtdesu.nmcheck
@@ -7,4 +7,4 @@ SuProcess::*
StubProcess::*
PtyProcess::*
KCookie::*
-KDEsuClient::*
+TDEsuClient::*