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