diff options
Diffstat (limited to 'src/server/net')
-rw-r--r-- | src/server/net/client.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/server/net/client.h b/src/server/net/client.h index 32237bf..3d5158b 100644 --- a/src/server/net/client.h +++ b/src/server/net/client.h @@ -29,22 +29,22 @@ public: ~Client(); // Getters - inline bool isAuthed() { return _authed == 2; } + inline bool isAuthed() const { return _authed == 2; } inline const QString& name() const { return _name; } inline const QString& host() const { return _host; } inline const QString ip() const { return _socket->peerAddress().toString(); } - inline int id() { return _id; } - inline bool isActiveVncClient() { return _isActiveVncClient; } - inline bool isActiveVncServer() { return _vncPort > 0; } - inline bool isLocked() { return _locked; } - inline int desiredProjectionSource() { return _desiredSource; } - inline int projectionSource() { return _projectionSource; } - inline int isExamMode() { return _isExamMode; } - inline bool wantsAttention() { return _wantsAttention; } + inline int id() const { return _id; } + inline bool isActiveVncClient() const { return _isActiveVncClient; } + inline bool isActiveVncServer() const { return _vncPort > 0; } + inline bool isLocked() const { return _locked; } + inline int desiredProjectionSource() const { return _desiredSource; } + inline int projectionSource() const { return _projectionSource; } + inline int isExamMode() const { return _isExamMode; } + inline bool wantsAttention() const { return _wantsAttention; } inline void removeAttention() { if (!_wantsAttention) return; removeAttentionInternal(); } // Setters - inline void setTutor(bool enable) { _isTutor = enable; } + inline void setTutor(bool enable) { _isTutor = enable; } inline void setDesiredProjectionSource(int id) {_desiredSource = id;} inline void setExamMode(bool mode) { _isExamMode = mode; } |