8#ifndef KDESUSSHPROCESS_H
9#define KDESUSSHPROCESS_H
11#include "stubprocess.h"
13#include <kdesu/kdesu_export.h>
17class SshProcessPrivate;
32 explicit SshProcess(
const QByteArray &host = QByteArray(),
const QByteArray &user = QByteArray(),
const QByteArray &command = QByteArray());
63 int exec(
const char *password,
int check = 0);
65 QByteArray prompt()
const;
66 QByteArray error()
const;
74 int converseSsh(
const char *password,
int check);
78#if KDESU_BUILD_DEPRECATED_SINCE(5, 79)
80 const void *__kdesu_d_do_not_use;
Executes a remote command, using ssh.
Definition: sshprocess.h:24
QByteArray display() override
This virtual function can be overloaded when special behavior is desired.
void setStub(const QByteArray &stub)
Sets the location of the remote stub.
QByteArray displayAuth() override
See display.
int checkNeedPassword()
Checks if the current user@host needs a password.
void setHost(const QByteArray &host)
Sets the target host.
int exec(const char *password, int check=0)
Executes the command.
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 if the password is correct.
Chat with kdesu_stub.
Definition: stubprocess.h:33