-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathBackendSSH.h
More file actions
32 lines (26 loc) · 697 Bytes
/
BackendSSH.h
File metadata and controls
32 lines (26 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Author: Kang Lin <kl222@126.com>
#pragma once
#include "libssh/callbacks.h"
#include "libssh/libssh.h"
#include "Backend.h"
#include "OperateSSH.h"
#include "ChannelSSHTerminal.h"
class CBackendSSH : public CBackend
{
Q_OBJECT
public:
explicit CBackendSSH(COperateSSH* pOperate);
virtual ~CBackendSSH();
virtual int WakeUp() override;
protected:
virtual OnInitReturnValue OnInit() override;
virtual int OnProcess() override;
virtual int OnClean() override;
private:
COperateSSH* m_pOperate;
CParameterTerminalSSH* m_pPara;
CChannelSSHTerminal* m_pChannelSSH;
QTermWidget* m_pTerminal;
public:
virtual bool event(QEvent *event) override;
};