blob: bc81740970b6abb679166766f022a295eb470a46 [file] [log] [blame] [raw]
/* Secure Shout Host Oriented Unified Talk
* Copyright 2015-2018 Rivoreo
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
#include "sshclient.h"
class QSettings;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *, QSettings *, const QString &, quint16, const QString &);
~MainWindow();
protected:
bool eventFilter(QObject *, QEvent *);
private:
void send_hello();
Ui::MainWindow *ui;
bool use_internal_ssh_library;
SSHClient *ssh_client;
QString host;
quint16 port;
private slots:
void connect_ssh();
void on_ssh_state_change(SSHClient::SSHState);
};
#endif // MAINWINDOW_H