diff options
author | Darrell Anderson <[email protected]> | 2013-11-24 17:47:01 -0600 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2013-11-24 17:47:01 -0600 |
commit | a8303672a3eb80e690eb9a044ca580d80141ae67 (patch) | |
tree | 9f78d057906c2c671738f604139c48df62b94283 /tdesu | |
parent | a615b2013ac87286aa4c9f8494f0db685ab530e1 (diff) | |
download | tdebase-a8303672a3eb80e690eb9a044ca580d80141ae67.tar.gz tdebase-a8303672a3eb80e690eb9a044ca580d80141ae67.zip |
Rename KDEsu->TDEsu to provide consistency with previous renamings.
This relates to bug report 1707.
Diffstat (limited to 'tdesu')
-rw-r--r-- | tdesu/tdesu/sudlg.cpp | 8 | ||||
-rw-r--r-- | tdesu/tdesu/sudlg.h | 6 | ||||
-rw-r--r-- | tdesu/tdesu/tdesu.cpp | 10 | ||||
-rw-r--r-- | tdesu/tdesud/tdesud.cpp | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/tdesu/tdesu/sudlg.cpp b/tdesu/tdesu/sudlg.cpp index 4ecf0cc1a..934930814 100644 --- a/tdesu/tdesu/sudlg.cpp +++ b/tdesu/tdesu/sudlg.cpp @@ -14,7 +14,7 @@ #include <tdesu/su.h> #include "sudlg.h" -KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton, int timeout) +TDEsuDialog::TDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton, int timeout) : KPasswordDialog(Password, enableKeep, (withIgnoreButton ? User1:NoDefault), icon) { TDEConfig* config = TDEGlobal::config(); @@ -63,11 +63,11 @@ KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,co } -KDEsuDialog::~KDEsuDialog() +TDEsuDialog::~TDEsuDialog() { } -bool KDEsuDialog::checkPassword(const char *password) +bool TDEsuDialog::checkPassword(const char *password) { SuProcess proc; proc.setUser(m_User); @@ -109,7 +109,7 @@ bool KDEsuDialog::checkPassword(const char *password) } } -void KDEsuDialog::slotUser1() +void TDEsuDialog::slotUser1() { done(AsUser); } diff --git a/tdesu/tdesu/sudlg.h b/tdesu/tdesu/sudlg.h index b72186603..32d466105 100644 --- a/tdesu/tdesu/sudlg.h +++ b/tdesu/tdesu/sudlg.h @@ -9,14 +9,14 @@ #include <kpassdlg.h> -class KDEsuDialog +class TDEsuDialog : public KPasswordDialog { Q_OBJECT public: - KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep, const TQString& icon , bool withIgnoreButton=false, int timeout=-1); - ~KDEsuDialog(); + TDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep, const TQString& icon , bool withIgnoreButton=false, int timeout=-1); + ~TDEsuDialog(); enum ResultCodes { AsUser = 10 }; diff --git a/tdesu/tdesu/tdesu.cpp b/tdesu/tdesu/tdesu.cpp index 47673e2b8..d75c0e83a 100644 --- a/tdesu/tdesu/tdesu.cpp +++ b/tdesu/tdesu/tdesu.cpp @@ -141,7 +141,7 @@ static int startApp() // Stop daemon and exit? if (args->isSet("s")) { - KDEsuClient client; + TDEsuClient client; if (client.ping() == -1) { kdError(1206) << "Daemon not running -- nothing to stop\n"; @@ -248,7 +248,7 @@ static int startApp() // Check for daemon and start if necessary bool just_started = false; bool have_daemon = true; - KDEsuClient client; + TDEsuClient client; if (!client.isServerSGID()) { kdWarning(1206) << "Daemon not safe (not sgid), not using it.\n"; @@ -352,7 +352,7 @@ static int startApp() TDEStartupInfoData data; data.setSilent( TDEStartupInfoData::Yes ); TDEStartupInfo::sendChange( id, data ); - KDEsuDialog dlg(user, auth_user, keep && !terminal,icon, withIgnoreButton, timeout); + TDEsuDialog dlg(user, auth_user, keep && !terminal,icon, withIgnoreButton, timeout); if (prompt) dlg.addLine(i18n("Command:"), command); if ((priority != 50) || (scheduler != SuProcess::SchedNormal)) @@ -365,12 +365,12 @@ static int startApp() dlg.addLine(i18n("Priority:"), prio); } int ret = dlg.exec(); - if (ret == KDEsuDialog::Rejected) + if (ret == TDEsuDialog::Rejected) { TDEStartupInfo::sendFinish( id ); exit(0); } - if (ret == KDEsuDialog::AsUser) + if (ret == TDEsuDialog::AsUser) change_uid = false; password = dlg.password(); keep = dlg.keep(); diff --git a/tdesu/tdesud/tdesud.cpp b/tdesu/tdesud/tdesud.cpp index 592fb9ffe..92295445e 100644 --- a/tdesu/tdesud/tdesud.cpp +++ b/tdesu/tdesud/tdesud.cpp @@ -180,7 +180,7 @@ int create_socket() if (!access(sock, R_OK|W_OK)) { - KDEsuClient client; + TDEsuClient client; if (client.ping() == -1) { kdWarning(1205) << "stale socket exists\n"; |