KHealthCertificate

krecoverycertificate.h
1/*
2 * SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3 * SPDX-License-Identifier: LGPL-2.0-or-later
4 */
5
6#ifndef KRECOVERYCERTIFICATE_H
7#define KRECOVERYCERTIFICATE_H
8
9#include "khealthcertificate_export.h"
10#include "khealthcertificatetypes.h"
11
12#include <QDate>
13
14class KRecoveryCertificatePrivate;
15
16/** A recovery certificate. */
17class KHEALTHCERTIFICATE_EXPORT KRecoveryCertificate
18{
19 KHEALTHCERTIFICATE_GADGET(Recovery)
20 KHEALTHCERTIFICATE_PROPERTY(QString, name, setName)
21 KHEALTHCERTIFICATE_PROPERTY(QDate, dateOfBirth, setDateOfBirth)
22 KHEALTHCERTIFICATE_PROPERTY(QDate, dateOfPositiveTest, setDateOfPositiveTest)
23 KHEALTHCERTIFICATE_PROPERTY(QDate, validFrom, setValidFrom)
24 KHEALTHCERTIFICATE_PROPERTY(QDate, validUntil, setValidUntil)
25 KHEALTHCERTIFICATE_PROPERTY(QString, disease, setDisease)
26 /** The entity that issued this certificate. */
27 KHEALTHCERTIFICATE_PROPERTY(QString, certificateIssuer, setCertificateIssuer)
28 /** The unique identifier of this certificate. */
29 KHEALTHCERTIFICATE_PROPERTY(QString, certificateId, setCertificateId)
30 /** Date/time this certificate has been issued at. */
31 KHEALTHCERTIFICATE_PROPERTY(QDateTime, certificateIssueDate, setCertificateIssueDate)
32 /** Date/time this certificate expires. */
33 KHEALTHCERTIFICATE_PROPERTY(QDateTime, certificateExpiryDate, setCertificateExpiryDate)
34 /** Validation status of the cryptographic signature of this certificate. */
35 KHEALTHCERTIFICATE_PROPERTY(KHealthCertificate::SignatureValidation, signatureState, setSignatureState)
36
37 Q_PROPERTY(KHealthCertificate::CertificateValidation validationState READ validationState)
38
39 /** Fully encoded data as represented in the barcode. */
40 KHEALTHCERTIFICATE_PROPERTY(QByteArray, rawData, setRawData)
41public:
42 KHealthCertificate::CertificateValidation validationState() const;
43};
44
45Q_DECLARE_METATYPE(KRecoveryCertificate)
46
47#endif // KRECOVERYCERTIFICATE_H
Dummy RTTI for QML, which doesn't support instanceof on Q_GADGETs...
SignatureValidation
Result of attempting to verify the cryptographic signature of a certificate.
A recovery certificate.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.