KItinerary

creativework.h
1 /*
2  SPDX-FileCopyrightText: 2019 Volker Krause <[email protected]>
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 
13 namespace KItinerary {
14 
15 class CreativeWorkPrivate;
16 
17 /** Base type describing any form of content.
18  * @see https://schema.org/CreativeWork
19  */
20 class KITINERARY_EXPORT CreativeWork
21 {
22  KITINERARY_BASE_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 
30 protected:
31  ///@cond internal
32  QExplicitlySharedDataPointer<CreativeWorkPrivate> d;
33  ///@endcond
34 };
35 
36 /** Description of a document.
37  * @see https://schema.org/DigitalDocument
38  */
39 class KITINERARY_EXPORT DigitalDocument : public CreativeWork
40 {
41  KITINERARY_GADGET(DigitalDocument)
42 };
43 
44 /** Description of an email.
45  * @see https://schema.org/EmailMessage
46  */
47 class KITINERARY_EXPORT EmailMessage : public CreativeWork
48 {
49  KITINERARY_GADGET(EmailMessage)
50 };
51 
52 }
53 
54 Q_DECLARE_METATYPE(KItinerary::CreativeWork)
55 Q_DECLARE_METATYPE(KItinerary::DigitalDocument)
56 Q_DECLARE_METATYPE(KItinerary::EmailMessage)
57 
58 
Description of an email.
Definition: creativework.h:47
Classes for reservation/travel data models, data extraction and data augmentation.
Description of a document.
Definition: creativework.h:39
Base type describing any form of content.
Definition: creativework.h:20
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Jan 25 2022 23:06:15 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.