8#ifndef KDESUSUPROCESS_H
9#define KDESUSUPROCESS_H
11#include <kdesu/kdesu_export.h>
13#include "stubprocess.h"
17class SuProcessPrivate;
41 explicit SuProcess(
const QByteArray &user =
nullptr,
const QByteArray &command =
nullptr);
44 int exec(
const char *password,
int check = NoCheck);
81 int converseSU(
const char *password);
84 Q_DECLARE_PRIVATE_D(PtyProcess::d,
SuProcess)
85#if KDESU_BUILD_DEPRECATED_SINCE(5, 79)
87 const void *__kdesu_d_do_not_use;
Chat with kdesu_stub.
Definition: stubprocess.h:33
Executes a command under elevated privileges, using su.
Definition: suprocess.h:24
void virtual_hook(int id, void *data) override
Standard hack to add virtual methods in a BC way.
int checkInstall(const char *password)
Checks if the stub is installed and the password is correct.
bool useUsersOwnPassword()
Checks whether or not the user's password is being asked for or another user's password.
QString superUserCommand()
Checks what the default super user command is, e.g.
int checkNeedPassword()
Checks if a password is needed.
checkMode
Executes the command.
Definition: suprocess.h:35