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

Method authSuccess

Plugins/TigerVnc/Service/Connection.cpp:174–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void CConnection::authSuccess()
175{
176 qDebug(TigerVNC) << "CConnection::authSuccess(): state:" << state();
177 // Set the connection parameters appropriately
178 QString name = RabbitCommon::CTools::GetHostName()
179 + "@" + RabbitCommon::CTools::GetCurrentUser();
180 client.setName(name.toStdString().c_str());
181
182 //TODO: add client.setLEDState
183 // client.setLEDState
184
185 int w = CDesktop::Instance()->Width();
186 int h = CDesktop::Instance()->Height();
187 client.setDimensions(w, h);
188 client.setPF(m_PixelFormat);
189 char buffer[256];
190 client.pf().print(buffer, 256);
191 qInfo(TigerVNC, "Set server pixel format:%s; width:%d, height:%d",
192 buffer, w, h);
193
194 // Mark the entire display as "dirty"
195 m_Updates.add_changed(rfb::Rect(0, 0, w, w));
196}
197
198void CConnection::clientInit(bool shared)
199{

Callers

nothing calls this directly

Calls 3

setNameMethod · 0.80
WidthMethod · 0.45
HeightMethod · 0.45

Tested by

no test coverage detected