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

#include <download_settings.h>

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

Signals

void picDownloadChanged ()
void downloadSpoilerStatusChanged ()

Public Member Functions

 DownloadSettings (const QString &, QObject *)
QStringList getAllURLs () const
void setDownloadUrls (const QStringList &downloadURLs)
void resetToDefaultURLs ()
bool getPicDownload () const
void setPicDownload (bool _picDownload)
bool getDownloadSpoilersStatus () const
void setDownloadSpoilerStatus (bool _spoilerStatus)
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 ()

Static Private Attributes

static const QStringList DEFAULT_DOWNLOAD_URLS

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

Detailed Description

Todo
Document this file.

Constructor & Destructor Documentation

◆ DownloadSettings()

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

Member Function Documentation

◆ downloadSpoilerStatusChanged

void DownloadSettings::downloadSpoilerStatusChanged ( )
signal
Here is the caller graph for this function:

◆ getAllURLs()

QStringList DownloadSettings::getAllURLs ( ) const
Here is the call graph for this function:

◆ getDownloadSpoilersStatus()

bool DownloadSettings::getDownloadSpoilersStatus ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPicDownload()

bool DownloadSettings::getPicDownload ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ picDownloadChanged

void DownloadSettings::picDownloadChanged ( )
signal
Here is the caller graph for this function:

◆ resetToDefaultURLs()

void DownloadSettings::resetToDefaultURLs ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDownloadSpoilerStatus()

void DownloadSettings::setDownloadSpoilerStatus ( bool _spoilerStatus)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDownloadUrls()

void DownloadSettings::setDownloadUrls ( const QStringList & downloadURLs)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPicDownload()

void DownloadSettings::setPicDownload ( bool _picDownload)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SettingsCache

friend class SettingsCache
friend

Member Data Documentation

◆ DEFAULT_DOWNLOAD_URLS

const QStringList DownloadSettings::DEFAULT_DOWNLOAD_URLS
staticprivate
Initial value:
= {
"https://cards.scryfall.io/large/!prop:side!/!set:uuid_substr_0_1!/!set:uuid_substr_1_1!/!set:uuid!.jpg",
"https://api.scryfall.com/cards/!set:uuid!?format=image&face=!prop:side!",
"https://api.scryfall.com/cards/multiverse/!set:muid!?format=image",
"https://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=!set:muid!&type=card",
"https://gatherer.wizards.com/Handlers/Image.ashx?name=!name!&type=card"}

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