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.
| 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. |
| 600 | void 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 | |
| 621 | void CBackendVnc::resizeFramebuffer() |
| 622 | { |
nothing calls this directly
no test coverage detected