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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/net/client.h b/src/server/net/client.h
index d2097ad..872d0e1 100644
--- a/src/server/net/client.h
+++ b/src/server/net/client.h
@@ -18,6 +18,7 @@ struct ClientLogin
QString name;
QString host;
QString ip;
+ bool examMode;
};
@@ -40,10 +41,12 @@ public:
inline const bool isLocked() const { return _locked; }
inline const int desiredProjectionSource(){ return _desiredSource; }
inline const int projectionSource() const { return _projectionSource; }
+ inline const int isExamMode() const { return _isExamMode; }
// Setters
inline void setTutor(bool enable){ _isTutor = enable; }
inline void setDesiredProjectionSource(int id){_desiredSource = id;}
+ inline void setExamMode(bool mode) { _isExamMode = mode; }
//Send message stuff
void startVncServer();
@@ -71,8 +74,10 @@ 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;
QByteArray _rawRemoteScreen;
+
static int _clientIdCounter;
bool isManagerMachine();