Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckPreviewData Struct Reference

One deck file as seen by the Visual Deck Storage. More...

#include <visual_deck_storage_model.h>

Collaboration diagram for DeckPreviewData:
[legend]

Public Attributes

QString filePath
 Absolute file path.
QString relativeFilePath
 File path relative to the deck folder.
QString folderPath
 Directory relative to the deck folder ("" for the deck folder itself).
QString deckName
 The deck name as stored in the file (may be empty).
QString displayName
 Deck name, or the file name if the deck has no name.
QStringList tags
 The deck's tags.
QString colorIdentity
 The deck's color identity in WUBRG order.
QDateTime lastModified
 File modification time at last check.
QDateTime lastLoaded
 When the deck was last loaded from the file.
CardRef bannerCard
 The deck's banner card (name + provider id).
LoadedDeck deck
 The parsed deck; empty until the file has been loaded.
bool loadSucceeded = false
 Whether the deck file finished loading successfully.
bool loadInProgress = false
 Whether the deck file is currently being loaded.

Detailed Description

One deck file as seen by the Visual Deck Storage.

The metadata is computed once when the deck loads and refreshed on reloads and mutations, so filters and sorts never re-read the file from disk.

Member Data Documentation

◆ bannerCard

CardRef DeckPreviewData::bannerCard

The deck's banner card (name + provider id).

◆ colorIdentity

QString DeckPreviewData::colorIdentity

The deck's color identity in WUBRG order.

◆ deck

LoadedDeck DeckPreviewData::deck

The parsed deck; empty until the file has been loaded.

◆ deckName

QString DeckPreviewData::deckName

The deck name as stored in the file (may be empty).

◆ displayName

QString DeckPreviewData::displayName

Deck name, or the file name if the deck has no name.

◆ filePath

QString DeckPreviewData::filePath

Absolute file path.

◆ folderPath

QString DeckPreviewData::folderPath

Directory relative to the deck folder ("" for the deck folder itself).

◆ lastLoaded

QDateTime DeckPreviewData::lastLoaded

When the deck was last loaded from the file.

◆ lastModified

QDateTime DeckPreviewData::lastModified

File modification time at last check.

◆ loadInProgress

bool DeckPreviewData::loadInProgress = false

Whether the deck file is currently being loaded.

◆ loadSucceeded

bool DeckPreviewData::loadSucceeded = false

Whether the deck file finished loading successfully.

◆ relativeFilePath

QString DeckPreviewData::relativeFilePath

File path relative to the deck folder.

◆ tags

QStringList DeckPreviewData::tags

The deck's tags.


The documentation for this struct was generated from the following file: