Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPkPass
Commits
629925eb
Commit
629925eb
authored
Mar 06, 2018
by
Volker Krause
Browse files
Determine changes when getting an updated pass
parent
a5b54471
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pkpass/pass.cpp
View file @
629925eb
...
...
@@ -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
);
...
...
src/pkpass/pass.h
View file @
629925eb
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment