![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <interface_card_set_priority_controller.h>
Classes | |
| struct | SetSaveData |
| struct | SetOptions |
| Bundled per-set priority options, returned in a single call. More... | |
Public Member Functions | |
| virtual | ~ICardSetPriorityController ()=default |
| virtual void | setSortKey (QString shortName, unsigned int sortKey)=0 |
| virtual void | setEnabled (QString shortName, bool enabled)=0 |
| virtual void | setIsKnown (QString shortName, bool isknown)=0 |
| virtual unsigned int | getSortKey (QString shortName) const =0 |
| virtual bool | isEnabled (QString shortName) const =0 |
| virtual bool | isKnown (QString shortName) const =0 |
| virtual SetOptions | getSetOptions (QString shortName) const =0 |
| Returns the bundled priority options for a set in a single call. | |
| virtual QStringList | getEnabledSetNames () const =0 |
| Returns the short names of every set currently marked as enabled. | |
| virtual void | saveSets (const QVector< SetSaveData > &data)=0 |
| Persists per-set options for every entry in a single settings flush. | |
|
virtualdefault |
|
pure virtual |
Returns the short names of every set currently marked as enabled.
Callers fold this into the card database cache source hash so that toggling set enablement invalidates the cache.
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Returns the bundled priority options for a set in a single call.
| shortName | The set's short name. |
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Persists per-set options for every entry in a single settings flush.
Each individual setSortKey/setEnabled/setIsKnown call re-opens and re-syncs the whole .ini when backed by QSettings, so persisting hundreds of sets one option at a time freezes the GUI thread for seconds. Callers that touch more than a handful of sets must bundle the records and call this once.
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.
|
pure virtual |
Implemented in CardDatabaseSettings, and NoopCardSetPriorityController.