projects
/
yandex-traffic
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Correct translation load process.
[yandex-traffic]
/
regions.hpp
1
#ifndef __REGIONS_H__
2
#define __REGIONS_H__
3
4
#include <QtCore>
5
6
7
class RegionInfo
8
{
9
private:
10
QString _id;
11
QString _name;
12
13
public:
14
RegionInfo (const QString &id, const QString &name)
15
: _id (id),
16
_name (name)
17
{};
18
19
QString id () const
20
{ return _id; };
21
22
QString name () const
23
{ return _name; };
24
};
25
26
27
// Map between region ID and it's information
28
class RegionsTable
29
{
30
private:
31
QMap<QString, RegionInfo> _map;
32
33
void makeDefaultTable ();
34
35
public:
36
RegionsTable ();
37
38
const RegionInfo *lookup (const QString &id) const;
39
};
40
41
#endif // __REGIONS_H__