Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ConnecterTerminal.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CCONNECTERTERMINAL_H_KL_2021_12_09
4#define CCONNECTERTERMINAL_H_KL_2021_12_09
5
6#include "ConnectThread.h"
7#include "Connecter.h"
8#include "FrmTermWidget.h"
9#include "ParameterTerminal.h"
10
12class TERMINAL_EXPORT CConnecterTerminal : public CConnecter
13{
14 Q_OBJECT
15public:
16 explicit CConnecterTerminal(CPluginClient *parent);
17 virtual ~CConnecterTerminal() override;
18
19 QWidget* GetViewer() override;
20 virtual qint16 Version() override;
21 virtual int Load(QSettings &set) override;
22 virtual int Save(QSettings &set) override;
23
24 // Instance connect
25 virtual CConnect* InstanceConnect();
26
27public Q_SLOTS:
28 virtual int Connect() override;
29 virtual int DisConnect() override;
30
31private Q_SLOTS:
32 void slotTerminalTitleChanged();
33 void slotZoomReset();
34
35protected:
36 virtual QString ServerName() override;
37 virtual int SetParameter();
38
45 virtual int OnConnect();
46 virtual int OnDisConnect();
47
48 virtual CParameterTerminal* GetParameter();
49
50 CFrmTermWidget* m_pConsole;
51 CConnectThreadTerminal* m_pThread;
52 bool m_bThread;
53 bool m_bExit;
54 CParameterTerminal* m_pPara;
55};
56
57#endif // CCONNECTERTERMINAL_H_KL_2021_12_09
Connect interface.
Definition Connect.h:45
Connecter interface.
Definition Connecter.h:62
virtual int DisConnect()=0
Close connect.
virtual int Load(QSettings &set)
Load parameters.
virtual qint16 Version()=0
Version.
virtual QWidget * GetViewer()=0
Get Viewer.
virtual int Save(QSettings &set)
Save parameters.
virtual int SetParameter(CParameter *p)
Set parameters.
virtual int Connect()=0
Start connect.
The plugin interface.