KDEsu
client.cpp
Go to the documentation of this file.
233 int KDEsuClient::exec(const QByteArray &prog, const QByteArray &user, const QByteArray &options, const QList<QByteArray> &env)
int setPriority(int priority)
Set the desired priority (optional), see StubProcess.
Definition: client.cpp:262
QDebug perror(QDebug s, KDebugTag)
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
int exitCode()
Wait for the last command to exit and return the exit code.
Definition: client.cpp:386
int stat(const QString &path, KDE_struct_stat *buf)
int delCommand(const QByteArray &command, const QByteArray &user)
Remove a password for a user/command.
Definition: client.cpp:280
int delVars(const QByteArray &special_key)
Delete all persistent variables with the given key.
Definition: client.cpp:373
int delGroup(const QByteArray &group)
Delete all persistent variables in a group.
Definition: client.cpp:365
bool isServerSGID()
Returns true if the server is safe (installed setgid), false otherwise.
Definition: client.cpp:413
int setScheduler(int scheduler)
Set the desired scheduler (optional), see StubProcess.
Definition: client.cpp:271
int exec(const QByteArray &command, const QByteArray &user, const QByteArray &options=0, const QList< QByteArray > &env=QList< QByteArray >())
Lets kdesud execute a command.
Definition: client.cpp:233
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
int access(const QString &path, int mode)
static int kdeinitExecWait(const QString &name, const QStringList &args=QStringList(), QString *error=0, int *pid=0, const QByteArray &startup_id=QByteArray())
static QString findExe(const QString &appname, const QString &pathstr=QString(), SearchOptions options=NoSearchOptions)
bool findGroup(const QByteArray &group)
Returns true if the specified group exists is cached.
Definition: client.cpp:347
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
int setVar(const QByteArray &key, const QByteArray &value, int timeout=0, const QByteArray &group=0)
Set a persistent variable.
Definition: client.cpp:289
#define k_lineinfo
int setPass(const char *pass, int timeout)
Set root's password, lasts one session.
Definition: client.cpp:223
QList< QByteArray > getKeys(const QByteArray &group)
Gets all the keys that are membes of the given group.
Definition: client.cpp:314
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.