diff options
Diffstat (limited to 'src/server/util/global.h')
-rw-r--r-- | src/server/util/global.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |