File indexing completed on 2024-12-29 04:49:57

0001 /*
0002     SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "kitinerary_export.h"
0010 #include "datatypes.h"
0011 
0012 namespace KItinerary {
0013 
0014 class PersonPrivate;
0015 
0016 /** A person
0017  *  @see https://schema.org/Person
0018  */
0019 class KITINERARY_EXPORT Person
0020 {
0021     KITINERARY_GADGET(Person)
0022     KITINERARY_PROPERTY(QString, name, setName)
0023     KITINERARY_PROPERTY(QString, email, setEmail)
0024     KITINERARY_PROPERTY(QString, familyName, setFamilyName)
0025     KITINERARY_PROPERTY(QString, givenName, setGivenName)
0026 private:
0027     QExplicitlySharedDataPointer<PersonPrivate> d;
0028 };
0029 
0030 }
0031 
0032 Q_DECLARE_METATYPE(KItinerary::Person)
0033