Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterChannelSSH.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CPARAMETERCHANNELSSH_H
4#define CPARAMETERCHANNELSSH_H
5
6#pragma once
7
8#include "libssh/libssh.h"
9
10#include <QObject>
11#include <QSettings>
12
13#include "channel_export.h"
14
15class CHANNEL_EXPORT CParameterChannelSSH : public QObject
16{
17 Q_OBJECT
18
19public:
20 explicit CParameterChannelSSH(QObject *parent = nullptr);
21
23
24 QString GetServer() const;
25 int setServer(const QString &szServer);
26
27 quint16 GetPort() const;
28 int setPort(const quint16 nPort);
29
30 QString GetUser() const;
31 int SetUser(const QString &szUser);
32
33 QString GetPassword() const;
34 int SetPassword(const QString szPassword);
35
36 int GetAuthenticationMethod() const;
37 int SetAuthenticationMethod(int method);
38
39 QString GetPassphrase() const;
40 int SetPassphrase(const QString passphrase);
41
42 bool GetUseSystemFile() const;
43 int SetUseSystemFile(bool use);
44
45 QString GetPublicKeyFile() const;
46 int SetPublicKeyFile(const QString szFile);
47
48 QString GetPrivateKeyFile() const;
49 int SetPrivateKeyFile(const QString szFile);
50
51 QString GetRemoteHost() const;
52 int SetRemoteHost(const QString szHost);
53
54 quint16 GetRemotePort() const;
55 int SetRemotePort(const quint16 nPort);
56
57 QString GetSourceHost() const;
58 int SetSourceHost(const QString szHost);
59
60 quint16 GetSourcePort() const;
61 int SetSourcePort(const quint16 nPort);
62
63 QString GetPcapFile() const;
64 int SetPcapFile(const QString& szFile);
65
66private:
67 QString m_szServer;
68 quint16 m_nPort;
69 QString m_szUser;
70 QString m_szPassword;
71
72 int m_nAuthenticationMethod;
73 QString m_szPublicKeyFile;
74 QString m_szPrivateKeyFile;
75 QString m_szPassphrase;
76 bool m_bUseSystemFile;
77
78 QString m_szRemoteHost;
79 quint16 m_nRemotePort;
80
81 QString m_szSourceHost;
82 quint16 m_nSourcePort;
83
84 QString m_pcapFile;
85};
86
87#endif // CPARAMETERCHANNELSSH_H