Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
card_database_loader.h File Reference
#include <QBasicMutex>
#include <QList>
#include <QLoggingCategory>
#include <libcockatrice/interfaces/interface_card_database_path_provider.h>
#include <libcockatrice/interfaces/interface_card_preference_provider.h>
Include dependency graph for card_database_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CardDatabaseLoader
 Handles loading card databases from disk and saving custom tokens. More...

Enumerations

enum  LoadStatus {
  Ok , VersionTooOld , Invalid , NotLoaded ,
  FileError , NoCards
}
 Represents the result of attempting to load a card database. More...

Functions

 Q_LOGGING_CATEGORY (CardDatabaseLoadingLog, "card_database.loading")
 Q_LOGGING_CATEGORY (CardDatabaseLoadingSuccessOrFailureLog, "card_database.loading.success_or_failure")

Enumeration Type Documentation

◆ LoadStatus

enum LoadStatus

Represents the result of attempting to load a card database.

Enumerator
Ok 

Database loaded successfully.

VersionTooOld 

Database version is too old to load.

Invalid 

Database is invalid or unparsable.

NotLoaded 

Database has not been loaded.

FileError 

Error opening or reading the file.

NoCards 

Database contains no cards.

Function Documentation

◆ Q_LOGGING_CATEGORY() [1/2]

Q_LOGGING_CATEGORY ( CardDatabaseLoadingLog ,
"card_database.loading"  )
inline

◆ Q_LOGGING_CATEGORY() [2/2]

Q_LOGGING_CATEGORY ( CardDatabaseLoadingSuccessOrFailureLog ,
"card_database.loading.success_or_failure"  )
inline