6#ifndef KHEALTHCERTIFICATETYPES_H
7#define KHEALTHCERTIFICATETYPES_H
9#include "khealthcertificate.h"
11#include <QSharedDataPointer>
17namespace KHealthCertificateInternal {
21 using type =
typename std::conditional<std::is_fundamental<T>::value || std::is_enum<T>::value, T,
const T&>::type;
25#define KHEALTHCERTIFICATE_GADGET(Class) \
27 Q_PROPERTY(KHealthCertificate::CertificateType type READ type) \
29 K ## Class ## Certificate(); \
30 K ## Class ## Certificate(K ## Class ## Certificate &&) noexcept; \
31 K ## Class ## Certificate(const K ## Class ##Certificate &); \
32 ~K ## Class ## Certificate(); \
33 K ## Class ## Certificate& operator=(K ## Class ## Certificate &&) noexcept; \
34 K ## Class ## Certificate& operator=(const K ## Class ## Certificate &); \
35 operator QVariant () const; \
36 bool operator==(const K ## Class ## Certificate &other) const; \
37 bool operator!=(const K ## Class ## Certificate &other) const; \
39 KHealthCertificate::CertificateType type() const; \
40 friend class K ## Class ## CertificatePrivate; \
41 QExplicitlySharedDataPointer<K ## Class ## CertificatePrivate> d;
43#define KHEALTHCERTIFICATE_PROPERTY(Type, Getter, Setter) \
45 Q_PROPERTY(Type Getter READ Getter CONSTANT) \
46 Type Getter() const; \
47 void Setter(KHealthCertificateInternal::parameter_type<Type>::type value); \
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.