Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
game_filters_settings.h
Go to the documentation of this file.
1
7
8#ifndef GAMEFILTERSSETTINGS_H
9#define GAMEFILTERSSETTINGS_H
10
11#include "settings_manager.h"
12
14{
15 Q_OBJECT
16 friend class SettingsCache;
17
18public:
20 bool isHideFullGames();
26 QString getGameNameFilter();
27 QStringList getCreatorNameFilters();
28 int getMinPlayers();
29 int getMaxPlayers();
30 QTime getMaxGameAge();
31 bool isGameTypeEnabled(QString gametype);
36
37 void setHideBuddiesOnlyGames(bool hide);
38 void setHideIgnoredUserGames(bool hide);
39 void setHideOpenDecklistGames(bool hide);
40 void setHideFullGames(bool hide);
41 void setHideGamesThatStarted(bool hide);
42 void setHidePasswordProtectedGames(bool hide);
43 void setHideNotBuddyCreatedGames(bool hide);
44 void setGameNameFilter(QString gameName);
45 void setCreatorNameFilters(QStringList creatorName);
46 void setMinPlayers(int min);
47 void setMaxPlayers(int max);
48 void setMaxGameAge(const QTime &maxGameAge);
49 void setGameTypeEnabled(QString gametype, bool enabled);
50 void setGameHashedTypeEnabled(QString gametypeHASHED, bool enabled);
51 void setShowOnlyIfSpectatorsCanWatch(bool show);
53 void setShowOnlyIfSpectatorsCanChat(bool show);
55
56private:
57 explicit GameFiltersSettings(const QString &settingPath, QObject *parent = nullptr);
59
60 [[nodiscard]] QString hashGameType(const QString &gameType) const;
61};
62
63#endif // GAMEFILTERSSETTINGS_H
GameFiltersSettings(const QString &settingPath, QObject *parent=nullptr)
Definition game_filters_settings.cpp:6
QStringList getCreatorNameFilters()
Definition game_filters_settings.cpp:112
void setHideIgnoredUserGames(bool hide)
Definition game_filters_settings.cpp:64
void setShowOnlyIfSpectatorsCanSeeHands(bool show)
Definition game_filters_settings.cpp:199
bool isShowOnlyIfSpectatorsCanChat()
Definition game_filters_settings.cpp:193
GameFiltersSettings(const GameFiltersSettings &)
void setHideFullGames(bool hide)
Definition game_filters_settings.cpp:31
void setShowOnlyIfSpectatorsCanChat(bool show)
Definition game_filters_settings.cpp:188
void setHideNotBuddyCreatedGames(bool hide)
Definition game_filters_settings.cpp:75
void setMinPlayers(int min)
Definition game_filters_settings.cpp:117
void setMaxGameAge(const QTime &maxGameAge)
Definition game_filters_settings.cpp:139
bool isHideIgnoredUserGames()
Definition game_filters_settings.cpp:69
void setShowOnlyIfSpectatorsCanWatch(bool show)
Definition game_filters_settings.cpp:166
void setHidePasswordProtectedGames(bool hide)
Definition game_filters_settings.cpp:53
bool isHideGamesThatStarted()
Definition game_filters_settings.cpp:47
bool isShowOnlyIfSpectatorsCanWatch()
Definition game_filters_settings.cpp:171
bool isHidePasswordProtectedGames()
Definition game_filters_settings.cpp:58
void setGameNameFilter(QString gameName)
Definition game_filters_settings.cpp:97
QString hashGameType(const QString &gameType) const
Definition game_filters_settings.cpp:15
friend class SettingsCache
Definition game_filters_settings.h:16
void setGameTypeEnabled(QString gametype, bool enabled)
Definition game_filters_settings.cpp:150
QString getGameNameFilter()
Definition game_filters_settings.cpp:102
void setHideOpenDecklistGames(bool hide)
Definition game_filters_settings.cpp:86
int getMaxPlayers()
Definition game_filters_settings.cpp:133
bool isShowOnlyIfSpectatorsCanSeeHands()
Definition game_filters_settings.cpp:204
void setMaxPlayers(int max)
Definition game_filters_settings.cpp:128
void setGameHashedTypeEnabled(QString gametypeHASHED, bool enabled)
Definition game_filters_settings.cpp:155
bool isShowSpectatorPasswordProtected()
Definition game_filters_settings.cpp:182
bool isHideFullGames()
Definition game_filters_settings.cpp:36
void setHideGamesThatStarted(bool hide)
Definition game_filters_settings.cpp:42
bool isHideNotBuddyCreatedGames()
Definition game_filters_settings.cpp:80
void setShowSpectatorPasswordProtected(bool show)
Definition game_filters_settings.cpp:177
int getMinPlayers()
Definition game_filters_settings.cpp:122
bool isHideBuddiesOnlyGames()
Definition game_filters_settings.cpp:25
void setHideBuddiesOnlyGames(bool hide)
Definition game_filters_settings.cpp:20
bool isGameTypeEnabled(QString gametype)
Definition game_filters_settings.cpp:160
bool isHideOpenDecklistGames()
Definition game_filters_settings.cpp:91
QTime getMaxGameAge()
Definition game_filters_settings.cpp:144
void setCreatorNameFilters(QStringList creatorName)
Definition game_filters_settings.cpp:107
SettingsManager(const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
Definition settings_manager.cpp:3
TODO: Document this.