mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
* [Cleanup] Unused #includes Took 44 minutes * [Cleanup] More unused #includes Took 55 minutes * [Cleanup] Include QSet Took 4 minutes * [Cleanup] Include QDebug in deck_list.cpp Took 3 minutes * [Cleanup] Include protocol stuff in servatrice_database_interface.h Took 3 minutes * [Cleanup] Include QDialogButtonBox Took 8 minutes * [Cleanup] Include QUrl Took 8 minutes * [Cleanup] Include QTextOption in header. Took 3 minutes * [Cleanup] Include QMap in user_list_manager.h Took 8 minutes * [Cleanup] Adjust qjson Took 8 minutes * [Cleanup] include button box. Took 3 minutes * [Cleanup] Redo fwd declarations. * [Cleanup] Redo last removed fwd declarations. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
33 lines
925 B
C++
33 lines
925 B
C++
/**
|
|
* @file card_database_settings.h
|
|
* @ingroup CardDatabase
|
|
* @ingroup CardSettings
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef CARDDATABASESETTINGS_H
|
|
#define CARDDATABASESETTINGS_H
|
|
|
|
#include "settings_manager.h"
|
|
|
|
#include <libcockatrice/interfaces/interface_card_set_priority_controller.h>
|
|
|
|
class CardDatabaseSettings : public SettingsManager, public ICardSetPriorityController
|
|
{
|
|
Q_OBJECT
|
|
friend class SettingsCache;
|
|
|
|
public:
|
|
void setSortKey(QString shortName, unsigned int sortKey) override;
|
|
void setEnabled(QString shortName, bool enabled) override;
|
|
void setIsKnown(QString shortName, bool isknown) override;
|
|
|
|
unsigned int getSortKey(QString shortName) override;
|
|
bool isEnabled(QString shortName) override;
|
|
bool isKnown(QString shortName) override;
|
|
|
|
private:
|
|
explicit CardDatabaseSettings(const QString &settingPath, QObject *parent = nullptr);
|
|
};
|
|
|
|
#endif // CARDDATABASESETTINGS_H
|