Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
PluginTelnet.cpp
1#include "PluginTelnet.h"
2#include "RabbitCommonDir.h"
3#include "ConnecterTelnet.h"
4
5#include <QLoggingCategory>
6
7Q_LOGGING_CATEGORY(Telnet, "Telnet")
8
9CPluginTelnet::CPluginTelnet(QObject *parent)
10 : CPluginClient(parent)
11{
12}
13
14CPluginTelnet::~CPluginTelnet()
15{
16 qDebug(Telnet) << "CPluginFactoryTelnet::~CPluginFactoryTelnet()";
17}
18
19const QString CPluginTelnet::Protocol() const
20{
21 return "Telnet";
22}
23
24const QString CPluginTelnet::Name() const
25{
26 return tr("Telnet");
27}
28
29const QString CPluginTelnet::Description() const
30{
31 return tr("Telnet: net terminal");
32}
33
34const QIcon CPluginTelnet::Icon() const
35{
36 return QIcon::fromTheme("console");
37}
38
39CConnecter *CPluginTelnet::CreateConnecter(const QString &szProtocol)
40{
41 if(Id() == szProtocol)
42 {
43 return new CConnecterTelnet(this);
44 }
45 return nullptr;
46}
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 Description() const override
Plugin description.
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...