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

#include <oracleimporter.h>

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

Signals

void setIndexChanged (int cardsImported, int setIndex, const QString &setName)
void dataReadProgress (int bytesRead, int totalBytes)

Public Member Functions

 OracleImporter (QObject *parent=nullptr)
bool readSetsFromByteArray (const QByteArray &data)
int startImport ()
bool saveToFile (const QString &fileName, const QString &sourceUrl, const QString &sourceVersion)
int importCardsFromSet (const CardSetPtr &currentSet, const QList< QVariant > &cardsList)
const CardNameMapgetCardList () const
QList< SetToDownload > & getSets ()
void clear ()

Private Member Functions

CardInfoPtr addCard (QString name, const QString &text, bool isToken, QVariantHash properties, const QList< CardRelation * > &relatedCards, const PrintingInfo &printingInfo)

Private Attributes

CardNameMap cards
SetNameMap sets
QList< SetToDownloadallSets

Static Private Attributes

static const QRegularExpression formatRegex = QRegularExpression("^format-")

Constructor & Destructor Documentation

◆ OracleImporter()

OracleImporter::OracleImporter ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ addCard()

CardInfoPtr OracleImporter::addCard ( QString name,
const QString & text,
bool isToken,
QVariantHash properties,
const QList< CardRelation * > & relatedCards,
const PrintingInfo & printingInfo )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void OracleImporter::clear ( )
Here is the caller graph for this function:

◆ dataReadProgress

void OracleImporter::dataReadProgress ( int bytesRead,
int totalBytes )
signal

◆ getCardList()

const CardNameMap & OracleImporter::getCardList ( ) const
inline

◆ getSets()

QList< SetToDownload > & OracleImporter::getSets ( )
inline

◆ importCardsFromSet()

int OracleImporter::importCardsFromSet ( const CardSetPtr & currentSet,
const QList< QVariant > & cardsList )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readSetsFromByteArray()

bool OracleImporter::readSetsFromByteArray ( const QByteArray & data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveToFile()

bool OracleImporter::saveToFile ( const QString & fileName,
const QString & sourceUrl,
const QString & sourceVersion )
Here is the call graph for this function:

◆ setIndexChanged

void OracleImporter::setIndexChanged ( int cardsImported,
int setIndex,
const QString & setName )
signal
Here is the caller graph for this function:

◆ startImport()

int OracleImporter::startImport ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ allSets

QList<SetToDownload> OracleImporter::allSets
private

◆ cards

CardNameMap OracleImporter::cards
private

The cards, indexed by name.

◆ formatRegex

const QRegularExpression OracleImporter::formatRegex = QRegularExpression("^format-")
staticprivate

◆ sets

SetNameMap OracleImporter::sets
private

The sets, indexed by short name.


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