KItinerary::DocumentUtil
Functions | |
bool | addDocumentId (QVariant &obj, const QString &id) |
QVariantList | documentIds (const QVariant &obj) |
QString | idForContent (const QByteArray &data) |
QString | idForPkPass (const QString &passTypeIdentifier, const QString &serialNumber) |
QUrl | pkPassId (const QVariant &obj) |
bool | removeDocumentId (QVariant &obj, const QString &id) |
void | setDocumentIds (QVariant &obj, const QVariantList &docIds) |
Detailed Description
Utilities for dealing with documents attached to objects.
- See also
- https://schema.org/subjectOf
Function Documentation
◆ addDocumentId()
Add a document id to the object obj
.
- Returns
true
if the document id wasn't present yet and the object changed,false
otherwise.
Definition at line 35 of file documentutil.cpp.
◆ documentIds()
QVariantList KItinerary::DocumentUtil::documentIds | ( | const QVariant & | obj | ) |
Returns all document identifiers associated with object obj
.
Definition at line 57 of file documentutil.cpp.
◆ idForContent()
QString KItinerary::DocumentUtil::idForContent | ( | const QByteArray & | data | ) |
Determine a document identifier for the given content.
Definition at line 19 of file documentutil.cpp.
◆ idForPkPass()
QString KItinerary::DocumentUtil::idForPkPass | ( | const QString & | passTypeIdentifier, |
const QString & | serialNumber ) |
Determine a document identifier for a Apple Wallet pass.
Definition at line 26 of file documentutil.cpp.
◆ pkPassId()
Returns a Apple Wallet pass identifier if present in the documents ids of obj
.
Definition at line 67 of file documentutil.cpp.
◆ removeDocumentId()
Removes the document identifier id
from object res
.
- Returns
true
if the document id was present and the object changed,false
otherwise.
Definition at line 46 of file documentutil.cpp.
◆ setDocumentIds()
void KItinerary::DocumentUtil::setDocumentIds | ( | QVariant & | obj, |
const QVariantList & | docIds ) |
Sets the list of document identifiers for object obj
.
Definition at line 62 of file documentutil.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.