blob: 2a6980ec461fc2da0ac43f4b6f779bbb459a87a1 [file] [log] [blame] [raw]
#ifndef SSHCLIENT_H
#define SSHCLIENT_H
#include <QtCore/QIODevice>
class SSHClient : public QIODevice {
Q_OBJECT
public:
enum SSHState {
DISCONNECTED,
CONNECTIING,
AUTHENTICATING,
AUTHENTICATED
};
SSHClient(QObject * = NULL);
virtual bool connect(const QString &, quint16, const QString &, const QString & = QString()) = 0;
virtual void disconnect() = 0;
virtual void set_identify_file(const QString &) = 0;
virtual void set_reconnect_interval(int) = 0;
signals:
void state_changed(SSHClient::SSHState);
void connected();
void disconnected(int);
//void readyRead();
};
#endif // SSHCLIENT_H