mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-12 13:33:58 -07:00
Move settings cache and settings card preference provider out of libcockatrice_settings and into cockatrice
Took 52 minutes Took 9 minutes Took 1 minute
This commit is contained in:
parent
3ccb0cbb23
commit
12a2d27dfd
118 changed files with 169 additions and 134 deletions
|
|
@ -17,6 +17,9 @@ public:
|
|||
CardDatabaseManager(const CardDatabaseManager &) = delete;
|
||||
CardDatabaseManager &operator=(const CardDatabaseManager &) = delete;
|
||||
|
||||
// To be called once, before instantiation of the manager
|
||||
static void setCardPreferenceProvider(QSharedPointer<ICardPreferenceProvider> provider);
|
||||
|
||||
// Static method to access the singleton instance
|
||||
static CardDatabase *getInstance();
|
||||
static CardDatabaseQuerier *query();
|
||||
|
|
@ -24,6 +27,7 @@ public:
|
|||
private:
|
||||
CardDatabaseManager() = default; // Private constructor
|
||||
~CardDatabaseManager() = default;
|
||||
static QSharedPointer<ICardPreferenceProvider> cardPreferenceProvider;
|
||||
};
|
||||
|
||||
#endif // CARD_DATABASE_ACCESSOR_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue