2021-06-12 11:59:36 +03:00
|
|
|
#ifndef SSH_CONFIGURATOR_H
|
|
|
|
|
#define SSH_CONFIGURATOR_H
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
#include <QProcessEnvironment>
|
|
|
|
|
|
2022-08-25 17:35:28 +03:00
|
|
|
#include "configurator_base.h"
|
2021-06-12 11:59:36 +03:00
|
|
|
#include "core/defs.h"
|
|
|
|
|
|
2022-08-25 17:35:28 +03:00
|
|
|
class SshConfigurator : ConfiguratorBase
|
2021-06-12 11:59:36 +03:00
|
|
|
{
|
2022-08-25 17:35:28 +03:00
|
|
|
Q_OBJECT
|
2021-06-12 11:59:36 +03:00
|
|
|
public:
|
2024-04-12 20:00:21 +05:00
|
|
|
SshConfigurator(std::shared_ptr<Settings> settings, const QSharedPointer<ServerController> &serverController, QObject *parent = nullptr);
|
2022-08-25 17:35:28 +03:00
|
|
|
|
|
|
|
|
QProcessEnvironment prepareEnv();
|
|
|
|
|
QString convertOpenSShKey(const QString &key);
|
|
|
|
|
void openSshTerminal(const ServerCredentials &credentials);
|
2021-06-12 11:59:36 +03:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // SSH_CONFIGURATOR_H
|