summaryrefslogtreecommitdiffstats
path: root/src/server/net/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/net/client.h')
-rw-r--r--src/server/net/client.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/server/net/client.h b/src/server/net/client.h
index 6dbb5bd..5e1b8b4 100644
--- a/src/server/net/client.h
+++ b/src/server/net/client.h
@@ -35,22 +35,15 @@ public:
inline const QString& host() const { return _host; }
inline const QString ip() const { return _socket->peerAddress().toString(); }
inline const int id() const { return _id; }
- inline const int desiredProjectionSource(){ return _desiredSource; }
- inline const int projectionSource() const { return _projectionSource; }
inline const bool isActiveVncClient() const { return _isActiveVncClient; }
inline const bool isActiveVncServer() const { return _vncPort > 0; }
inline const bool isLocked() const { return _locked; }
- inline const bool isWatcher() const { return _desiredSource != 0; }
-
-
+ inline const int desiredProjectionSource(){ return _desiredSource; }
+ inline const int projectionSource() const { return _projectionSource; }
// Setters
inline void setTutor(bool enable){ _isTutor = enable; }
- inline void setWatcher(bool enable){ _isWatcher = enable; }
- inline void setDesiredProjectionSource(int id){
- qDebug() << "ID" <<_id << " new source " << _desiredSource;
- _desiredSource = id;
- }
+ inline void setDesiredProjectionSource(int id){_desiredSource = id;}
//Send message stuff
void startVncServer();
@@ -78,7 +71,6 @@ private:
int _projectionSource; // The source the client was or is connected to (depends on _isActiveVncClient)
bool _isActiveVncClient; // 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;