diff options
author | Simon Rettberg | 2017-03-06 16:01:30 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-03-06 16:01:30 +0100 |
commit | 35c7c33c23685e00bc981a3809a3f3a3597c2f9a (patch) | |
tree | de55d0e2e81eb1842709028319237266f277c7e9 /src/server/mainwindow/mainwindow.h | |
parent | Update translations (diff) | |
download | pvs2-35c7c33c23685e00bc981a3809a3f3a3597c2f9a.tar.gz pvs2-35c7c33c23685e00bc981a3809a3f3a3597c2f9a.tar.xz pvs2-35c7c33c23685e00bc981a3809a3f3a3597c2f9a.zip |
[server] Prevent screen standby while clients are connected
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r-- | src/server/mainwindow/mainwindow.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index 988ac50..27bf264 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -76,6 +76,8 @@ private: ListenServer *_listenServer; DiscoveryListener *_discoveryListener; + int _lastClientCount; + QPoint closestFreeSlot(QPoint preferredPixels, ConnectionFrame* toIgnore); void placeFrameInFreeSlot(ConnectionFrame* frame, QPoint preferred = QPoint(-1, -1)); ConnectionFrame* createFrame(); @@ -101,6 +103,10 @@ private: void reloadCurrentRoom(); + void DisableButtons(); + void EnableButtons(); + void clientCountChanged(); + protected slots: void onSessionNameClick(); void onSessionNameUpdate(); @@ -121,8 +127,6 @@ protected slots: void onButtonExit(); void onButtonHelp(); - void DisableButtons(); - void EnableButtons(); // connection frame void onPlaceFrame(ConnectionFrame* frame); void onFrameClicked(ConnectionFrame* frame); @@ -133,6 +137,5 @@ protected slots: void onVncServerStateChange(Client* client); void onVncClientStateChange(Client* client); - void updateExamMode(); }; #endif |