Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SpoilerBackgroundUpdater Class Reference

#include <spoiler_background_updater.h>

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

Signals

void spoilersUpdatedSuccessfully ()
void spoilerCheckerDone ()

Public Member Functions

 SpoilerBackgroundUpdater (QObject *apParent=nullptr)
QString getCardUpdaterBinaryName ()
QByteArray getHash (const QString fileName)
QByteArray getHash (QByteArray data)

Static Public Member Functions

static bool deleteSpoilerFile ()

Private Slots

void actDownloadFinishedSpoilersFile ()
void actCheckIfSpoilerSeasonEnabled ()

Private Member Functions

void startSpoilerDownloadProcess (QString url, bool saveResults)
void downloadFromURL (QUrl url, bool saveResults)
bool saveDownloadedFile (QByteArray data)

Private Attributes

bool isSpoilerDownloadEnabled
QProcess * cardUpdateProcess
QByteArray spoilerData

Constructor & Destructor Documentation

◆ SpoilerBackgroundUpdater()

SpoilerBackgroundUpdater::SpoilerBackgroundUpdater ( QObject * apParent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ actCheckIfSpoilerSeasonEnabled

void SpoilerBackgroundUpdater::actCheckIfSpoilerSeasonEnabled ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDownloadFinishedSpoilersFile

void SpoilerBackgroundUpdater::actDownloadFinishedSpoilersFile ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteSpoilerFile()

bool SpoilerBackgroundUpdater::deleteSpoilerFile ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ downloadFromURL()

void SpoilerBackgroundUpdater::downloadFromURL ( QUrl url,
bool saveResults )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCardUpdaterBinaryName()

QString SpoilerBackgroundUpdater::getCardUpdaterBinaryName ( )
inline

◆ getHash() [1/2]

QByteArray SpoilerBackgroundUpdater::getHash ( const QString fileName)
Here is the caller graph for this function:

◆ getHash() [2/2]

QByteArray SpoilerBackgroundUpdater::getHash ( QByteArray data)

◆ saveDownloadedFile()

bool SpoilerBackgroundUpdater::saveDownloadedFile ( QByteArray data)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spoilerCheckerDone

void SpoilerBackgroundUpdater::spoilerCheckerDone ( )
signal
Here is the caller graph for this function:

◆ spoilersUpdatedSuccessfully

void SpoilerBackgroundUpdater::spoilersUpdatedSuccessfully ( )
signal
Here is the caller graph for this function:

◆ startSpoilerDownloadProcess()

void SpoilerBackgroundUpdater::startSpoilerDownloadProcess ( QString url,
bool saveResults )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cardUpdateProcess

QProcess* SpoilerBackgroundUpdater::cardUpdateProcess
private

◆ isSpoilerDownloadEnabled

bool SpoilerBackgroundUpdater::isSpoilerDownloadEnabled
private

◆ spoilerData

QByteArray SpoilerBackgroundUpdater::spoilerData
private

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