Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SettingsCache Class Reference

#include <cache_settings.h>

Inheritance diagram for SettingsCache:
[legend]
Collaboration diagram for SettingsCache:
[legend]

Public Slots

void setThemeName (const QString &_themeName)

Signals

void themeChanged ()
Signals inherited from ICardDatabasePathProvider
void cardDatabasePathChanged ()

Public Member Functions

 SettingsCache ()
QString getDataPath ()
QString getSettingsPath ()
QString getCachePath () const
QString getNetworkCachePath () const
QString getCustomCardDatabasePath () const override
QString getCardDatabasePath () const override
QString getSpoilerCardDatabasePath () const override
QString getTokenDatabasePath () const override
int getKeepAlive () const override
int getTimeOut () const override
bool getNotifyAboutUpdates () const override
void setKnownMissingFeatures (const QString &_knownMissingFeatures) override
QString getKnownMissingFeatures () override
QString getClientID () override
QString getThemeName () const
ReleaseChannelgetUpdateReleaseChannel () const
QList< ReleaseChannel * > getUpdateReleaseChannels () const
int getUpdateReleaseChannelIndex () const
QStringList getCountries () const
ShortcutsSettingsshortcuts () const
CardDatabaseSettingscardDatabase () const
ServersSettingsservers () const
MessageSettingsmessages () const
GameFiltersSettingsgameFilters () const
LayoutsSettingslayouts () const
DownloadSettingsdownloads () const
RecentsSettingsrecents () const
CardOverrideSettingscardOverrides () const
DebugSettingsdebug () const
CardCounterSettingscardCounters () const
TabsSettingstabs () const
SoundSettingssound () const
GameSettingsgame () const
ChatSettingschat () const
CacheStorageSettingscacheStorage () const
UpdatesSettingsupdates () const
PersonalSettingspersonal () const
CardsDisplaySettingscardsDisplay () const
InterfaceSettingsuserInterface () const
DeckEditorSettingsdeckEditor () const
PathsSettingspaths () const
VisualDeckStorageSettingsvisualDeckStorage () const
AppearanceSettingsappearance () const
NetworkSettingsnetwork () const
CommanderBracketSettingscommanderBrackets () const
bool getIsPortableBuild () const
void resetPaths ()
 SettingsCache (const QString &fileName="servatrice.ini", QSettings::Format format=QSettings::IniFormat, QObject *parent=0)
bool getIsPortableBuild () const
Public Member Functions inherited from ICardDatabasePathProvider
virtual ~ICardDatabasePathProvider ()=default
Public Member Functions inherited from INetworkSettingsProvider
virtual ~INetworkSettingsProvider ()=default

Static Public Member Functions

static SettingsCacheinstance ()
static QString guessConfigurationPath ()

Public Attributes

QList< QRegularExpression > disallowedRegExp

Private Member Functions

QString getSafeConfigPath (QString configEntry, QString defaultPath) const
QString getSafeConfigFilePath (QString configEntry, QString defaultPath) const
void loadPaths ()

Private Attributes

QSettings * settings
ShortcutsSettingsshortcutsSettings
CardDatabaseSettingscardDatabaseSettings
ServersSettingsserversSettings
MessageSettingsmessageSettings
GameFiltersSettingsgameFiltersSettings
LayoutsSettingslayoutsSettings
DownloadSettingsdownloadSettings
RecentsSettingsrecentsSettings
CardOverrideSettingscardOverrideSettings
DebugSettingsdebugSettings
CardCounterSettingscardCounterSettings
TabsSettingstabsSettings
SoundSettingssoundSettings
GameSettingsgameSettings
ChatSettingschatSettings
CacheStorageSettingscacheStorageSettings
UpdatesSettingsupdatesSettings
PersonalSettingspersonalSettings
CardsDisplaySettingscardsDisplaySettings
InterfaceSettingsinterfaceSettings
DeckEditorSettingsdeckEditorSettings
PathsSettingspathsSettings
VisualDeckStorageSettingsvisualDeckStorageSettings
AppearanceSettingsappearanceSettings
NetworkSettingsnetworkSettings
CommanderBracketSettingscommanderBracketSettings
QString themeName
QList< ReleaseChannel * > releaseChannels
bool isPortableBuild

Constructor & Destructor Documentation

◆ SettingsCache() [1/2]

SettingsCache::SettingsCache ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SettingsCache() [2/2]

SettingsCache::SettingsCache ( const QString & fileName = "servatrice.ini",
QSettings::Format format = QSettings::IniFormat,
QObject * parent = 0 )

Member Function Documentation

◆ appearance()

AppearanceSettings & SettingsCache::appearance ( ) const
nodiscard
Here is the caller graph for this function:

◆ cacheStorage()

CacheStorageSettings & SettingsCache::cacheStorage ( ) const
nodiscard
Here is the caller graph for this function:

◆ cardCounters()

CardCounterSettings & SettingsCache::cardCounters ( ) const
nodiscard
Here is the caller graph for this function:

◆ cardDatabase()

CardDatabaseSettings & SettingsCache::cardDatabase ( ) const
nodiscard

◆ cardOverrides()

CardOverrideSettings & SettingsCache::cardOverrides ( ) const
nodiscard
Here is the caller graph for this function:

◆ cardsDisplay()

CardsDisplaySettings & SettingsCache::cardsDisplay ( ) const
nodiscard
Here is the caller graph for this function:

◆ chat()

ChatSettings & SettingsCache::chat ( ) const
nodiscard
Here is the caller graph for this function:

◆ commanderBrackets()

CommanderBracketSettings & SettingsCache::commanderBrackets ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ debug()

DebugSettings & SettingsCache::debug ( ) const
nodiscard
Here is the caller graph for this function:

◆ deckEditor()

DeckEditorSettings & SettingsCache::deckEditor ( ) const
nodiscard
Here is the caller graph for this function:

◆ downloads()

DownloadSettings & SettingsCache::downloads ( ) const
nodiscard
Here is the caller graph for this function:

◆ game()

GameSettings & SettingsCache::game ( ) const
nodiscard
Here is the caller graph for this function:

◆ gameFilters()

GameFiltersSettings & SettingsCache::gameFilters ( ) const
nodiscard
Here is the caller graph for this function:

◆ getCachePath()

QString SettingsCache::getCachePath ( ) const
nodiscard
Here is the caller graph for this function:

◆ getCardDatabasePath()

QString SettingsCache::getCardDatabasePath ( ) const
nodiscardoverridevirtual

Implements ICardDatabasePathProvider.

Here is the caller graph for this function:

◆ getClientID()

QString SettingsCache::getClientID ( )
overridevirtual

◆ getCountries()

QStringList SettingsCache::getCountries ( ) const
nodiscard
Here is the caller graph for this function:

◆ getCustomCardDatabasePath()

QString SettingsCache::getCustomCardDatabasePath ( ) const
nodiscardoverridevirtual

Implements ICardDatabasePathProvider.

Here is the caller graph for this function:

◆ getDataPath()

QString SettingsCache::getDataPath ( )
Here is the caller graph for this function:

◆ getIsPortableBuild() [1/2]

bool SettingsCache::getIsPortableBuild ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getIsPortableBuild() [2/2]

bool SettingsCache::getIsPortableBuild ( ) const
inline

◆ getKeepAlive()

int SettingsCache::getKeepAlive ( ) const
nodiscardoverridevirtual

◆ getKnownMissingFeatures()

QString SettingsCache::getKnownMissingFeatures ( )
nodiscardoverridevirtual

◆ getNetworkCachePath()

QString SettingsCache::getNetworkCachePath ( ) const
nodiscard
Here is the call graph for this function:

◆ getNotifyAboutUpdates()

bool SettingsCache::getNotifyAboutUpdates ( ) const
nodiscardoverridevirtual

Implements INetworkSettingsProvider.

Here is the caller graph for this function:

◆ getSafeConfigFilePath()

QString SettingsCache::getSafeConfigFilePath ( QString configEntry,
QString defaultPath ) const
nodiscardprivate

◆ getSafeConfigPath()

QString SettingsCache::getSafeConfigPath ( QString configEntry,
QString defaultPath ) const
nodiscardprivate

◆ getSettingsPath()

QString SettingsCache::getSettingsPath ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSpoilerCardDatabasePath()

QString SettingsCache::getSpoilerCardDatabasePath ( ) const
nodiscardoverridevirtual

Implements ICardDatabasePathProvider.

Here is the caller graph for this function:

◆ getThemeName()

QString SettingsCache::getThemeName ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getTimeOut()

int SettingsCache::getTimeOut ( ) const
nodiscardoverridevirtual

◆ getTokenDatabasePath()

QString SettingsCache::getTokenDatabasePath ( ) const
nodiscardoverridevirtual

Implements ICardDatabasePathProvider.

Here is the caller graph for this function:

◆ getUpdateReleaseChannel()

ReleaseChannel * SettingsCache::getUpdateReleaseChannel ( ) const
nodiscard
Here is the caller graph for this function:

◆ getUpdateReleaseChannelIndex()

int SettingsCache::getUpdateReleaseChannelIndex ( ) const
nodiscard
Here is the caller graph for this function:

◆ getUpdateReleaseChannels()

QList< ReleaseChannel * > SettingsCache::getUpdateReleaseChannels ( ) const
nodiscard

◆ guessConfigurationPath()

QString SettingsCache::guessConfigurationPath ( )
static
Here is the caller graph for this function:

◆ instance()

SettingsCache & SettingsCache::instance ( )
static
Here is the call graph for this function:

◆ layouts()

LayoutsSettings & SettingsCache::layouts ( ) const
nodiscard
Here is the caller graph for this function:

◆ loadPaths()

void SettingsCache::loadPaths ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ messages()

MessageSettings & SettingsCache::messages ( ) const
nodiscard
Here is the caller graph for this function:

◆ network()

NetworkSettings & SettingsCache::network ( ) const
nodiscard
Here is the caller graph for this function:

◆ paths()

PathsSettings & SettingsCache::paths ( ) const
nodiscard
Here is the caller graph for this function:

◆ personal()

PersonalSettings & SettingsCache::personal ( ) const
nodiscard
Here is the caller graph for this function:

◆ recents()

RecentsSettings & SettingsCache::recents ( ) const
nodiscard
Here is the caller graph for this function:

◆ resetPaths()

void SettingsCache::resetPaths ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ servers()

ServersSettings & SettingsCache::servers ( ) const
nodiscard
Here is the caller graph for this function:

◆ setKnownMissingFeatures()

void SettingsCache::setKnownMissingFeatures ( const QString & _knownMissingFeatures)
overridevirtual

◆ setThemeName

void SettingsCache::setThemeName ( const QString & _themeName)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ shortcuts()

ShortcutsSettings & SettingsCache::shortcuts ( ) const
nodiscard
Here is the caller graph for this function:

◆ sound()

SoundSettings & SettingsCache::sound ( ) const
nodiscard
Here is the caller graph for this function:

◆ tabs()

TabsSettings & SettingsCache::tabs ( ) const
nodiscard
Here is the caller graph for this function:

◆ themeChanged

void SettingsCache::themeChanged ( )
signal
Here is the caller graph for this function:

◆ updates()

UpdatesSettings & SettingsCache::updates ( ) const
nodiscard
Here is the caller graph for this function:

◆ userInterface()

InterfaceSettings & SettingsCache::userInterface ( ) const
nodiscard
Here is the caller graph for this function:

◆ visualDeckStorage()

VisualDeckStorageSettings & SettingsCache::visualDeckStorage ( ) const
nodiscard
Here is the caller graph for this function:

Member Data Documentation

◆ appearanceSettings

AppearanceSettings* SettingsCache::appearanceSettings
private

◆ cacheStorageSettings

CacheStorageSettings* SettingsCache::cacheStorageSettings
private

◆ cardCounterSettings

CardCounterSettings* SettingsCache::cardCounterSettings
private

◆ cardDatabaseSettings

CardDatabaseSettings* SettingsCache::cardDatabaseSettings
private

◆ cardOverrideSettings

CardOverrideSettings* SettingsCache::cardOverrideSettings
private

◆ cardsDisplaySettings

CardsDisplaySettings* SettingsCache::cardsDisplaySettings
private

◆ chatSettings

ChatSettings* SettingsCache::chatSettings
private

◆ commanderBracketSettings

CommanderBracketSettings* SettingsCache::commanderBracketSettings
private

◆ debugSettings

DebugSettings* SettingsCache::debugSettings
private

◆ deckEditorSettings

DeckEditorSettings* SettingsCache::deckEditorSettings
private

◆ disallowedRegExp

QList<QRegularExpression> SettingsCache::disallowedRegExp

◆ downloadSettings

DownloadSettings* SettingsCache::downloadSettings
private

◆ gameFiltersSettings

GameFiltersSettings* SettingsCache::gameFiltersSettings
private

◆ gameSettings

GameSettings* SettingsCache::gameSettings
private

◆ interfaceSettings

InterfaceSettings* SettingsCache::interfaceSettings
private

◆ isPortableBuild

bool SettingsCache::isPortableBuild
private

◆ layoutsSettings

LayoutsSettings* SettingsCache::layoutsSettings
private

◆ messageSettings

MessageSettings* SettingsCache::messageSettings
private

◆ networkSettings

NetworkSettings* SettingsCache::networkSettings
private

◆ pathsSettings

PathsSettings* SettingsCache::pathsSettings
private

◆ personalSettings

PersonalSettings* SettingsCache::personalSettings
private

◆ recentsSettings

RecentsSettings* SettingsCache::recentsSettings
private

◆ releaseChannels

QList<ReleaseChannel *> SettingsCache::releaseChannels
private

◆ serversSettings

ServersSettings* SettingsCache::serversSettings
private

◆ settings

QSettings* SettingsCache::settings
private

◆ shortcutsSettings

ShortcutsSettings* SettingsCache::shortcutsSettings
private

◆ soundSettings

SoundSettings* SettingsCache::soundSettings
private

◆ tabsSettings

TabsSettings* SettingsCache::tabsSettings
private

◆ themeName

QString SettingsCache::themeName
private

◆ updatesSettings

UpdatesSettings* SettingsCache::updatesSettings
private

◆ visualDeckStorageSettings

VisualDeckStorageSettings* SettingsCache::visualDeckStorageSettings
private

The documentation for this class was generated from the following files: