3#include "ParameterServiceTigerVNC.h"
5#include <QLoggingCategory>
7Q_DECLARE_LOGGING_CATEGORY(TigerVNC)
9CParameterServiceTigerVNC::CParameterServiceTigerVNC(QObject *parent)
14 m_bEnableSocket =
true;
17CParameterServiceTigerVNC::~CParameterServiceTigerVNC()
19 qDebug(TigerVNC) <<
"CParameterServiceTigerVNC::~CParameterServiceTigerVNC";
22int CParameterServiceTigerVNC::Load(
const QString& szFile)
24 int nRet = CParameterService::Load(szFile);
25 QSettings set(szFile, QSettings::IniFormat);
26 m_bIce = set.value(
"Channel/Enable/ICE", m_bIce).toBool();
27 m_bEnableSocket = set.value(
"Channel/Enable/Socket", GetEnableSocket()).toBool();
31int CParameterServiceTigerVNC::Save(
const QString& szFile)
33 int nRet = CParameterService::Save(szFile);
34 QSettings set(szFile, QSettings::IniFormat);
35 set.setValue(
"Channel/Enable/ICE", m_bIce);
36 set.setValue(
"Channel/Enable/Socket", m_bEnableSocket);
40bool CParameterServiceTigerVNC::getIce()
const
45void CParameterServiceTigerVNC::setIce(
bool newBIce)
47 if (m_bIce == newBIce)
53bool CParameterServiceTigerVNC::GetEnableSocket()
const
55 return m_bEnableSocket;
58void CParameterServiceTigerVNC::SetEnableSocket(
bool newSocket)
60 if (m_bEnableSocket == newSocket)
62 m_bEnableSocket = newSocket;
63 emit sigEnableSocketChanged(m_bEnableSocket);