Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterLibVNCServer.cpp
1#include "ParameterLibVNCServer.h"
2
3CParameterLibVNCServer::CParameterLibVNCServer(QObject *parent)
4 : CParameterBase(parent)
5{
6 m_Net.SetPort(5900);
7 m_Net.m_User.SetType(QList<CParameterUser::TYPE>() << CParameterUser::TYPE::OnlyPassword);
8 m_Net.m_User.SetUsedType(CParameterUser::TYPE::OnlyPassword);
9
10 m_Proxy.SetType(
11 QList<CParameterProxy::TYPE>() << CParameterProxy::TYPE::None
12 << CParameterProxy::TYPE::SSHTunnel);
13
14 SetShared(true);
15
16 SetClipboard(true);
17 SetEnableCompressLevel(true);
18 SetCompressLevel(3);
19 SetJpeg(true);
20 SetQualityLevel(5);
21}
22
23int CParameterLibVNCServer::OnLoad(QSettings &set)
24{
25 return CParameterBase::OnLoad(set);
26}
27
28int CParameterLibVNCServer::OnSave(QSettings &set)
29{
30 return CParameterBase::OnSave(set);
31}
32
33int CParameterLibVNCServer::GetQualityLevel() const
34{
35 return m_bQualityLevel;
36}
37
38void CParameterLibVNCServer::SetQualityLevel(int newQualityLevel)
39{
40 m_bQualityLevel = newQualityLevel;
41}
42
43bool CParameterLibVNCServer::GetJpeg() const
44{
45 return m_bJpeg;
46}
47
48void CParameterLibVNCServer::SetJpeg(bool newJpeg)
49{
50 m_bJpeg = newJpeg;
51}
52
53int CParameterLibVNCServer::GetCompressLevel() const
54{
55 return m_nCompressLevel;
56}
57
58void CParameterLibVNCServer::SetCompressLevel(int newCompressLevel)
59{
60 m_nCompressLevel = newCompressLevel;
61}
62
63bool CParameterLibVNCServer::GetEnableCompressLevel() const
64{
65 return m_bCompressLevel;
66}
67
68void CParameterLibVNCServer::SetEnableCompressLevel(bool newCompressLevel)
69{
70 m_bCompressLevel = newCompressLevel;
71}
72
73bool CParameterLibVNCServer::GetShared() const
74{
75 return m_bShared;
76}
77
78void CParameterLibVNCServer::SetShared(bool newShared)
79{
80 m_bShared = newShared;
81}
The interface of connecter parameters.