10 #include "kpkpass_export.h"
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)
63 Q_PROPERTY(QVariantList barcodes READ barcodesVariant CONSTANT)
64 Q_PROPERTY(QVariantList auxiliaryFields READ auxiliaryFieldsVariant CONSTANT)
65 Q_PROPERTY(QVariantList backFields READ backFieldsVariant CONSTANT)
66 Q_PROPERTY(QVariantList headerFields READ headerFieldsVariant CONSTANT)
67 Q_PROPERTY(QVariantList primaryFields READ primaryFieldsVariant CONSTANT)
68 Q_PROPERTY(QVariantList secondaryFields READ secondaryFieldsVariant CONSTANT)
69 Q_PROPERTY(QVariantList locations READ locationsVariant CONSTANT)
70 Q_PROPERTY(QVariantMap field READ fieldsVariantMap CONSTANT)
78 Q_REQUIRED_RESULT Type type()
const;
81 Q_REQUIRED_RESULT
QString description()
const;
82 Q_REQUIRED_RESULT
QString organizationName()
const;
83 Q_REQUIRED_RESULT
QString passTypeIdentifier()
const;
84 Q_REQUIRED_RESULT
QString serialNumber()
const;
87 Q_REQUIRED_RESULT
QDateTime expirationDate()
const;
88 Q_REQUIRED_RESULT
bool isVoided()
const;
94 Q_REQUIRED_RESULT
int maximumDistance()
const;
95 Q_REQUIRED_RESULT
QDateTime relevantDate()
const;
100 Q_REQUIRED_RESULT
QColor backgroundColor()
const;
101 Q_REQUIRED_RESULT
QColor foregroundColor()
const;
102 Q_REQUIRED_RESULT
QString groupingIdentifier()
const;
103 Q_REQUIRED_RESULT
QColor labelColor()
const;
104 Q_REQUIRED_RESULT
QString logoText()
const;
110 bool hasImage(
const QString &baseName)
const;
111 bool hasIcon()
const;
112 bool hasLogo()
const;
113 bool hasStrip()
const;
114 bool hasBackground()
const;
115 bool hasFooter()
const;
116 bool hasThumbnail()
const;
122 QImage image(
const QString &baseName,
unsigned int devicePixelRatio = 1)
const;
124 QImage icon(
unsigned int devicePixelRatio = 1)
const;
126 QImage logo(
unsigned int devicePixelRatio = 1)
const;
128 QImage strip(
unsigned int devicePixelRatio = 1)
const;
130 QImage background(
unsigned int devicePixelRatio = 1)
const;
132 QImage footer(
unsigned int devicePixelRatio = 1)
const;
134 QImage thumbnail(
unsigned int devicePixelRatio = 1)
const;
137 Q_REQUIRED_RESULT
QString authenticationToken()
const;
138 Q_REQUIRED_RESULT
QUrl webServiceUrl()
const;
142 Q_REQUIRED_RESULT
QUrl passUpdateUrl()
const;
171 friend class PassPrivate;
172 explicit Pass(Type passType,
QObject *parent =
nullptr);
173 std::unique_ptr<PassPrivate> d;
177 QVariantList auxiliaryFieldsVariant()
const;
178 QVariantList backFieldsVariant()
const;
179 QVariantList headerFieldsVariant()
const;
180 QVariantList primaryFieldsVariant()
const;
181 QVariantList secondaryFieldsVariant()
const;
182 QVariantList barcodesVariant()
const;
183 QVariantList locationsVariant()
const;
184 QVariantMap fieldsVariantMap()
const;