blob: d4fed6cd85440b69a0c7693fd8ba6b52d8a4fc37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* global.h
*
* Created on: 29.01.2013
* Author: sr
*/
#ifndef GLOBAL_H_
#define GLOBAL_H_
#include <QString>
#include <QByteArray>
#include <QMap>
#include <QPair>
#include <QPoint>
#include <QList>
class Global
{
private:
Global(){}
~Global(){}
static QString _sessionName;
static QByteArray _sessionNameArray;
static QMap<QString, QMap<QString, QPoint> > _rooms;
static QString _currentRoom;
public:
static const QString& sessionName() { return Global::_sessionName; }
static const QByteArray& sessionNameArray() { return Global::_sessionNameArray; }
static void setSessionName(const QString& name);
static void setSessionName();
static void setRooms(const QMap<QString, QMap<QString, QPoint> > & roomList);
static const QMap<QString, QMap<QString, QPoint> >& getRooms() {
return _rooms;
}
static void setCurrentRoom(QString room);
static const QString& getCurrentRoom() { return _currentRoom; }
};
#endif /* GLOBAL_H_ */
|