| 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 | class ItemRDFImpl : public Syndication::Item |
| 22 | { |
| 23 | public: |
| 24 | explicit ItemRDFImpl(const Syndication::RDF::Item &item); |
| 25 | |
| 26 | QString title() const override; |
| 27 | |
| 28 | QString link() const override; |
| 29 | |
| 30 | QString description() const override; |
| 31 | |
| 32 | QString content() const override; |
| 33 | |
| 34 | QList<PersonPtr> authors() const override; |
| 35 | |
| 36 | QString language() const override; |
| 37 | |
| 38 | QString id() const override; |
| 39 | |
| 40 | time_t datePublished() const override; |
| 41 | |
| 42 | time_t dateUpdated() const override; |
| 43 | |
| 44 | QList<EnclosurePtr> enclosures() const override; |
| 45 | |
| 46 | QList<CategoryPtr> categories() const override; |
| 47 | |
| 48 | SpecificItemPtr specificItem() const override; |
| 49 | |
| 50 | int () const override; |
| 51 | |
| 52 | QString () const override; |
| 53 | |
| 54 | QString () const override; |
| 55 | |
| 56 | QString () const override; |
| 57 | |
| 58 | QMultiMap<QString, QDomElement> additionalProperties() const override; |
| 59 | |
| 60 | private: |
| 61 | Syndication::RDF::Item m_item; |
| 62 | }; |
| 63 | |
| 64 | } // namespace Syndication |
| 65 | |
| 66 | #endif // SYNDICATION_MAPPER_ITEMRDFIMPL_H |
| 67 | |