14 #ifndef VNCCLIENTTHREAD_H_
15 #define VNCCLIENTTHREAD_H_
20 #include <QSharedPointer>
26 #include <rfb/rfbclient.h>
48 QSharedPointer<QImage>
_img;
60 static void updateImage(rfbClient *client,
int x,
int y,
int w,
int h);
65 VncThread(QString host,
int port, QString passwd,
int quality);
70 void stop() { _run =
false; }
76 int const static LOW = 2;
79 void imageUpdated(
const int x,
const int y,
const int w,
const int h);
VncThread(QString host, int port, QString passwd, int quality)
Initialize this VNC client connection worker thread.
void run() override
Worker thread's mainloop, connecting to the VNC server and handling the connection.
const QSharedPointer< QImage > & getFrameBuffer()
QString getDesktopName() const
Get name of the VNC server's desktop.
void processImageUpdate(int x, int y, int w, int h)
Handle update of an area of the VNC framebuffer.
VncThread - communicate with VNC server, scale image if necessary.
static char * passwdHandler(rfbClient *client)
Callback for the vnc client lib: The VNC server is requesting a password.
void imageUpdated(const int x, const int y, const int w, const int h)
QSharedPointer< QImage > _img
static rfbBool frameBufferHandler(rfbClient *client)
Callback for the vnc client lib: The size of the remote screen has been changed, so we're supposed to...
static void updateImage(rfbClient *client, int x, int y, int w, int h)
Callback for the vnc client lib: A part of the frame buffer has changed.