| 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_FEEDATOMIMPL_H |
| 9 | #define SYNDICATION_MAPPER_FEEDATOMIMPL_H |
| 10 | |
| 11 | #include <atom/document.h> |
| 12 | #include <feed.h> |
| 13 | |
| 14 | namespace Syndication |
| 15 | { |
| 16 | class FeedAtomImpl; |
| 17 | typedef QSharedPointer<FeedAtomImpl> FeedAtomImplPtr; |
| 18 | class Image; |
| 19 | typedef QSharedPointer<Image> ImagePtr; |
| 20 | |
| 21 | class FeedAtomImpl : public Syndication::Feed |
| 22 | { |
| 23 | public: |
| 24 | explicit FeedAtomImpl(Syndication::Atom::FeedDocumentPtr doc); |
| 25 | |
| 26 | Syndication::SpecificDocumentPtr specificDocument() const override; |
| 27 | |
| 28 | QList<Syndication::ItemPtr> items() const override; |
| 29 | |
| 30 | QList<CategoryPtr> categories() const override; |
| 31 | |
| 32 | QString title() const override; |
| 33 | |
| 34 | QString link() const override; |
| 35 | |
| 36 | QString description() const override; |
| 37 | |
| 38 | QList<PersonPtr> authors() const override; |
| 39 | |
| 40 | QString language() const override; |
| 41 | |
| 42 | QString copyright() const override; |
| 43 | |
| 44 | ImagePtr image() const override; |
| 45 | |
| 46 | ImagePtr icon() const override; |
| 47 | |
| 48 | QMultiMap<QString, QDomElement> additionalProperties() const override; |
| 49 | |
| 50 | private: |
| 51 | Syndication::Atom::FeedDocumentPtr m_doc; |
| 52 | }; |
| 53 | |
| 54 | } // namespace Syndication |
| 55 | |
| 56 | #endif // SYNDICATION_MAPPER_FEEDATOMIMPL_H |
| 57 |
