3#include "PluginLibVNCServer.h"
4#include "RabbitCommonDir.h"
5#include "ConnecterLibVNCServer.h"
7 #include "ChannelSSHTunnel.h"
9#include <QLoggingCategory>
10static Q_LOGGING_CATEGORY(log,
"LibVNCServer")
16CPluginLibVNCServer::~CPluginLibVNCServer()
18 qDebug(log) <<
"CPluginFactoryLibVNCServer::~CPluginFactoryLibVNCServer()";
23 return "LibVNCServer";
28 return tr(
"LibVNCServer");
33 return tr(
"VNC(Virtual Network Console): Access remote desktops such as unix/linux, windows, etc.") +
"\n"
34 + tr(
"VNC is a set of programs using the RFB (Remote Frame Buffer) protocol.") +
"\n"
35 + tr(
"The plugin is used LibVNCServer");
43const QIcon CPluginLibVNCServer::Icon()
const
45 return QIcon::fromTheme(
"libvnc");
50 return PluginLibVNCServer_VERSION;
59 szDetails += channel.GetDetails();
客户端插件接口。用于建立 CConnecter 实例,它由协议插件实现。
virtual const QString Id() const
标识。默认: Protocol() + ":" + Name()
virtual const QString DisplayName() const override
在界面上显示的名称
virtual const QString Version() const
Version
virtual const QString Description() const override
描述
virtual const QString Name() const override
插件名,这个名一定要与工程名(${PROJECT_NAME})相同。 翻译文件(${PROJECT_NAME}_*.ts))名与其相关。
virtual CConnecter * CreateConnecter(const QString &szID) override
新建 CConnecter 实例。仅由 CClient 调用
virtual const QString Details() const override
显示更多细节。 例如: 在关于对话框或日志中显示。 包括插件的依赖库的版本信息和描述
virtual const QString Protocol() const override
协议