37 Q_PROPERTY(
Type type READ type CONSTANT)
39 Q_PROPERTY(
QString description READ description CONSTANT)
40 Q_PROPERTY(
QString organizationName READ organizationName CONSTANT)
41 Q_PROPERTY(
QString passTypeIdentifier READ passTypeIdentifier CONSTANT)
42 Q_PROPERTY(
QString serialNumber READ serialNumber CONSTANT)
44 Q_PROPERTY(
QDateTime expirationDate READ expirationDate CONSTANT)
45 Q_PROPERTY(
bool isVoided READ isVoided CONSTANT)
47 Q_PROPERTY(
QDateTime relevantDate READ relevantDate CONSTANT)
49 Q_PROPERTY(
QColor backgroundColor READ backgroundColor CONSTANT)
50 Q_PROPERTY(
QColor foregroundColor READ foregroundColor CONSTANT)
51 Q_PROPERTY(
QString groupingIdentifier READ groupingIdentifier CONSTANT)
52 Q_PROPERTY(
QColor labelColor READ labelColor CONSTANT)
53 Q_PROPERTY(
QString logoText READ logoText CONSTANT)
55 Q_PROPERTY(
bool hasIcon READ hasIcon CONSTANT)
56 Q_PROPERTY(
bool hasLogo READ hasLogo CONSTANT)
57 Q_PROPERTY(
bool hasStrip READ hasStrip CONSTANT)
58 Q_PROPERTY(
bool hasBackground READ hasBackground CONSTANT)
59 Q_PROPERTY(
bool hasFooter READ hasFooter CONSTANT)
60 Q_PROPERTY(
bool hasThumbnail READ hasThumbnail CONSTANT)
70 Q_PROPERTY(QVariantMap field READ fieldsVariantMap CONSTANT)
84 [[nodiscard]] Type type()
const;
87 [[nodiscard]]
QString description()
const;
88 [[nodiscard]]
QString organizationName()
const;
89 [[nodiscard]]
QString passTypeIdentifier()
const;
90 [[nodiscard]]
QString serialNumber()
const;
93 [[nodiscard]]
QDateTime expirationDate()
const;
94 [[nodiscard]]
bool isVoided()
const;
100 [[nodiscard]]
int maximumDistance()
const;
101 [[nodiscard]]
QDateTime relevantDate()
const;
106 [[nodiscard]]
QColor backgroundColor()
const;
107 [[nodiscard]]
QColor foregroundColor()
const;
108 [[nodiscard]]
QString groupingIdentifier()
const;
109 [[nodiscard]]
QColor labelColor()
const;
110 [[nodiscard]]
QString logoText()
const;
116 bool hasImage(
const QString &baseName)
const;
117 bool hasIcon()
const;
118 bool hasLogo()
const;
119 bool hasStrip()
const;
120 bool hasBackground()
const;
121 bool hasFooter()
const;
122 bool hasThumbnail()
const;
128 [[nodiscard]]
QImage image(
const QString &baseName,
unsigned int devicePixelRatio = 1)
const;
130 Q_INVOKABLE [[nodiscard]]
QImage icon(
unsigned int devicePixelRatio = 1)
const;
132 Q_INVOKABLE [[nodiscard]]
QImage logo(
unsigned int devicePixelRatio = 1)
const;
134 Q_INVOKABLE [[nodiscard]]
QImage strip(
unsigned int devicePixelRatio = 1)
const;
136 Q_INVOKABLE [[nodiscard]]
QImage background(
unsigned int devicePixelRatio = 1)
const;
138 Q_INVOKABLE [[nodiscard]]
QImage footer(
unsigned int devicePixelRatio = 1)
const;
140 Q_INVOKABLE [[nodiscard]]
QImage thumbnail(
unsigned int devicePixelRatio = 1)
const;
143 [[nodiscard]]
QString authenticationToken()
const;
144 [[nodiscard]]
QUrl webServiceUrl()
const;
148 [[nodiscard]]
QUrl passUpdateUrl()
const;
177 friend class PassPrivate;
178 explicit Pass(Type passType,
QObject *parent =
nullptr);
179 std::unique_ptr<PassPrivate> d;
183 QVariantMap fieldsVariantMap()
const;