3#include "ParameterServiceRabbitVNC.h"
5#include <QLoggingCategory>
6Q_DECLARE_LOGGING_CATEGORY(RabbitVNC)
8CParameterServiceRabbitVNC::CParameterServiceRabbitVNC(QObject *parent)
13 m_bEnableSocket =
true;
16CParameterServiceRabbitVNC::~CParameterServiceRabbitVNC()
18 qDebug(RabbitVNC) <<
"CParameterServiceTigerVNC::~CParameterServiceTigerVNC";
21int CParameterServiceRabbitVNC::Load(
const QString& szFile)
23 int nRet = CParameterService::Load(szFile);
24 QSettings set(szFile, QSettings::IniFormat);
25 m_bIce = set.value(
"Channel/Enable/ICE", m_bIce).toBool();
26 m_bEnableSocket = set.value(
"Channel/Enable/Socket", GetEnableSocket()).toBool();
30int CParameterServiceRabbitVNC::Save(
const QString& szFile)
32 int nRet = CParameterService::Save(szFile);
33 QSettings set(szFile, QSettings::IniFormat);
34 set.setValue(
"Channel/Enable/ICE", m_bIce);
35 set.setValue(
"Channel/Enable/Socket", m_bEnableSocket);
40bool CParameterServiceRabbitVNC::getIce()
const
45void CParameterServiceRabbitVNC::setIce(
bool newBIce)
47 if (m_bIce == newBIce)
53bool CParameterServiceRabbitVNC::GetEnableSocket()
const
55 return m_bEnableSocket;
58void CParameterServiceRabbitVNC::SetEnableSocket(
bool newSocket)
60 if (m_bEnableSocket == newSocket)
62 m_bEnableSocket = newSocket;
63 emit sigEnableSocketChanged(m_bEnableSocket);