14 #ifndef CLIENTVNCVIEWER_H_
15 #define CLIENTVNCVIEWER_H_
17 #include <QSharedPointer>
34 void onUpdateImage(
const int x,
const int y,
const int w,
const int h);
41 void open(
const QString& host,
int port,
const QString& passwd,
bool ro,
bool fullscreen,
const QString& caption,
const int clientId,
const QByteArray& rawThumb);
44 void running(
const bool isRunning,
const int clientId);
65 void draw(
const int x,
const int y,
const int w,
const int h);
void draw(const int x, const int y, const int w, const int h)
Draws given part of the current VNC frame buffer to the window.
void timerEvent(QTimerEvent *event)
Called when a Qt timer fires.
void closeEvent(QCloseEvent *e)
Called by Qt if the window is requested to be closed.
void onProjectionStarted()
Triggered by _vncWorker after successfully connecting to the VNC server.
VncThread - communicate with VNC server, scale image if necessary.
bool calcScaling(const QImage *remote)
When using image scaling, calc matching pixel borders for both resolutions to prevent artifacts throu...
void terminateVncThread()
Terminates the vnc worker thread and stops all related timers.
void resizeEvent(QResizeEvent *)
void running(const bool isRunning, const int clientId)
void paintEvent(QPaintEvent *event)
Called by Qt when a part of the window should be redrawn.
void keyReleaseEvent(QKeyEvent *event)
Called when user releases a pressed key and the window has focus.
VncWindow(QWidget *parent=0)
void onUpdateImage(const int x, const int y, const int w, const int h)
Triggered by imageUpdate signal from the _vncWorker thread telling that the given region of the image...
void onProjectionStopped()
Triggered by _vncWorker when the connection to the VNC server is lost.
void open(const QString &host, int port, const QString &passwd, bool ro, bool fullscreen, const QString &caption, const int clientId, const QByteArray &rawThumb)
Show the VNC client window and connect to the given VNC server.