summaryrefslogtreecommitdiffstats
path: root/src/client/vnc/vncwindow.h
diff options
context:
space:
mode:
authorManuel Schneider2014-04-23 18:10:36 +0200
committerManuel Schneider2014-04-23 18:10:36 +0200
commitb487c8b74252ac995d183da8908414238b00cb72 (patch)
treea678f29a19d28c270dde6ac8dad9402f3b118fb4 /src/client/vnc/vncwindow.h
parentProper translated concect string (diff)
downloadpvs2-b487c8b74252ac995d183da8908414238b00cb72.tar.gz
pvs2-b487c8b74252ac995d183da8908414238b00cb72.tar.xz
pvs2-b487c8b74252ac995d183da8908414238b00cb72.zip
Made vnc thread stoppable from outside. Thread kills itself. If the vnc
connection cannot be established a timeout kills the thread after a short period of time.
Diffstat (limited to 'src/client/vnc/vncwindow.h')
-rw-r--r--src/client/vnc/vncwindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/vnc/vncwindow.h b/src/client/vnc/vncwindow.h
index 396e2de..60e4835 100644
--- a/src/client/vnc/vncwindow.h
+++ b/src/client/vnc/vncwindow.h
@@ -37,8 +37,8 @@ public:
protected slots:
void onUpdateImage(const int x, const int y, const int w, const int h);
- void onThreadFinished();
void onProjectionStarted();
+ void onProjectionStopped();
void open(const QString& host, int port, const QString& passwd, bool ro, bool fullscreen, const QString& caption, const int clientId);
@@ -62,6 +62,7 @@ private:
QMap<unsigned int, bool> _modkeys;
int _clientId;
int _redrawTimer;
+ int _tcpTimeoutTimer;
bool eventFilter(QObject *obj, QEvent *event);
void keyPressEvent(QKeyEvent* event);