Cockatrice 2026-10-19-Development-3.1.2-beta.2
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
ReleaseChannel * getUpdateReleaseChannel () const
QList< ReleaseChannel * > getUpdateReleaseChannels () const
int getUpdateReleaseChannelIndex () const
QStringList getCountries () const
ShortcutsSettings & shortcuts () const
CardDatabaseSettings & cardDatabase () const
ServersSettings & servers () const
MessageSettings & messages () const
GameFiltersSettings & gameFilters () const
LayoutsSettings & layouts () const
DownloadSettings & downloads () const
RecentsSettings & recents () const
CardOverrideSettings & cardOverrides () const
DebugSettings & debug () const
CardCounterSettings & cardCounters () const
TabsSettings & tabs () const
SoundSettings & sound () const
GameSettings & game () const
ChatSettings & chat () const
CacheStorageSettings & cacheStorage () const
UpdatesSettings & updates () const
PersonalSettings & personal () const
CardsDisplaySettings & cardsDisplay () const
InterfaceSettings & userInterface () const
DeckEditorSettings & deckEditor () const
PathsSettings & paths () const
VisualDeckStorageSettings & visualDeckStorage () const
AppearanceSettings & appearance () const
NetworkSettings & network () const
CommanderBracketSettings & commanderBrackets () 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 SettingsCache & instance ()
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 = nullptr
ShortcutsSettings * shortcutsSettings = nullptr
CardDatabaseSettings * cardDatabaseSettings = nullptr
ServersSettings * serversSettings = nullptr
MessageSettings * messageSettings = nullptr
GameFiltersSettings * gameFiltersSettings = nullptr
LayoutsSettings * layoutsSettings = nullptr
DownloadSettings * downloadSettings = nullptr
RecentsSettings * recentsSettings = nullptr
CardOverrideSettings * cardOverrideSettings = nullptr
DebugSettings * debugSettings = nullptr
CardCounterSettings * cardCounterSettings = nullptr
TabsSettings * tabsSettings = nullptr
SoundSettings * soundSettings = nullptr
GameSettings * gameSettings = nullptr
ChatSettings * chatSettings = nullptr
CacheStorageSettings * cacheStorageSettings = nullptr
UpdatesSettings * updatesSettings = nullptr
PersonalSettings * personalSettings = nullptr
CardsDisplaySettings * cardsDisplaySettings = nullptr
InterfaceSettings * interfaceSettings = nullptr
DeckEditorSettings * deckEditorSettings = nullptr
PathsSettings * pathsSettings = nullptr
VisualDeckStorageSettings * visualDeckStorageSettings = nullptr
AppearanceSettings * appearanceSettings = nullptr
NetworkSettings * networkSettings = nullptr
CommanderBracketSettings * commanderBracketSettings = nullptr
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 call graph for this function:
Here is the caller graph for this function:

◆ getClientID()

QString SettingsCache::getClientID ( )
overridevirtual

Implements INetworkSettingsProvider.

Here is the call graph for this function:

◆ 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 call graph for this function:
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

Implements INetworkSettingsProvider.

Here is the call graph for this function:

◆ getKnownMissingFeatures()

QString SettingsCache::getKnownMissingFeatures ( )
nodiscardoverridevirtual

Implements INetworkSettingsProvider.

Here is the call graph for this function:

◆ 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 call graph for this function:
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 call graph for this function:
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

Implements INetworkSettingsProvider.

Here is the call graph for this function:

◆ getTokenDatabasePath()

QString SettingsCache::getTokenDatabasePath ( ) const
nodiscardoverridevirtual

Implements ICardDatabasePathProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUpdateReleaseChannel()

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

◆ getUpdateReleaseChannelIndex()

int SettingsCache::getUpdateReleaseChannelIndex ( ) const
nodiscard
Here is the call graph for this function:
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

Implements INetworkSettingsProvider.

Here is the call graph for this function:

◆ 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 = nullptr
private

◆ cacheStorageSettings

CacheStorageSettings* SettingsCache::cacheStorageSettings = nullptr
private

◆ cardCounterSettings

CardCounterSettings* SettingsCache::cardCounterSettings = nullptr
private

◆ cardDatabaseSettings

CardDatabaseSettings* SettingsCache::cardDatabaseSettings = nullptr
private

◆ cardOverrideSettings

CardOverrideSettings* SettingsCache::cardOverrideSettings = nullptr
private

◆ cardsDisplaySettings

CardsDisplaySettings* SettingsCache::cardsDisplaySettings = nullptr
private

◆ chatSettings

ChatSettings* SettingsCache::chatSettings = nullptr
private

◆ commanderBracketSettings

CommanderBracketSettings* SettingsCache::commanderBracketSettings = nullptr
private

◆ debugSettings

DebugSettings* SettingsCache::debugSettings = nullptr
private

◆ deckEditorSettings

DeckEditorSettings* SettingsCache::deckEditorSettings = nullptr
private

◆ disallowedRegExp

QList<QRegularExpression> SettingsCache::disallowedRegExp

◆ downloadSettings

DownloadSettings* SettingsCache::downloadSettings = nullptr
private

◆ gameFiltersSettings

GameFiltersSettings* SettingsCache::gameFiltersSettings = nullptr
private

◆ gameSettings

GameSettings* SettingsCache::gameSettings = nullptr
private

◆ interfaceSettings

InterfaceSettings* SettingsCache::interfaceSettings = nullptr
private

◆ isPortableBuild

bool SettingsCache::isPortableBuild
private

◆ layoutsSettings

LayoutsSettings* SettingsCache::layoutsSettings = nullptr
private

◆ messageSettings

MessageSettings* SettingsCache::messageSettings = nullptr
private

◆ networkSettings

NetworkSettings* SettingsCache::networkSettings = nullptr
private

◆ pathsSettings

PathsSettings* SettingsCache::pathsSettings = nullptr
private

◆ personalSettings

PersonalSettings* SettingsCache::personalSettings = nullptr
private

◆ recentsSettings

RecentsSettings* SettingsCache::recentsSettings = nullptr
private

◆ releaseChannels

QList<ReleaseChannel *> SettingsCache::releaseChannels
private

◆ serversSettings

ServersSettings* SettingsCache::serversSettings = nullptr
private

◆ settings

QSettings* SettingsCache::settings = nullptr
private

◆ shortcutsSettings

ShortcutsSettings* SettingsCache::shortcutsSettings = nullptr
private

◆ soundSettings

SoundSettings* SettingsCache::soundSettings = nullptr
private

◆ tabsSettings

TabsSettings* SettingsCache::tabsSettings = nullptr
private

◆ themeName

QString SettingsCache::themeName
private

◆ updatesSettings

UpdatesSettings* SettingsCache::updatesSettings = nullptr
private

◆ visualDeckStorageSettings

VisualDeckStorageSettings* SettingsCache::visualDeckStorageSettings = nullptr
private

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