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

Method initDone

Plugins/TigerVnc/Client/BackendVnc.cpp:600–619  ·  view source on GitHub ↗

initDone() is called when the serverInit message has been received. At this point we create the desktop window and display it. We also tell the server the pixel format and encodings to use and request the first update.

Source from the content-addressed store, hash-verified

598// this point we create the desktop window and display it. We also tell the
599// server the pixel format and encodings to use and request the first update.
600void CBackendVnc::initDone()
601{
602 Q_ASSERT(m_pPara);
603 qDebug(log, "initDone: %s", ConnectInformation().toStdString().c_str());
604
605 emit sigSetDesktopSize(server.width(), server.height());
606 QString szName = QString::fromUtf8(server.name());
607 emit sigServerName(szName);
608
609 //Set viewer frame buffer
610 setFramebuffer(new CFramePixelBuffer(server.width(), server.height()));
611
612 // Force a switch to the format and encoding we'd like
613 // Set Preferred Encoding
614 setPreferredEncoding(m_pPara->GetPreferredEncoding());
615 updatePixelFormat();
616
617 emit sigSecurityLevel(m_SecurityLevel);
618 emit sigRunning();
619}
620
621void CBackendVnc::resizeFramebuffer()
622{

Callers

nothing calls this directly

Calls 1

GetPreferredEncodingMethod · 0.80

Tested by

no test coverage detected