Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterNet.h
1#ifndef CPARAMETERNET_H
2#define CPARAMETERNET_H
3
4#include <QObject>
5
6#include "ParameterUser.h"
7
25class CLIENT_EXPORT CParameterNet
26 : public CParameterConnecter
27{
28 Q_OBJECT
29
30public:
31 explicit CParameterNet(CParameterConnecter* parent,
32 const QString& szPrefix = QString());
33
34 virtual const QString GetHost() const;
35 virtual void SetHost(const QString& szHost);
36Q_SIGNALS:
37 void sigHostChanged(const QString& szHost);
38
39public:
40 virtual const quint16 GetPort() const;
41 virtual void SetPort(quint16 port);
42
46
47protected:
48 virtual int OnLoad(QSettings &set) override;
49 virtual int OnSave(QSettings &set) override;
50
51private:
52 QString m_szHost;
53 quint16 m_nPort;
54
55public:
56 int SetPrompt(const QString szPrompt);
57 QString GetPrompt();
58private:
59 QString m_szPrompt;
60};
61
62#endif // CPARAMETERNET_H
the parameters of connecter interface.
Basic network parameters.
CParameterUser m_User
[Instance user]
It contains user and password It only valid in plugin.