summaryrefslogtreecommitdiffstats
path: root/src/server/net/client.h
diff options
context:
space:
mode:
authorChristian Klinger2016-09-27 15:38:39 +0200
committerChristian Klinger2016-09-27 15:38:39 +0200
commit1f6493e319016f8c375b62f2109ee57f5cea828d (patch)
treeac1635d23eaaf7090f6cc21767536ddcc9c76dae /src/server/net/client.h
parentclients in exam-mode no longer send a screenshot. Also some refactoring. (diff)
downloadpvs2-1f6493e319016f8c375b62f2109ee57f5cea828d.tar.gz
pvs2-1f6493e319016f8c375b62f2109ee57f5cea828d.tar.xz
pvs2-1f6493e319016f8c375b62f2109ee57f5cea828d.zip
Implemented 'majority vote' to determine the toolbar options.
clients in exam-mode are also displayed differently.
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();