1 | /* |
2 | This file is part of the syndication library |
3 | SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.0-or-later |
6 | */ |
7 | |
8 | #ifndef SYNDICATION_MAPPER_ITEMRDFIMPL_H |
9 | #define SYNDICATION_MAPPER_ITEMRDFIMPL_H |
10 | |
11 | #include <item.h> |
12 | #include <rdf/item.h> |
13 | |
14 | #include <QString> |
15 | |
16 | namespace Syndication |
17 | { |
18 | class ItemRDFImpl; |
19 | typedef QSharedPointer<ItemRDFImpl> ItemRDFImplPtr; |
20 | |
21 | /** |
22 | * @internal |
23 | */ |
24 | class ItemRDFImpl : public Syndication::Item |
25 | { |
26 | public: |
27 | explicit ItemRDFImpl(const Syndication::RDF::Item &item); |
28 | |
29 | QString title() const override; |
30 | |
31 | QString link() const override; |
32 | |
33 | QString description() const override; |
34 | |
35 | QString content() const override; |
36 | |
37 | QList<PersonPtr> authors() const override; |
38 | |
39 | QString language() const override; |
40 | |
41 | QString id() const override; |
42 | |
43 | time_t datePublished() const override; |
44 | |
45 | time_t dateUpdated() const override; |
46 | |
47 | QList<EnclosurePtr> enclosures() const override; |
48 | |
49 | QList<CategoryPtr> categories() const override; |
50 | |
51 | SpecificItemPtr specificItem() const override; |
52 | |
53 | int () const override; |
54 | |
55 | QString () const override; |
56 | |
57 | QString () const override; |
58 | |
59 | QString () const override; |
60 | |
61 | QMultiMap<QString, QDomElement> additionalProperties() const override; |
62 | |
63 | private: |
64 | Syndication::RDF::Item m_item; |
65 | }; |
66 | |
67 | } // namespace Syndication |
68 | |
69 | #endif // SYNDICATION_MAPPER_ITEMRDFIMPL_H |
70 | |