![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <oraclewizard.h>
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 | |
|
explicit |
|
override |
|
overrideprotected |
| void OracleWizard::disableButtons | ( | ) |
| void OracleWizard::enableButtons | ( | ) |
|
inline |
|
inline |
|
privateslot |
|
inline |
|
inline |
|
inline |
Records that the card database was written to disk, so a later cancel still counts as an update.
|
private |
Migrates the oracle-specific settings from global.ini to oracle.ini
|
private |
Shows, raises and activates the wizard window.
|
override |
| void OracleWizard::retranslateUi | ( | ) |
| void OracleWizard::runInBackground | ( | ) |
| bool OracleWizard::saveTokensToFile | ( | const QString & | fileName | ) |
|
inline |
|
inline |
|
inline |
|
private |
Starts the local socket the hosting Cockatrice client uses to bring this wizard forward.
|
privateslot |
|
inline |
| bool OracleWizard::backgroundMode = false |
|
private |
|
private |
|
private |
|
private |
| bool OracleWizard::downloadedPlainXml = false |
| OracleImporter* OracleWizard::importer |
| QNetworkAccessManager* OracleWizard::nam |
|
private |
listens for raise requests from the hosting client
| QSettings* OracleWizard::settings |
|
private |
| QByteArray OracleWizard::xmlData |