3#include "ParameterFreeRDPServer.h"
5CParameterFreeRDPServer::CParameterFreeRDPServer(
6 QObject *parent,
const QString &szPrefix)
10 , m_bNlaSecurity(false)
11 , m_bNlaExtSecurity(false)
13 , m_bAuthentication(true)
15 , m_bAuthentication(false)
23int CParameterFreeRDPServer::OnLoad(QSettings &set)
26 nRet = CParameterServer::OnLoad(set);
29 setTlsSecurity(set.value(
"Security/Tls", getTlsSecurity()).toBool());
30 setRdpSecurity(set.value(
"Security/Rdp", getRdpSecurity()).toBool());
31 setNlaSecurity(set.value(
"Security/Nla", getNlaSecurity()).toBool());
32 setNlaExtSecurity(set.value(
"Security/NlaExt", getNlaExtSecurity()).toBool());
33 setSamFile(set.value(
"Security/Nla/SamFIle", getSamFile()).toString());
35 setAuthentication(set.value(
"Server/Authentication", getAuthentication()).toBool());
36 setMayView(set.value(
"Server/MayView", getMayView()).toBool());
37 setMayInteract(set.value(
"Server/MayInteract", getMayInteract()).toBool());
42int CParameterFreeRDPServer::OnSave(QSettings &set)
45 nRet = CParameterServer::OnSave(set);
48 set.setValue(
"Security/Tls", getTlsSecurity());
49 set.setValue(
"Security/Rdp", getRdpSecurity());
50 set.setValue(
"Security/Nla", getNlaSecurity());
51 set.setValue(
"Security/NlaExt", getNlaExtSecurity());
52 set.setValue(
"Security/Nla/SamFIle", getSamFile());
54 set.setValue(
"Server/Authentication", getAuthentication());
55 set.setValue(
"Server/MayView", getMayView());
56 set.setValue(
"Server/MayInteract", getMayInteract());
61bool CParameterFreeRDPServer::getTlsSecurity()
const
63 return m_bTlsSecurity;
66void CParameterFreeRDPServer::setTlsSecurity(
bool newTlsSecurity)
68 if (m_bTlsSecurity == newTlsSecurity)
70 m_bTlsSecurity = newTlsSecurity;
71 emit sigTlsSecurityChanged();
74bool CParameterFreeRDPServer::getRdpSecurity()
const
76 return m_bRdpSecurity;
79void CParameterFreeRDPServer::setRdpSecurity(
bool newRdpSecurity)
81 if (m_bRdpSecurity == newRdpSecurity)
83 m_bRdpSecurity = newRdpSecurity;
84 emit sigRdpSecurityChanged();
87bool CParameterFreeRDPServer::getNlaSecurity()
const
89 return m_bNlaSecurity;
92void CParameterFreeRDPServer::setNlaSecurity(
bool newNlaSecurity)
94 if (m_bNlaSecurity == newNlaSecurity)
96 m_bNlaSecurity = newNlaSecurity;
97 emit sigNlaecurityChanged();
100bool CParameterFreeRDPServer::getNlaExtSecurity()
const
102 return m_bNlaExtSecurity;
105void CParameterFreeRDPServer::setNlaExtSecurity(
bool newNlaExtSecurity)
107 if (m_bNlaExtSecurity == newNlaExtSecurity)
109 m_bNlaExtSecurity = newNlaExtSecurity;
110 emit sigNlaExtSecurityChanged();
113bool CParameterFreeRDPServer::getAuthentication()
const
115 return m_bAuthentication;
118void CParameterFreeRDPServer::setAuthentication(
bool newAuthentication)
120 if (m_bAuthentication == newAuthentication)
122 m_bAuthentication = newAuthentication;
123 emit sigAuthenticationChanged();
126bool CParameterFreeRDPServer::getMayView()
const
131void CParameterFreeRDPServer::setMayView(
bool newMayView)
133 if (m_MayView == newMayView)
135 m_MayView = newMayView;
136 emit sigMayViewChanged();
139bool CParameterFreeRDPServer::getMayInteract()
const
141 return m_MayInteract;
144void CParameterFreeRDPServer::setMayInteract(
bool newMayInteract)
146 if (m_MayInteract == newMayInteract)
148 m_MayInteract = newMayInteract;
149 emit sigMayInteractChanged();
152const QString &CParameterFreeRDPServer::getSamFile()
const
157void CParameterFreeRDPServer::setSamFile(
const QString &newSamFile)
159 if (m_szSamFile == newSamFile)
161 m_szSamFile = newSamFile;
162 emit sigSamFileChanged();
The server base parameters.