Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
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}
Connecter interface.
Definition Connecter.h:62
virtual const QString Id() const
ID. Default: Protocol() + ":" + Name()
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString Description() const override
Plugin description.
virtual CConnecter * CreateConnecter(const QString &szProtocol) override
New CConnecter instance.
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...