File indexing completed on 2024-11-24 04:44:41
0001 /* 0002 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef SHCPARSER_P_H 0007 #define SHCPARSER_P_H 0008 0009 class KVaccinationCertificate; 0010 0011 class QByteArray; 0012 class QJsonObject; 0013 class QVariant; 0014 0015 /** Parser for Smart Health Cards 0016 * @see https://spec.smarthealth.cards/ 0017 */ 0018 class ShcParser 0019 { 0020 public: 0021 static void init(); 0022 static QVariant parse(const QByteArray &data); 0023 0024 private: 0025 static KVaccinationCertificate parseImmunization(const QJsonObject &obj); 0026 }; 0027 0028 #endif // SHCPARSER_P_H