Rename KDEsu->TDEsu to provide consistency with previous renamings.

This relates to bug report 1707.
pull/2/head
Darrell Anderson 11 years ago
parent a615b2013a
commit a8303672a3

@ -439,7 +439,7 @@ int Minicli::runCommand()
if (!kapp->authorize("shell_access")) if (!kapp->authorize("shell_access"))
useTerminal = false; useTerminal = false;
if( needsKDEsu() ) if( needsTDEsu() )
{ {
TQCString user; TQCString user;
struct passwd *pw; struct passwd *pw;
@ -983,7 +983,7 @@ void Minicli::slotChangeScheduler(bool enable)
updateAuthLabel(); updateAuthLabel();
} }
bool Minicli::needsKDEsu() bool Minicli::needsTDEsu()
{ {
return ((m_dlg->cbPriority->isChecked() && ((m_iPriority > 50) || return ((m_dlg->cbPriority->isChecked() && ((m_iPriority > 50) ||
(m_iScheduler != StubProcess::SchedNormal))) || (m_iScheduler != StubProcess::SchedNormal))) ||

@ -69,7 +69,7 @@ protected slots:
protected: protected:
void loadConfig(); void loadConfig();
bool needsKDEsu(); bool needsTDEsu();
virtual void keyPressEvent( TQKeyEvent* ); virtual void keyPressEvent( TQKeyEvent* );
virtual void fontChange( const TQFont & ); virtual void fontChange( const TQFont & );

@ -14,7 +14,7 @@
#include <tdesu/su.h> #include <tdesu/su.h>
#include "sudlg.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) : KPasswordDialog(Password, enableKeep, (withIgnoreButton ? User1:NoDefault), icon)
{ {
TDEConfig* config = TDEGlobal::config(); 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; SuProcess proc;
proc.setUser(m_User); proc.setUser(m_User);
@ -109,7 +109,7 @@ bool KDEsuDialog::checkPassword(const char *password)
} }
} }
void KDEsuDialog::slotUser1() void TDEsuDialog::slotUser1()
{ {
done(AsUser); done(AsUser);
} }

@ -9,14 +9,14 @@
#include <kpassdlg.h> #include <kpassdlg.h>
class KDEsuDialog class TDEsuDialog
: public KPasswordDialog : public KPasswordDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep, const TQString& icon , bool withIgnoreButton=false, int timeout=-1); TDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep, const TQString& icon , bool withIgnoreButton=false, int timeout=-1);
~KDEsuDialog(); ~TDEsuDialog();
enum ResultCodes { AsUser = 10 }; enum ResultCodes { AsUser = 10 };

@ -141,7 +141,7 @@ static int startApp()
// Stop daemon and exit? // Stop daemon and exit?
if (args->isSet("s")) if (args->isSet("s"))
{ {
KDEsuClient client; TDEsuClient client;
if (client.ping() == -1) if (client.ping() == -1)
{ {
kdError(1206) << "Daemon not running -- nothing to stop\n"; kdError(1206) << "Daemon not running -- nothing to stop\n";
@ -248,7 +248,7 @@ static int startApp()
// Check for daemon and start if necessary // Check for daemon and start if necessary
bool just_started = false; bool just_started = false;
bool have_daemon = true; bool have_daemon = true;
KDEsuClient client; TDEsuClient client;
if (!client.isServerSGID()) if (!client.isServerSGID())
{ {
kdWarning(1206) << "Daemon not safe (not sgid), not using it.\n"; kdWarning(1206) << "Daemon not safe (not sgid), not using it.\n";
@ -352,7 +352,7 @@ static int startApp()
TDEStartupInfoData data; TDEStartupInfoData data;
data.setSilent( TDEStartupInfoData::Yes ); data.setSilent( TDEStartupInfoData::Yes );
TDEStartupInfo::sendChange( id, data ); 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) if (prompt)
dlg.addLine(i18n("Command:"), command); dlg.addLine(i18n("Command:"), command);
if ((priority != 50) || (scheduler != SuProcess::SchedNormal)) if ((priority != 50) || (scheduler != SuProcess::SchedNormal))
@ -365,12 +365,12 @@ static int startApp()
dlg.addLine(i18n("Priority:"), prio); dlg.addLine(i18n("Priority:"), prio);
} }
int ret = dlg.exec(); int ret = dlg.exec();
if (ret == KDEsuDialog::Rejected) if (ret == TDEsuDialog::Rejected)
{ {
TDEStartupInfo::sendFinish( id ); TDEStartupInfo::sendFinish( id );
exit(0); exit(0);
} }
if (ret == KDEsuDialog::AsUser) if (ret == TDEsuDialog::AsUser)
change_uid = false; change_uid = false;
password = dlg.password(); password = dlg.password();
keep = dlg.keep(); keep = dlg.keep();

@ -180,7 +180,7 @@ int create_socket()
if (!access(sock, R_OK|W_OK)) if (!access(sock, R_OK|W_OK))
{ {
KDEsuClient client; TDEsuClient client;
if (client.ping() == -1) if (client.ping() == -1)
{ {
kdWarning(1205) << "stale socket exists\n"; kdWarning(1205) << "stale socket exists\n";

Loading…
Cancel
Save