Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
PluginServiceTigerVNC.cpp
1// Author: Kang Lin <kl222@126.com>
2
3#include "PluginServiceTigerVNC.h"
4#include "RabbitCommonDir.h"
5#include <QDebug>
6#include <QApplication>
7#include <rfb/LogWriter.h>
8#include <rfb/Logger_stdio.h>
9#include "ServiceTigerVNC.h"
10#include <QLoggingCategory>
11
12Q_LOGGING_CATEGORY(TigerVNC, "TigerVNC")
13
15 : CPluginServiceThread(parent)
16{
17 //rfb::SecurityClient::setDefaults();
18
19 rfb::initStdIOLoggers();
20#ifdef WIN32
21 rfb::initFileLogger("C:\\temp\\vncviewer.log");
22#else
23 rfb::initFileLogger("/tmp/vncviewer.log");
24#endif
25 rfb::LogWriter::setLogParams("*:stderr:100");
26
27}
28
29CPluginServiceTigerVNC::~CPluginServiceTigerVNC()
30{
31 qDebug(TigerVNC) << "CManageConnectTigerVnc::~CManageConnectTigerVnc()";
32}
33
35{
36 return "RFB";
37}
38
39const QString CPluginServiceTigerVNC::Name() const
40{
41 return "TigerVNC";
42}
43
45{
46 return tr("TigerVNC");
47}
48
50{
51 return tr("VNC(Virtual Network Console): Access remote desktops such as unix/linux, windows, etc.") + "\n"
52 + tr("VNC is a set of programs using the RFB (Remote Frame Buffer) protocol.");
53}
54
The service plugin interface.
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString DisplayName() const override
The plugin display name.
virtual const QString Description() const override
Plugin description.
virtual CService * NewService() override
New service.
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}).
The service interface.
Definition Service.h:38