Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterICE.h
1#ifndef CParameterICE_H
2#define CParameterICE_H
3
4#include <QObject>
5#include <QSettings>
6#include "channel_export.h"
7
19class CHANNEL_EXPORT CParameterICE : public QObject
20{
21 Q_OBJECT
22 Q_PROPERTY(bool Ice READ getIce WRITE setIce NOTIFY sigIceChanged)
23 Q_PROPERTY(bool IceDebug READ GetIceDebug WRITE SetIceDebug NOTIFY sigIceDebugChanged)
24 Q_PROPERTY(QString SignalServer READ getSignalServer WRITE setSignalServer NOTIFY sigSignalServerChanged)
25 Q_PROPERTY(quint16 SignalPort READ getSignalPort WRITE setSignalPort NOTIFY sigSignalPortChanged)
26 Q_PROPERTY(QString SignalUser READ getSignalUser WRITE setSignalUser NOTIFY sigSignalUserChanged)
27 Q_PROPERTY(QString SignalPassword READ getSignalPassword WRITE setSignalPassword NOTIFY sigSignalPasswordChanged)
28 Q_PROPERTY(QString StunServer READ getStunServer WRITE setStunServer NOTIFY sigStunServerChanged)
29 Q_PROPERTY(quint16 StunPort READ getStunPort WRITE setStunPort NOTIFY sigStunPortChanged)
30 Q_PROPERTY(QString TurnServer READ getTurnServer WRITE setTurnServer NOTIFY sigTurnServerChanged)
31 Q_PROPERTY(quint16 TurnPort READ getTurnPort WRITE setTurnPort NOTIFY sigTurnPortChanged)
32 Q_PROPERTY(QString TurnUser READ getTurnUser WRITE setTurnUser NOTIFY sigTurnUserChanged)
33 Q_PROPERTY(QString TurnPassword READ getTurnPassword WRITE setTurnPassword NOTIFY sigTurnPasswordChanged)
34
35public:
36 explicit CParameterICE(QObject *parent = nullptr);
37
38 virtual int Load(QSettings &set);
39 virtual int Save(QSettings &set);
40
41 bool getIce() const;
42 void setIce(bool newBIce);
43 bool GetIceDebug() const;
44 void SetIceDebug(bool newIceDebug);
45 const QString &getSignalServer() const;
46 void setSignalServer(const QString &newSzSignalServer);
47 quint16 getSignalPort() const;
48 void setSignalPort(quint16 newNSignalPort);
49 const QString &getSignalUser() const;
50 void setSignalUser(const QString &newSzSignalUser);
51 const QString &getSignalPassword() const;
52 void setSignalPassword(const QString &newSzSignalPassword);
53 const QString &getStunServer() const;
54 void setStunServer(const QString &newSzStunServer);
55 quint16 getStunPort() const;
56 void setStunPort(quint16 newNStunPort);
57 const QString &getTurnServer() const;
58 void setTurnServer(const QString &newSzTurnServer);
59 quint16 getTurnPort() const;
60 void setTurnPort(quint16 newNTurnPort);
61 const QString &getTurnUser() const;
62 void setTurnUser(const QString &newSzTurnUser);
63 const QString &getTurnPassword() const;
64 void setTurnPassword(const QString &newSzTurnPassword);
65
66signals:
67 void sigIceChanged();
68 void sigIceDebugChanged(bool enable);
69 void sigSignalServerChanged();
70 void sigSignalPortChanged();
71 void sigSignalUserChanged();
72 void sigSignalPasswordChanged();
73 void sigStunServerChanged();
74 void sigStunPortChanged();
75 void sigTurnServerChanged();
76 void sigTurnPortChanged();
77 void sigTurnUserChanged();
78 void sigTurnPasswordChanged();
79
80private:
81 bool m_bIce;
82 bool m_bIceDebug;
83 QString m_szSignalServer;
84 quint16 m_nSignalPort;
85 QString m_szSignalUser, m_szSignalPassword;
86 QString m_szStunServer;
87 quint16 m_nStunPort;
88 QString m_szTurnServer;
89 quint16 m_nTurnPort;
90 QString m_szTurnUser, m_szTurnPassword;
91};
92
93#endif // CParameterICE_H
ICE parameter helper class.