Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
OracleWizard Class Reference

#include <oraclewizard.h>

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

Public Member Functions

 OracleWizard (QWidget *parent=nullptr)
void accept () override
void reject () override
bool wasCancelled ()
void markDatabaseSaved ()
 Records that the card database was written to disk, so a later cancel still counts as an update.
bool hasSavedDatabase ()
void enableButtons ()
void disableButtons ()
void retranslateUi ()
void setTokensData (QByteArray _tokensData)
bool hasTokensData ()
void setCardSourceUrl (const QString &sourceUrl)
void setCardSourceVersion (const QString &sourceVersion)
const QString & getCardSourceUrl () const
const QString & getCardSourceVersion () const
bool saveTokensToFile (const QString &fileName)
void runInBackground ()

Public Attributes

OracleImporter * importer
QSettings * settings
QNetworkAccessManager * nam
bool downloadedPlainXml = false
QByteArray xmlData
bool backgroundMode = false

Protected Member Functions

void changeEvent (QEvent *event) override

Private Slots

void updateLanguage ()
void handleRaiseRequest ()

Private Member Functions

void migrateOracleSettings ()
void startRaiseServer ()
 Starts the local socket the hosting Cockatrice client uses to bring this wizard forward.
void raiseWizard ()
 Shows, raises and activates the wizard window.

Private Attributes

QByteArray tokensData
QString cardSourceUrl
QString cardSourceVersion
bool cancelled = false
bool databaseSaved = false
QLocalServer * raiseServer = nullptr
 listens for raise requests from the hosting client

Constructor & Destructor Documentation

◆ OracleWizard()

OracleWizard::OracleWizard ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ accept()

void OracleWizard::accept ( )
override
Here is the caller graph for this function:

◆ changeEvent()

void OracleWizard::changeEvent ( QEvent * event)
overrideprotected
Here is the call graph for this function:

◆ disableButtons()

void OracleWizard::disableButtons ( )
Here is the caller graph for this function:

◆ enableButtons()

void OracleWizard::enableButtons ( )
Here is the caller graph for this function:

◆ getCardSourceUrl()

const QString & OracleWizard::getCardSourceUrl ( ) const
inline

◆ getCardSourceVersion()

const QString & OracleWizard::getCardSourceVersion ( ) const
inline

◆ handleRaiseRequest

void OracleWizard::handleRaiseRequest ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasSavedDatabase()

bool OracleWizard::hasSavedDatabase ( )
inline
Here is the caller graph for this function:

◆ hasTokensData()

bool OracleWizard::hasTokensData ( )
inline

◆ markDatabaseSaved()

void OracleWizard::markDatabaseSaved ( )
inline

Records that the card database was written to disk, so a later cancel still counts as an update.

Here is the caller graph for this function:

◆ migrateOracleSettings()

void OracleWizard::migrateOracleSettings ( )
private

Migrates the oracle-specific settings from global.ini to oracle.ini

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

◆ raiseWizard()

void OracleWizard::raiseWizard ( )
private

Shows, raises and activates the wizard window.

Here is the caller graph for this function:

◆ reject()

void OracleWizard::reject ( )
override

◆ retranslateUi()

void OracleWizard::retranslateUi ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runInBackground()

void OracleWizard::runInBackground ( )
Here is the caller graph for this function:

◆ saveTokensToFile()

bool OracleWizard::saveTokensToFile ( const QString & fileName)

◆ setCardSourceUrl()

void OracleWizard::setCardSourceUrl ( const QString & sourceUrl)
inline
Here is the caller graph for this function:

◆ setCardSourceVersion()

void OracleWizard::setCardSourceVersion ( const QString & sourceVersion)
inline
Here is the caller graph for this function:

◆ setTokensData()

void OracleWizard::setTokensData ( QByteArray _tokensData)
inline

◆ startRaiseServer()

void OracleWizard::startRaiseServer ( )
private

Starts the local socket the hosting Cockatrice client uses to bring this wizard forward.

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

◆ updateLanguage

void OracleWizard::updateLanguage ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wasCancelled()

bool OracleWizard::wasCancelled ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ backgroundMode

bool OracleWizard::backgroundMode = false

◆ cancelled

bool OracleWizard::cancelled = false
private

◆ cardSourceUrl

QString OracleWizard::cardSourceUrl
private

◆ cardSourceVersion

QString OracleWizard::cardSourceVersion
private

◆ databaseSaved

bool OracleWizard::databaseSaved = false
private

◆ downloadedPlainXml

bool OracleWizard::downloadedPlainXml = false

◆ importer

OracleImporter* OracleWizard::importer

◆ nam

QNetworkAccessManager* OracleWizard::nam

◆ raiseServer

QLocalServer* OracleWizard::raiseServer = nullptr
private

listens for raise requests from the hosting client

◆ settings

QSettings* OracleWizard::settings

◆ tokensData

QByteArray OracleWizard::tokensData
private

◆ xmlData

QByteArray OracleWizard::xmlData

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