equal
deleted
inserted
replaced
35 class QStandardItemModel; |
35 class QStandardItemModel; |
36 |
36 |
37 /** |
37 /** |
38 * @brief Offers access to the data files of hedgewars. |
38 * @brief Offers access to the data files of hedgewars. |
39 * |
39 * |
40 * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
40 * @see <a href="https://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
41 * |
41 * |
42 * @author sheepluva |
42 * @author sheepluva |
43 * @since 0.9.17 |
43 * @since 0.9.17 |
44 */ |
44 */ |
45 class DataManager: public QObject |
45 class DataManager: public QObject |
48 |
48 |
49 public: |
49 public: |
50 /** |
50 /** |
51 * @brief Returns reference to the <i>singleton</i> instance of this class. |
51 * @brief Returns reference to the <i>singleton</i> instance of this class. |
52 * |
52 * |
53 * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
53 * @see <a href="https://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
54 * |
54 * |
55 * @return reference to the instance. |
55 * @return reference to the instance. |
56 */ |
56 */ |
57 static DataManager & instance(); |
57 static DataManager & instance(); |
58 |
58 |
139 * @brief Class constructor of the <i>singleton</i>. |
139 * @brief Class constructor of the <i>singleton</i>. |
140 * |
140 * |
141 * Not to be used from outside the class, |
141 * Not to be used from outside the class, |
142 * use the static {@link DataManager::instance()} instead. |
142 * use the static {@link DataManager::instance()} instead. |
143 * |
143 * |
144 * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
144 * @see <a href="https://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
145 */ |
145 */ |
146 DataManager(); |
146 DataManager(); |
147 |
147 |
148 GameStyleModel * m_gameStyleModel; ///< game style model instance |
148 GameStyleModel * m_gameStyleModel; ///< game style model instance |
149 HatModel * m_hatModel; ///< hat model instance |
149 HatModel * m_hatModel; ///< hat model instance |