Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
PluginRabbitVNC.cpp
1// Author: Kang Lin <kl222@126.com>
2
3#include "PluginRabbitVNC.h"
4
5#include "RabbitCommonDir.h"
6#include "../../TigerVnc/Client/ConnecterVnc.h"
7
8#include <QLoggingCategory>
9
10Q_LOGGING_CATEGORY(log, "RabbitVNC")
11
13 : CPluginClient(parent)
14{
16
17 //rfb::SecurityClient::setDefaults();
18
20}
21
23{
25 qDebug(log) << "CPluginRabbitVnc::~CPluginRabbitVnc()";
27}
28
29const QString CPluginRabbitVNC::Name() const
30{
31 return "RabbitVNC";
32}
33
34const QString CPluginRabbitVNC::DisplayName() const
35{
36 return tr("RabbitVNC");
37}
38
39const QString CPluginRabbitVNC::Description() const
40{
41 return tr("VNC(Virtual Network Console): Access remote desktops such as unix/linux, windows, etc.") + "\n"
42 + tr("VNC is a set of programs using the RFB (Remote Frame Buffer) protocol.") + "\n"
43 + tr("The plugin is used RabbitVNC");
44}
45
46const QString CPluginRabbitVNC::Protocol() const
47{
48 return "RFB";
49}
50
51const QIcon CPluginRabbitVNC::Icon() const
52{
53 return QIcon::fromTheme("network-wired");
54}
55
56const QString CPluginRabbitVNC::Version() const
57{
58 return PluginRabbitVNC_VERSION;
59}
60
62{
63 if(Id() == szID)
64 {
65 return new CConnecterVnc(this);
66 }
67 return nullptr;
68}
Connecter interface.
Definition Connecter.h:62
The plugin interface.
virtual const QString Id() const
ID. Default: Protocol() + ":" + Name()
virtual const QString DisplayName() const override
The plugin display name.
virtual CConnecter * CreateConnecter(const QString &szID) override
New CConnecter instance.
virtual ~CPluginRabbitVNC() override
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 Version() const
Version.
virtual const QString Description() const override
Plugin description.