Changeset View
Changeset View
Standalone View
Standalone View
src/file-io/collection.h
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | ***************************************************************************/ | 17 | ***************************************************************************/ | ||
18 | 18 | | |||
19 | #ifndef PALAPELI_COLLECTION_H | 19 | #ifndef PALAPELI_COLLECTION_H | ||
20 | #define PALAPELI_COLLECTION_H | 20 | #define PALAPELI_COLLECTION_H | ||
21 | 21 | | |||
22 | #include <QStandardItemModel> | 22 | #include <QStandardItemModel> | ||
23 | #include <QMutex> | ||||
24 | | ||||
23 | class KConfig; | 25 | class KConfig; | ||
24 | class KConfigGroup; | 26 | class KConfigGroup; | ||
25 | 27 | | |||
26 | namespace Palapeli | 28 | namespace Palapeli | ||
27 | { | 29 | { | ||
28 | class Puzzle; | 30 | class Puzzle; | ||
29 | 31 | | |||
30 | class Collection : public QStandardItemModel | 32 | class Collection : public QStandardItemModel | ||
Show All 20 Lines | 33 | { | |||
51 | protected: | 53 | protected: | ||
52 | Collection(); | 54 | Collection(); | ||
53 | virtual ~Collection(); | 55 | virtual ~Collection(); | ||
54 | private: | 56 | private: | ||
55 | class Item; | 57 | class Item; | ||
56 | 58 | | |||
57 | KConfig* m_config; | 59 | KConfig* m_config; | ||
58 | KConfigGroup* m_group; | 60 | KConfigGroup* m_group; | ||
61 | QMutex m_configMutex; | ||||
59 | }; | 62 | }; | ||
60 | } | 63 | } | ||
61 | 64 | | |||
62 | #endif // PALAPELI_COLLECTION_H | 65 | #endif // PALAPELI_COLLECTION_H |