Changeset View
Changeset View
Standalone View
Standalone View
src/file-io/components.h
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Line(s) | 34 | { | |||
---|---|---|---|---|---|
101 | }; | 101 | }; | ||
102 | 102 | | |||
103 | ///This is a valid mainComponent. | 103 | ///This is a valid mainComponent. | ||
104 | class CollectionStorageComponent : public Palapeli::PuzzleComponent | 104 | class CollectionStorageComponent : public Palapeli::PuzzleComponent | ||
105 | { | 105 | { | ||
106 | COMPONENT_SUBCLASS(CollectionStorage) | 106 | COMPONENT_SUBCLASS(CollectionStorage) | ||
107 | public: | 107 | public: | ||
108 | ///Takes ownership of @a group. | 108 | ///Takes ownership of @a group. | ||
109 | CollectionStorageComponent(KConfigGroup* group); | 109 | CollectionStorageComponent(KConfigGroup* group, QMutex *groupMutex); | ||
110 | virtual ~CollectionStorageComponent(); | 110 | virtual ~CollectionStorageComponent(); | ||
111 | 111 | | |||
112 | Palapeli::PuzzleComponent* cast(Type type) const Q_DECL_OVERRIDE; | 112 | Palapeli::PuzzleComponent* cast(Type type) const Q_DECL_OVERRIDE; | ||
113 | private: | 113 | private: | ||
114 | KConfigGroup* m_group; | 114 | KConfigGroup* m_group; | ||
115 | QMutex *m_groupMutex; | ||||
115 | }; | 116 | }; | ||
116 | 117 | | |||
117 | ///This is used by the collection if, instead of an actual puzzle archive, | 118 | ///This is used by the collection if, instead of an actual puzzle archive, | ||
118 | ///only a desktop file and an image is available (like for the puzzles from | 119 | ///only a desktop file and an image is available (like for the puzzles from | ||
119 | ///the default collection). | 120 | ///the default collection). | ||
120 | class RetailStorageComponent : public Palapeli::PuzzleComponent | 121 | class RetailStorageComponent : public Palapeli::PuzzleComponent | ||
121 | { | 122 | { | ||
122 | COMPONENT_SUBCLASS(RetailStorage) | 123 | COMPONENT_SUBCLASS(RetailStorage) | ||
Show All 12 Lines |