equal
deleted
inserted
replaced
27 #include <QDir> |
27 #include <QDir> |
28 #include <QFile> |
28 #include <QFile> |
29 |
29 |
30 #include <QStringList> |
30 #include <QStringList> |
31 |
31 |
|
32 #include "GameStyleModel.h" |
32 #include "HatModel.h" |
33 #include "HatModel.h" |
33 #include "MapModel.h" |
34 #include "MapModel.h" |
34 #include "ThemeModel.h" |
35 #include "ThemeModel.h" |
35 |
36 |
36 class QDir; |
37 class QDir; |
37 class QFile; |
38 class QFile; |
38 class QStringList; |
39 class QStringList; |
|
40 class GameStyleModel; |
39 class HatModel; |
41 class HatModel; |
40 class MapModel; |
42 class MapModel; |
41 class ThemeModel; |
43 class ThemeModel; |
42 |
44 |
43 /** |
45 /** |
96 */ |
98 */ |
97 QString findFileForWrite(const QString & relativeDataFilePath) const; |
99 QString findFileForWrite(const QString & relativeDataFilePath) const; |
98 |
100 |
99 |
101 |
100 /** |
102 /** |
|
103 * @brief Returns pointer to a model of available game styles. |
|
104 * |
|
105 * The model is updated automatically on data reload. |
|
106 * |
|
107 * @return game style model pointer. |
|
108 */ |
|
109 GameStyleModel * gameStyleModel(); |
|
110 |
|
111 /** |
101 * @brief Returns pointer to a model of available hats. |
112 * @brief Returns pointer to a model of available hats. |
102 * |
113 * |
103 * The model is updated automatically on data reload. |
114 * The model is updated automatically on data reload. |
104 * |
115 * |
105 * @return hat model pointer. |
116 * @return hat model pointer. |
146 DataManager(); |
157 DataManager(); |
147 |
158 |
148 QDir * m_defaultData; ///< directory of the installed data |
159 QDir * m_defaultData; ///< directory of the installed data |
149 QDir * m_userData; ///< directory of custom data in the user's directory |
160 QDir * m_userData; ///< directory of custom data in the user's directory |
150 |
161 |
|
162 GameStyleModel * m_gameStyleModel; ///< game style model instance |
151 HatModel * m_hatModel; ///< hat model instance |
163 HatModel * m_hatModel; ///< hat model instance |
152 MapModel * m_mapModel; ///< map model instance |
164 MapModel * m_mapModel; ///< map model instance |
153 ThemeModel * m_themeModel; ///< theme model instance |
165 ThemeModel * m_themeModel; ///< theme model instance |
154 }; |
166 }; |
155 |
167 |