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

Source model for the Visual Deck Storage: the deck files on disk. More...

#include "../../deck_loader/loaded_deck.h"
#include <QAbstractListModel>
#include <QDateTime>
#include <QHash>
#include <QList>
#include <QStringList>
#include <libcockatrice/deck_list/deck_list.h>
#include <optional>
Include dependency graph for visual_deck_storage_model.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DeckPreviewData
 One deck file as seen by the Visual Deck Storage. More...
struct  PendingDeckLoad
 One finished background deck load that has not been applied to the model yet. More...
class  VisualDeckStorageModel
 The list model backing the Visual Deck Storage widget tree. More...

Namespaces

namespace  VisualDeckStorageRoles

Enumerations

enum  {
  VisualDeckStorageRoles::FilePathRole = Qt::UserRole + 1 , VisualDeckStorageRoles::RelativeFilePathRole , VisualDeckStorageRoles::FolderPathRole , VisualDeckStorageRoles::DisplayNameRole ,
  VisualDeckStorageRoles::TagsRole , VisualDeckStorageRoles::ColorIdentityRole , VisualDeckStorageRoles::LastModifiedRole , VisualDeckStorageRoles::LastLoadedRole ,
  VisualDeckStorageRoles::BannerCardNameRole , VisualDeckStorageRoles::BannerCardProviderIdRole , VisualDeckStorageRoles::FilterMatchRole
}
 Custom roles exposed by the VisualDeckStorageModel. More...

Detailed Description

Source model for the Visual Deck Storage: the deck files on disk.

The model owns the deck metadata (name, tags, color identity, banner card, modification times) and the parsed deck list, loading each deck file in the background. Views read through the roles or the direct accessors, and all mutations (rename, tags, banner card, delete, conversion) go through this class so the view layer never touches the filesystem directly.