Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ConnecterPluginTerminal.cpp
1#include "ConnecterPluginTerminal.h"
2#include "DlgSettingsTerminal.h"
3
4CConnecterPluginTerminal::CConnecterPluginTerminal(CPluginClient *parent)
5 : CConnecterTerminal(parent)
6{
7 m_pPara = new CParameterTerminal();
8}
9
10CConnecterPluginTerminal::~CConnecterPluginTerminal()
11{
12 if(m_pPara)
13 {
14 delete m_pPara;
15 m_pPara = nullptr;
16 }
17}
18
19QDialog *CConnecterPluginTerminal::GetDialogSettings(QWidget *parent)
20{
21 return new CDlgSettingsTerminal(m_pPara, parent);
22}
23
25{
26 if(m_pConsole)
27 m_pConsole->startShellProgram();
28
29 return 0;
30}
31
32int CConnecterPluginTerminal::OnDisConnect()
33{
34 if(m_pConsole) m_pConsole->close();
35 return 0;
36}
virtual int OnConnect() override
OnConnect.
The plugin interface.