MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / OnCheckValidity

Method OnCheckValidity

Plugins/TigerVnc/Client/ParameterVnc.cpp:135–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool CParameterVnc::OnCheckValidity()
136{
137 if(GetIce())
138 {
139 if(GetSignalServer().isEmpty() || GetSignalPort() <= 0
140 || GetSignalUser().isEmpty() || GetSignalPassword().isEmpty()
141 || GetStunServer().isEmpty() || GetStunPort() <= 0)
142 return false;
143 return true;
144 }
145
146 if(m_Net.GetHost().isEmpty()
147 || m_Net.GetPort() <= 0
148 || m_Net.m_User.GetPassword().isEmpty())
149 return false;
150 return true;
151}
152
153bool CParameterVnc::GetShared() const
154{

Callers

nothing calls this directly

Calls 4

GetHostMethod · 0.80
isEmptyMethod · 0.45
GetPortMethod · 0.45
GetPasswordMethod · 0.45

Tested by

no test coverage detected