KHealthCertificate

khealthcertificateparser.h
1/*
2 * SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3 * SPDX-License-Identifier: LGPL-2.0-or-later
4 */
5
6#ifndef KHEALTHCERTIFICATEPARSER_H
7#define KHEALTHCERTIFICATEPARSER_H
8
9#include "khealthcertificate_export.h"
10
11class QByteArray;
12class QVariant;
13
14/** Parses health certificates. */
16{
17 /**
18 * Parse a single digital health certificate.
19 *
20 * @param data The digital health certificate, typically this is the content of a QR code.
21 * Input can be of any supported format, the exact type is auto-detected.
22 *
23 * @returns Four different things can be returned, depending on the input.
24 * - KVaccinationCertificate
25 * - KTestCertificate
26 * - KRecoveryCertificate
27 * - a null QVariant in case of invalid or unsupported input
28 * If the input was parsed successfully but is semantically invalid that needs to be checked
29 * separately, see e.g. KVaccinationCertificate::signatureState and KVaccinationCertificate::validationState.
30 */
31 KHEALTHCERTIFICATE_EXPORT QVariant parse(const QByteArray &data);
32}
33
34#endif // KHEALTHCERTIFICATEPARSER_H
Parses health certificates.
KHEALTHCERTIFICATE_EXPORT QVariant parse(const QByteArray &data)
Parse a single digital health certificate.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:10:33 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.