KItinerary

creativework.h
1/*
2 SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kitinerary_export.h"
10#include "datatypes.h"
11
12
13namespace KItinerary {
14
15class CreativeWorkPrivate;
16
17/** Base type describing any form of content.
18 * @see https://schema.org/CreativeWork
19 */
20class KITINERARY_EXPORT CreativeWork
21{
22 KITINERARY_GADGET(CreativeWork)
23 /** Name of the file. */
24 KITINERARY_PROPERTY(QString, name, setName)
25 /** Human readable description. */
26 KITINERARY_PROPERTY(QString, description, setDescription)
27 /** Mimetype. */
28 KITINERARY_PROPERTY(QString, encodingFormat, setEncodingFormat)
29
30protected:
31 ///@cond internal
32 QExplicitlySharedDataPointer<CreativeWorkPrivate> d;
33 ///@endcond
34};
35
36class DigitalDocumentPrivate;
37
38/** Description of a document.
39 * @see https://schema.org/DigitalDocument
40 */
41class KITINERARY_EXPORT DigitalDocument : public CreativeWork
42{
43 KITINERARY_GADGET(DigitalDocument)
44};
45
46class EmailMessagePrivate;
47
48/** Description of an email.
49 * @see https://schema.org/EmailMessage
50 */
51class KITINERARY_EXPORT EmailMessage : public CreativeWork
52{
53 KITINERARY_GADGET(EmailMessage)
54};
55
56}
57
58Q_DECLARE_METATYPE(KItinerary::CreativeWork)
59Q_DECLARE_METATYPE(KItinerary::DigitalDocument)
60Q_DECLARE_METATYPE(KItinerary::EmailMessage)
61
62
Base type describing any form of content.
Description of a document.
Description of an email.
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:48 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.