11 class QListWidgetItem;
 
   19         FileItem(std::string 
const &n, 
bool d = 
false)
 
   29     SshConnection(SshConnection 
const &) = 
delete;
 
   30     SshConnection &operator=(SshConnection 
const &) = 
delete;
 
   31     SshConnection(SshConnection &&) = 
delete;
 
   32     SshConnection &operator=(SshConnection &&) = 
delete;
 
   36     bool connect(
const std::string &host, 
int port, 
bool passwd, 
const std::string &uid = {}, 
const std::string &pwd = {});
 
   38     bool is_sftp_connected() 
const;
 
   39     void add_allowed_command(
const std::string &command);
 
   40     std::optional<std::string> exec(
char const *command);
 
   41     std::optional<std::vector<FileItem>> list(
const char *path);
 
   42     std::optional<std::string> pull(
char const *path);
 
   43     static void sort(std::vector<FileItem> *files);
 
   48     bool unlink(
char const *path);
 
   51 class SshDialog : 
public QDialog {
 
   61     void updateFileList();
 
   63     explicit SshDialog(QWidget *parent, SshConnection *ssh);
 
   71     void setHostName(QString 
const &host);
 
   72     void setPort(
int port);
 
   73     void setAuthMethod(AuthMethod method);
 
   74     void setUserName(QString 
const &uid);
 
   75     void setPassword(QString 
const &pwd);
 
   77     QString hostName() 
const;
 
   79     AuthMethod authMethod() 
const;
 
   80     QString userName() 
const;
 
   81     QString password() 
const;
 
   86     bool isSftpConnected() 
const;
 
   88     QString selectedPath() 
const;
 
   90     void on_listWidget_itemDoubleClicked(QListWidgetItem *item);
 
   91     void on_pushButton_connect_clicked();
 
   92     void on_pushButton_disconnect_clicked();
 
   93     void on_radioButton_key_clicked();
 
   94     void on_radioButton_pwd_clicked();
 
   95     void on_pushButton_ok_clicked();
 
   97     void keyPressEvent(QKeyEvent *event);
 
Definition: AboutDialog.h:6