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

#include <cache_storage_settings.h>

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

Signals

void pixmapCacheSizeChanged (int newSizeInMBs)
void networkCacheSizeChanged (int newSizeInMBs)
void redirectCacheTtlChanged (int newTtl)
void cardPictureLoaderCacheMethodChanged (int cardPictureLoaderCacheMethod)
void localCardImageStorageNamingSchemeChanged (int localCardImageStorageNamingScheme)

Public Member Functions

int getPixmapCacheSize () const override
int getNetworkCacheSizeInMB () const override
int getRedirectCacheTtl () const override
int getCardPictureLoaderCacheMethod () const
int getLocalCardImageStorageNamingScheme () const
void setPixmapCacheSize (int _pixmapCacheSize)
void setNetworkCacheSizeInMB (int _networkCacheSize)
void setNetworkRedirectCacheTtl (int _redirectCacheTtl)
void setCardImageCacheMethod (int _cardImageCachingMethod)
void setLocalCardImageStorageNamingScheme (int _scheme)
 CacheStorageSettings (const QString &settingPath, QObject *parent=nullptr)
Public Member Functions inherited from SettingsManager
 SettingsManager (const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
QVariant getValue (const QString &name) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup=QString()) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup, const QVariant &defaultValue) const
void batchWrite (std::function< void(QSettings &)> batchWriteFunction)
void sync ()
Public Member Functions inherited from ICacheStorageSettingsProvider
virtual ~ICacheStorageSettingsProvider ()=default

Private Member Functions

 CacheStorageSettings (const CacheStorageSettings &)

Friends

class SettingsCache

Additional Inherited Members

Protected Member Functions inherited from SettingsManager
QSettings getSettings () const
void setValue (const QVariant &value, const QString &name)
void setValue (const QVariant &value, const QString &name, const QString &group, const QString &subGroup=QString())
void deleteValue (const QString &name)
void deleteValue (const QString &name, const QString &group, const QString &subGroup=QString())
Protected Attributes inherited from SettingsManager
QString settingPath
QString defaultGroup
QString defaultSubGroup

Constructor & Destructor Documentation

◆ CacheStorageSettings() [1/2]

CacheStorageSettings::CacheStorageSettings ( const QString & settingPath,
QObject * parent = nullptr )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CacheStorageSettings() [2/2]

CacheStorageSettings::CacheStorageSettings ( const CacheStorageSettings & )
private
Here is the call graph for this function:

Member Function Documentation

◆ cardPictureLoaderCacheMethodChanged

void CacheStorageSettings::cardPictureLoaderCacheMethodChanged ( int cardPictureLoaderCacheMethod)
signal
Here is the caller graph for this function:

◆ getCardPictureLoaderCacheMethod()

int CacheStorageSettings::getCardPictureLoaderCacheMethod ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLocalCardImageStorageNamingScheme()

int CacheStorageSettings::getLocalCardImageStorageNamingScheme ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNetworkCacheSizeInMB()

int CacheStorageSettings::getNetworkCacheSizeInMB ( ) const
nodiscardoverridevirtual

Implements ICacheStorageSettingsProvider.

Here is the call graph for this function:

◆ getPixmapCacheSize()

int CacheStorageSettings::getPixmapCacheSize ( ) const
nodiscardoverridevirtual

Implements ICacheStorageSettingsProvider.

Here is the call graph for this function:

◆ getRedirectCacheTtl()

int CacheStorageSettings::getRedirectCacheTtl ( ) const
nodiscardoverridevirtual

Implements ICacheStorageSettingsProvider.

Here is the call graph for this function:

◆ localCardImageStorageNamingSchemeChanged

void CacheStorageSettings::localCardImageStorageNamingSchemeChanged ( int localCardImageStorageNamingScheme)
signal
Here is the caller graph for this function:

◆ networkCacheSizeChanged

void CacheStorageSettings::networkCacheSizeChanged ( int newSizeInMBs)
signal
Here is the caller graph for this function:

◆ pixmapCacheSizeChanged

void CacheStorageSettings::pixmapCacheSizeChanged ( int newSizeInMBs)
signal
Here is the caller graph for this function:

◆ redirectCacheTtlChanged

void CacheStorageSettings::redirectCacheTtlChanged ( int newTtl)
signal
Here is the caller graph for this function:

◆ setCardImageCacheMethod()

void CacheStorageSettings::setCardImageCacheMethod ( int _cardImageCachingMethod)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLocalCardImageStorageNamingScheme()

void CacheStorageSettings::setLocalCardImageStorageNamingScheme ( int _scheme)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNetworkCacheSizeInMB()

void CacheStorageSettings::setNetworkCacheSizeInMB ( int _networkCacheSize)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNetworkRedirectCacheTtl()

void CacheStorageSettings::setNetworkRedirectCacheTtl ( int _redirectCacheTtl)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPixmapCacheSize()

void CacheStorageSettings::setPixmapCacheSize ( int _pixmapCacheSize)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SettingsCache

friend class SettingsCache
friend

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