1 /*
2  * Copyright © 2015-2016 Antti Lamminsalo
3  *
4  * This file is part of Orion.
5  *
6  * Orion is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with Orion.  If not, see <http://www.gnu.org/licenses/>.
13  */
14 
15 #ifndef GAME_H
16 #define GAME_H
17 
18 #include <QObject>
19 #include <QString>
20 
21 class Game : public QObject
22 {
23     Q_OBJECT
24 
25     uint id;
26     QString name;
27     QString logo;
28     QString preview;
29     quint32 viewers;
30 
31 public:
32     Game();
33     Game(const Game&);
~Game()34     ~Game(){}
35 
36     QString getName() const;
37     void setName(const QString &value);
38 
39     QString getLogo() const;
40     void setLogo(const QString &value);
41 
42     quint32 getViewers() const;
43     void setViewers(const quint32 &value);
44 
45     QString getPreview() const;
46     void setPreview(const QString &value);
47 
48     uint getId() const;
49     void setId(const uint &value);
50 
51 signals:
52     void updated();
53 };
54 Q_DECLARE_METATYPE(Game)
55 
56 #endif // GAME_H
57