Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
PluginTerminal.cpp
1#include "PluginTerminal.h"
2#include "RabbitCommonDir.h"
3#include "ConnecterPluginTerminal.h"
4
5#include <QLoggingCategory>
6
7Q_LOGGING_CATEGORY(Terminal, "Client.Terminal")
8
9CPluginTerminal::CPluginTerminal(QObject *parent)
10 : CPluginClient(parent)
11{
12}
13
14CPluginTerminal::~CPluginTerminal()
15{
16 qDebug(Terminal) << "CPluginFactoryTerminal::~CPluginFactoryTerminal()";
17}
18
19const QString CPluginTerminal::Protocol() const
20{
21 return "Terminal";
22}
23
24const QString CPluginTerminal::Name() const
25{
26 return "Terminal";
27}
28
29const QString CPluginTerminal::DisplayName() const
30{
31 return tr("Terminal");
32}
33
34const QString CPluginTerminal::Description() const
35{
36 return tr("Terminal: native(shell) and remote(telnet, etc) terminal");
37}
38
39const QIcon CPluginTerminal::Icon() const
40{
41 return QIcon::fromTheme("console");
42}
43
45{
46 if(Id() == szProtocol)
47 {
48 return new CConnecterPluginTerminal(this);
49 }
50 return nullptr;
51}
Connecter interface.
Definition Connecter.h:62
The plugin interface.
virtual const QString Id() const
ID. Default: Protocol() + ":" + Name()
virtual CConnecter * CreateConnecter(const QString &szProtocol) override
New CConnecter instance.
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...
virtual const QString Description() const override
Plugin description.
virtual const QString DisplayName() const override
The plugin display name.