Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterProxy.h
1#ifndef CPARAMETERPROXY_H
2#define CPARAMETERPROXY_H
3
4#include "ParameterNet.h"
5
13class CLIENT_EXPORT CParameterProxy : public CParameterConnecter
14{
15 Q_OBJECT
16public:
17 explicit CParameterProxy(CParameterConnecter *parent = nullptr,
18 const QString& szPrefix = QString());
19
20 enum class TYPE{
21 None = 0,
22 Default,
23 SockesV5,
24 SSHTunnel,
25 };
26 Q_ENUM(TYPE)
27 QList<TYPE> GetType() const;
28 int SetType(QList<TYPE> type);
29 TYPE GetUsedType() const;
30 int SetUsedType(TYPE type);
31
32 CParameterNet m_SockesV5;
33 CParameterNet m_SSH;
34
35 int SetTypeName(TYPE t, const QString& szName);
36 QString ConvertTypeToName(TYPE t);
37
38 // CParameter interface
39protected:
40 virtual int OnLoad(QSettings &set) override;
41 virtual int OnSave(QSettings &set) override;
42
43private:
44 QList<TYPE> m_Type;
45 TYPE m_UsedType;
46
47 QMap<TYPE, QString> m_TypeName;
48};
49
50#endif // CPARAMETERPROXY_H
the parameters of connecter interface.
Basic network parameters.
The proxy parameters.