summaryrefslogtreecommitdiffstats
path: root/src/server/net
diff options
context:
space:
mode:
authorManuel Schneider2014-05-27 01:32:01 +0200
committerManuel Schneider2014-05-27 01:32:01 +0200
commit5c8d314be18e2ab80c3a72e3bce4a1acdb2c3fb1 (patch)
tree2834f960f7c11bbd5ebce08b60af3fcb888f94ca /src/server/net
parentChange _currentProjectionSource before emit. Fixes Appearance bug. (diff)
downloadpvs2-5c8d314be18e2ab80c3a72e3bce4a1acdb2c3fb1.tar.gz
pvs2-5c8d314be18e2ab80c3a72e3bce4a1acdb2c3fb1.tar.xz
pvs2-5c8d314be18e2ab80c3a72e3bce4a1acdb2c3fb1.zip
Drop _isBroadcastSource. The client must not know anything about the management.
Diffstat (limited to 'src/server/net')
-rw-r--r--src/server/net/client.cpp1
-rw-r--r--src/server/net/client.h3
2 files changed, 0 insertions, 4 deletions
diff --git a/src/server/net/client.cpp b/src/server/net/client.cpp
index cecd669..97d3ed3 100644
--- a/src/server/net/client.cpp
+++ b/src/server/net/client.cpp
@@ -20,7 +20,6 @@ Client::Client(QSslSocket* socket) : _socket(socket)
{
assert(socket != NULL);
_authed = 0;
- _isBroadcastSource = false;
_currentProjectionSource = 0;
_vncPort = 0;
_isTutor = false;
diff --git a/src/server/net/client.h b/src/server/net/client.h
index 8d71da7..61d1740 100644
--- a/src/server/net/client.h
+++ b/src/server/net/client.h
@@ -36,10 +36,8 @@ public:
inline const int currentProjectionSource() const { return _currentProjectionSource; }
inline const bool isActiveVncClient() const { return _currentProjectionSource > 0; }
inline const bool isActiveVncServer() const { return _vncPort > 0; }
- inline const bool isBroadcastSource() const { return _isBroadcastSource; }
// Setters
- inline void setBroadcastSource(bool enable) { _isBroadcastSource = enable; }
inline void setTutor(bool enable){ _isTutor = enable; }
//Send message stuff
@@ -62,7 +60,6 @@ private:
NetworkMessage _fromClient;
int _timerIdAuthTimeout, _timerPingTimeout;
int _id; // this client's unique id
- bool _isBroadcastSource; // Tells whether this client is currently the VNC broadcast source.
QString _vncRwPass, _vncRoPass;
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