15 #ifndef __KDE_su_Client_h_Included__
16 #define __KDE_su_Client_h_Included__
19 #include <tdelibs_export.h>
23 #include <sys/types.h>
24 #include <sys/socket.h>
27 #include <tqcstring.h>
28 #include <tqvaluelist.h>
30 typedef TQValueList<TQCString> QCStringList;
65 int exec(
const TQCString &command,
const TQCString &user,
const TQCString &options=0,
const QCStringList &env=QCStringList());
80 int setPass(
const char *pass,
int timeout);
85 int setHost(
const TQCString &host);
90 int setPriority(
int priority);
95 int setScheduler(
int scheduler);
103 int delCommand(
const TQCString &command,
const TQCString &user);
114 int setVar(
const TQCString &key,
const TQCString &value,
int timeout=0,
const TQCString &group=0);
121 TQCString getVar(
const TQCString &key);
128 TQValueList<TQCString> getKeys(
const TQCString &group);
137 bool findGroup(
const TQCString &group);
144 int delVar(
const TQCString &key);
161 int delVars(
const TQCString &special_key);
169 int delGroup(
const TQCString &group);
198 int command(
const TQCString &cmd, TQCString *result=0L);
199 TQCString escape(
const TQCString &str);
201 class TDEsuClientPrivate;
202 TDEsuClientPrivate *d;
A client class to access tdesud, the KDE su daemon.