玉兔远程控制 0.0.31
载入中...
搜索中...
未找到
PluginLibSSH.cpp
1#include "PluginLibSSH.h"
2#include "RabbitCommonDir.h"
3#include "ConnecterSSH.h"
4
5#include <QLoggingCategory>
6Q_LOGGING_CATEGORY(ssh, "SSH")
7
9{
10}
11
12CPluginLibSSH::~CPluginLibSSH()
13{
14 qDebug(ssh) << "CPluginFactoryLibSSH::~CPluginFactoryLibSSH()";
15}
16
17const QString CPluginLibSSH::Protocol() const
18{
19 return "SSH";
20}
21
22const QString CPluginLibSSH::Name() const
23{
24 return tr("LibSSH");
25}
26
27const QString CPluginLibSSH::Description() const
28{
29 return tr("SSH: you can remotely execute programs, transfer files, use a secure and transparent tunnel, manage public keys and much more ...");
30}
31
32const QIcon CPluginLibSSH::Icon() const
33{
34 return QIcon::fromTheme("ssh");
35}
36
37CConnecter *CPluginLibSSH::CreateConnecter(const QString &szProtocol)
38{
39 if(Id() == szProtocol)
40 return new CConnecterSSH(this);
41 return nullptr;
42}
连接者应用接口。
Definition Connecter.h:62
virtual const QString Id() const
标识。默认: Protocol() + ":" + Name()
virtual const QString Protocol() const override
协议
virtual const QString Description() const override
描述
virtual CConnecter * CreateConnecter(const QString &szProtocol) override
新建 CConnecter 实例。仅由 CClient 调用
virtual const QString Name() const override
插件名,这个名一定要与工程名(${PROJECT_NAME})相同。 翻译文件(${PROJECT_NAME}_*.ts))名与其相关。