KHealthCertificateParser
KHealthCertificateParser Namespace Reference
Functions | |
KHEALTHCERTIFICATE_EXPORT QVariant | parse (const QByteArray &data) |
Detailed Description
Parses health certificates.
Function Documentation
◆ parse()
QVariant KHealthCertificateParser::parse | ( | const QByteArray & | data | ) |
Parse a single digital health certificate.
- Parameters
-
data The digital health certificate, typically this is the content of a QR code. Input can be of any supported format, the exact type is auto-detected.
- Returns
- Four different things can be returned, depending on the input.
- KVaccinationCertificate
- KTestCertificate
- KRecoveryCertificate
- a null QVariant in case of invalid or unsupported input If the input was parsed successfully but is semantically invalid that needs to be checked separately, see e.g. KVaccinationCertificate::signatureState and KVaccinationCertificate::validationState.
Definition at line 30 of file khealthcertificateparser.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:47:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:47:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.