Commit 629925eb authored by Volker Krause's avatar Volker Krause
Browse files

Determine changes when getting an updated pass

parent a5b54471
......@@ -391,6 +391,15 @@ Field Pass::field(const QString& key) const
return {};
}
QVector<Field> Pass::fields() const
{
QVector<Field> fs;
for (unsigned int i = 0; i < fieldNameCount; ++i) {
fs += d->fields(QLatin1String(fieldNames[i]), this);
}
return fs;
}
Pass *Pass::fromData(const QByteArray &data, QObject *parent)
{
std::unique_ptr<QBuffer> buffer(new QBuffer);
......
......@@ -105,6 +105,8 @@ public:
/** Returns the field with key @p key. */
Field field(const QString &key) const;
/** Returns all fields found in this pass. */
QVector<Field> fields() const;
/** Returns all barcodes defined in the pass. */
QVector<Barcode> barcodes() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment