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

Method ServerName

Plugins/TigerVnc/Client/OperateVnc.cpp:51–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51QString COperateVnc::ServerName()
52{
53 if(GetParameter())
54 if(!GetParameter()->GetShowServerName()
55 || COperateDesktop::ServerName().isEmpty())
56 {
57 if(m_Para.GetIce())
58 {
59 if(!m_Para.GetPeerUser().isEmpty())
60 return m_Para.GetPeerUser();
61 }
62 else {
63 if(!GetParameter()->m_Net.GetHost().isEmpty())
64 return GetParameter()->m_Net.GetHost() + ":"
65 + QString::number(GetParameter()->m_Net.GetPort());
66 }
67 }
68 return COperateDesktop::ServerName();
69}
70
71QDialog *COperateVnc::OnOpenDialogSettings(QWidget *parent)
72{

Callers

nothing calls this directly

Calls 6

GetShowServerNameMethod · 0.80
GetIceMethod · 0.80
GetPeerUserMethod · 0.80
GetHostMethod · 0.80
isEmptyMethod · 0.45
GetPortMethod · 0.45

Tested by

no test coverage detected