Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
card_set_list.h
Go to the documentation of this file.
1
#ifndef COCKATRICE_CARD_SET_LIST_H
2
#define COCKATRICE_CARD_SET_LIST_H
3
4
#include "
card_set.h
"
5
6
#include <QList>
7
#include <QSharedPointer>
8
#include <QStringList>
9
21
class
CardSetList
:
public
QList
<CardSetPtr>
22
{
23
private
:
31
class
KeyCompareFunctor
;
32
33
public
:
40
void
sortByKey
();
41
52
void
enableAllBatched
(
ICardSetPriorityController
*controller);
53
63
void
enableAllUnknownBatched
(
ICardSetPriorityController
*controller);
64
73
void
markAllAsKnownBatched
(
ICardSetPriorityController
*controller);
74
80
int
getEnabledSetsNum
();
81
87
int
getUnknownSetsNum
();
88
94
QStringList
getUnknownSetsNames
();
95
102
void
defaultSort
();
103
};
104
105
#endif
// COCKATRICE_CARD_SET_LIST_H
card_set.h
CardSetList::KeyCompareFunctor
Internal comparison functor for sorting by sort key.
Definition
card_set_list.cpp:13
CardSetList
A list-like container for CardSet objects with extended management methods.
Definition
card_set_list.h:22
CardSetList::defaultSort
void defaultSort()
Sorts the list by default rules.
Definition
card_set_list.cpp:151
CardSetList::enableAllUnknownBatched
void enableAllUnknownBatched(ICardSetPriorityController *controller)
Enables all sets that are unknown or ignored, persisting in one flush.
Definition
card_set_list.cpp:67
CardSetList::enableAllBatched
void enableAllBatched(ICardSetPriorityController *controller)
Enables every set with fresh sort keys, persisting in one flush.
Definition
card_set_list.cpp:96
CardSetList::getUnknownSetsNames
QStringList getUnknownSetsNames()
Collects the short names of all sets marked as unknown.
Definition
card_set_list.cpp:55
CardSetList::sortByKey
void sortByKey()
Sorts the set list by each set’s assigned sort key.
Definition
card_set_list.cpp:26
CardSetList::markAllAsKnownBatched
void markAllAsKnownBatched(ICardSetPriorityController *controller)
Marks all sets as known and adjusts their enabled state, persisting in one flush.
Definition
card_set_list.cpp:122
CardSetList::getEnabledSetsNum
int getEnabledSetsNum()
Counts the number of sets that are currently enabled.
Definition
card_set_list.cpp:31
CardSetList::getUnknownSetsNum
int getUnknownSetsNum()
Counts the number of sets that are currently unknown.
Definition
card_set_list.cpp:43
ICardSetPriorityController
Definition
interface_card_set_priority_controller.h:8
QList
Definition
remote_connection_controller.h:20
libcockatrice_card
libcockatrice
card
set
card_set_list.h
Generated by
1.18.0