1#ifndef COCKATRICE_PRINTING_INFO_H
2#define COCKATRICE_PRINTING_INFO_H
88 [[nodiscard]] QString
getProperty(
const QString &propertyName)
const
90 return properties.value(propertyName).toString();
111 [[nodiscard]] QString
getUuid()
const;
QMap< QString, QList< PrintingInfo > > SetToPrintingsMap
Definition card_info.h:25
QSharedPointer< CardSet > CardSetPtr
Definition card_info.h:24
Represents metadata for a specific variation of a card within a set.
Definition printing_info.h:27
CardSetPtr getSet() const
Returns the set this printing belongs to.
Definition printing_info.h:67
QString getFlavorName() const
Returns the flavorName for this printing.
Definition printing_info.cpp:17
bool operator==(const PrintingInfo &other) const
Equality operator.
Definition printing_info.h:52
QString getProperty(const QString &propertyName) const
Retrieves the value of a specific property.
Definition printing_info.h:88
void setProperty(const QString &_name, const QString &_value)
Sets or updates the value of a specific property.
Definition printing_info.h:101
PrintingInfo(const CardSetPtr &_set=nullptr)
Constructs a PrintingInfo associated with a specific set.
Definition printing_info.cpp:5
QString getUuid() const
Returns the providerID for this printing.
Definition printing_info.cpp:12
QStringList getProperties() const
Returns the list of property names defined for this printing.
Definition printing_info.h:77
~PrintingInfo()=default
Destroys the PrintingInfo.
CardSetPtr set
The set this variation belongs to.
Definition printing_info.h:58
QVariantHash properties
Key-value store for variation-specific attributes.
Definition printing_info.h:59