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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/net/client.h b/src/server/net/client.h
index e7c9c5c..81f5346 100644
--- a/src/server/net/client.h
+++ b/src/server/net/client.h
@@ -41,6 +41,8 @@ public:
inline const int desiredProjectionSource() { return _desiredSource; }
inline const int projectionSource() const { return _projectionSource; }
inline const int isExamMode() const { return _isExamMode; }
+ inline const bool wantsAttention() const { return _wantsAttention; }
+ inline const void removeAttention() { if (!_wantsAttention) return; removeAttentionInternal(); }
// Setters
inline void setTutor(bool enable) { _isTutor = enable; }
@@ -73,7 +75,8 @@ 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 _isExamMode;
+ bool _isExamMode;
+ bool _wantsAttention; // Flag telling whether the client activated the "i want attention" button
QByteArray _rawRemoteScreen;
@@ -83,6 +86,7 @@ private:
void handleMsg();
void sendMessage(NetworkMessage& message);
+ void removeAttentionInternal();
protected:
void timerEvent(QTimerEvent* event);