Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
pages.cpp File Reference
#include "pages.h"
#include "client/settings/cache_settings.h"
#include "main.h"
#include "oracleimporter.h"
#include "oraclewizard.h"
#include "pagetemplates.h"
#include "version_string.h"
#include <QBuffer>
#include <QCheckBox>
#include <QComboBox>
#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileDialog>
#include <QFileInfo>
#include <QGridLayout>
#include <QIODevice>
#include <QJsonDocument>
#include <QJsonParseError>
#include <QLabel>
#include <QLineEdit>
#include <QList>
#include <QMap>
#include <QMessageBox>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QObject>
#include <QPointer>
#include <QProgressBar>
#include <QPushButton>
#include <QRadioButton>
#include <QScrollBar>
#include <QSettings>
#include <QSharedPointer>
#include <QTextEdit>
#include <QTextStream>
#include <QTimer>
#include <QTranslator>
#include <QUrl>
#include <QVariant>
#include <QWizard>
#include <QtConcurrentRun>
#include <QtGlobal>
#include <cstdio>
#include <functional>
#include <libcockatrice/settings/personal_settings.h>
#include <libcockatrice/utility/translation_loader.h>
#include <qlogging.h>
#include <qnamespace.h>
#include <qnumeric.h>
#include <stdlib.h>
#include <tuple>
#include <utility>

Macros

#define ZIP_SIGNATURE   "PK"
#define XZ_SIGNATURE   "\xFD\x37\x7A\x58\x5A"
#define MTGJSON_V4_URL_COMPONENT   "mtgjson.com/files/"
#define ALLSETS_URL_FALLBACK   "https://www.mtgjson.com/api/v5/AllPrintings.json"
#define MTGJSON_VERSION_URL   "https://www.mtgjson.com/api/v5/Meta.json"
#define ALLSETS_URL   "https://www.mtgjson.com/api/v5/AllPrintings.json"
#define TOKENS_URL   "https://raw.githubusercontent.com/Cockatrice/Magic-Token/master/tokens.xml"
#define SPOILERS_URL   "https://raw.githubusercontent.com/Cockatrice/Magic-Spoiler/files/spoiler.xml"

Functions

static void emitProgress (const char *stage, qint64 done, qint64 total)
 Emits one machine-readable progress line to stdout.

Macro Definition Documentation

◆ ALLSETS_URL

#define ALLSETS_URL   "https://www.mtgjson.com/api/v5/AllPrintings.json"

◆ ALLSETS_URL_FALLBACK

#define ALLSETS_URL_FALLBACK   "https://www.mtgjson.com/api/v5/AllPrintings.json"

◆ MTGJSON_V4_URL_COMPONENT

#define MTGJSON_V4_URL_COMPONENT   "mtgjson.com/files/"

◆ MTGJSON_VERSION_URL

#define MTGJSON_VERSION_URL   "https://www.mtgjson.com/api/v5/Meta.json"

◆ SPOILERS_URL

#define SPOILERS_URL   "https://raw.githubusercontent.com/Cockatrice/Magic-Spoiler/files/spoiler.xml"

◆ TOKENS_URL

#define TOKENS_URL   "https://raw.githubusercontent.com/Cockatrice/Magic-Token/master/tokens.xml"

◆ XZ_SIGNATURE

#define XZ_SIGNATURE   "\xFD\x37\x7A\x58\x5A"

◆ ZIP_SIGNATURE

#define ZIP_SIGNATURE   "PK"

Function Documentation

◆ emitProgress()

void emitProgress ( const char * stage,
qint64 done,
qint64 total )
static

Emits one machine-readable progress line to stdout.

The hosting Cockatrice client parses these lines to drive a determinate progress bar. stderr stays reserved for human-readable log output.

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