Search for usage in LXR

KHealthCertificate Class Reference

#include <khealthcertificate.h>

Public Types

enum  CertificateType { Vaccination, Test, Recovery }
enum  CertificateValidation { Valid, Partial, Invalid, Unknown }
enum  SignatureValidation { ValidSignature, InvalidSignature, UnknownSignature, UncheckedSignature }

Static Public Member Functions

static QDateTime relevantUntil (const QVariant &certificate)

Detailed Description

Dummy RTTI for QML, which doesn't support instanceof on Q_GADGETs...

Definition at line 13 of file khealthcertificate.h.

Member Enumeration Documentation

Result of attempting to verify the cryptographic signature of a certificate.


signature is valid


signature is invalid


signature verification was attempted but didn't yield a result, e.g. due to a missing certificate of signing entity.


signature verification was not attempted, e.g. as it's not yet implemented for the specific certificate type.

Definition at line 33 of file khealthcertificate.h.

Member Function Documentation

QDateTime KHealthCertificate::relevantUntil ( const QVariant certificate)

Returns the last date until certificate is relevant.

That is, past the returned date, the certificate is considered expired and thus provides no or only very limited use anymore. This is useful for sorting a set of certificate in the UI in a meaningful way.

Definition at line 14 of file khealthcertificate.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Sep 27 2021 23:22:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.