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)
int toInt(bool *ok, int base) const
void reserve(int size)
char at(int i) const
QByteArray & setNum(short n, int base)
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
const T & at(int i) const
int exitCode()
Wait for the last command to exit and return the exit code.
Definition: client.cpp:386
bool isEmpty() const
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 length() const
QString & remove(int position, int n)
int delVars(const QByteArray &special_key)
Delete all persistent variables with the given key.
Definition: client.cpp:373
int indexOf(char ch, int from) const
int count(const T &value) const
void append(const T &value)
int delGroup(const QByteArray &group)
Delete all persistent variables in a group.
Definition: client.cpp:365
bool isEmpty() const
bool isEmpty() const
QByteArray number(int n, int base)
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
QByteArray mid(int pos, int len) const
QByteArray & append(char ch)
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
QByteArray left(int len) const
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)
QString fromLatin1(const char *str, int size)
int setVar(const QByteArray &key, const QByteArray &value, int timeout=0, const QByteArray &group=0)
Set a persistent variable.
Definition: client.cpp:289
int size() const
#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
QByteArray encodeName(const QString &fileName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.