summaryrefslogtreecommitdiffstats
path: root/src/server/util
diff options
context:
space:
mode:
authorChristian Klinger2016-05-30 11:55:35 +0200
committerChristian Klinger2016-05-30 11:55:35 +0200
commitb5cc655b555d729a25de54d4edffba5e214d937e (patch)
tree7b5e5884eccf3d07fc987ce990f770718b7e758d /src/server/util
parentNeues Dozentenlogo. (diff)
downloadpvs2-b5cc655b555d729a25de54d4edffba5e214d937e.tar.gz
pvs2-b5cc655b555d729a25de54d4edffba5e214d937e.tar.xz
pvs2-b5cc655b555d729a25de54d4edffba5e214d937e.zip
Added examMode to server (this also changes the style of the toolbar)
Diffstat (limited to 'src/server/util')
-rw-r--r--src/server/util/global.cpp1
-rw-r--r--src/server/util/global.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/server/util/global.cpp b/src/server/util/global.cpp
index 39e72fb..bdb462f 100644
--- a/src/server/util/global.cpp
+++ b/src/server/util/global.cpp
@@ -48,3 +48,4 @@ const Room* Global::getCurrentRoom() {
}
}
bool Global::manager_only = false;
+bool Global::_isExam = false;
diff --git a/src/server/util/global.h b/src/server/util/global.h
index 4a71348..08ec00a 100644
--- a/src/server/util/global.h
+++ b/src/server/util/global.h
@@ -40,6 +40,8 @@ private:
static QMap<QString, Room*> _rooms;
static QString _currentRoom;
+ static bool _isExam;
+
public:
static const QString& sessionName() { return Global::_sessionName; }
static const QByteArray& sessionNameArray() { return Global::_sessionNameArray; }
@@ -53,6 +55,8 @@ public:
return _rooms;
}
+ static bool isExam() { return _isExam; }
+ static void setExam(bool b) { _isExam = b; }
static void setCurrentRoom(QString room);
static const QString& getCurrentRoomName() { return _currentRoom; }