summaryrefslogtreecommitdiffstats
path: root/src/server/net/client.h
diff options
context:
space:
mode:
authorBjörn Hagemeister2014-06-03 16:30:02 +0200
committerBjörn Hagemeister2014-06-03 16:30:02 +0200
commit1e77797ab3ffaf617bfc1150129196a8153dda4c (patch)
tree693c069d5dd88cf83fc167b743f97f5514bddf2d /src/server/net/client.h
parentMerge branch 'master' of git.openslx.org:pvs2 (diff)
downloadpvs2-1e77797ab3ffaf617bfc1150129196a8153dda4c.tar.gz
pvs2-1e77797ab3ffaf617bfc1150129196a8153dda4c.tar.xz
pvs2-1e77797ab3ffaf617bfc1150129196a8153dda4c.zip
Removed _watchers List.
Set flag in client.h _isWatcher with getter and setter, and controlling the watchers over this value.
Diffstat (limited to 'src/server/net/client.h')
-rw-r--r--src/server/net/client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/net/client.h b/src/server/net/client.h
index d5942e8..1031838 100644
--- a/src/server/net/client.h
+++ b/src/server/net/client.h
@@ -37,9 +37,11 @@ public:
inline const bool isActiveVncClient() const { return _currentProjectionSource > 0; }
inline const bool isActiveVncServer() const { return _vncPort > 0; }
inline const bool isLocked() const { return _locked; }
+ inline const bool isWatcher() const { return _isWatcher; }
// Setters
inline void setTutor(bool enable){ _isTutor = enable; }
+ inline void setWatcher(bool enable){ _isWatcher = enable; }
//Send message stuff
void startVncServer();
@@ -65,6 +67,7 @@ private:
int _vncPort; // VNCserver state. Greater 0 -> active on this port. Equals 0 -> no server.
int _currentProjectionSource; // VNCclient state. indicating that the client is displaying a remote screen via VNC
bool _isTutor; // Flag indicating that the client has been set as a tutor
+ bool _isWatcher; // Flag indicates that the client should watch to VNC Server.
static int _clientIdCounter;