summaryrefslogtreecommitdiffstats
path: root/src/server/util/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/util/global.h')
-rw-r--r--src/server/util/global.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/server/util/global.h b/src/server/util/global.h
new file mode 100644
index 0000000..38eec6d
--- /dev/null
+++ b/src/server/util/global.h
@@ -0,0 +1,29 @@
+/*
+ * global.h
+ *
+ * Created on: 29.01.2013
+ * Author: sr
+ */
+
+#ifndef GLOBAL_H_
+#define GLOBAL_H_
+
+#include <QString>
+#include <QByteArray>
+
+class Global
+{
+private:
+ Global(){}
+ ~Global(){}
+
+ static QString _sessionName;
+ static QByteArray _sessionNameArray;
+
+public:
+ static const QString& sessionName() { return Global::_sessionName; }
+ static const QByteArray& sessionNameArray() { return Global::_sessionNameArray; }
+ static void setSessionName(const QString& name);
+};
+
+#endif /* GLOBAL_H_ */