| 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_IMAGERDFIMPL_H |
| 9 | #define SYNDICATION_MAPPER_IMAGERDFIMPL_H |
| 10 | |
| 11 | #include <QString> |
| 12 | #include <image.h> |
| 13 | #include <rdf/image.h> |
| 14 | |
| 15 | namespace Syndication |
| 16 | { |
| 17 | class ImageRDFImpl; |
| 18 | typedef QSharedPointer<ImageRDFImpl> ImageRDFImplPtr; |
| 19 | |
| 20 | class ImageRDFImpl : public Syndication::Image |
| 21 | { |
| 22 | public: |
| 23 | explicit ImageRDFImpl(const Syndication::RDF::Image &image); |
| 24 | |
| 25 | bool isNull() const override; |
| 26 | |
| 27 | QString url() const override; |
| 28 | |
| 29 | QString title() const override; |
| 30 | |
| 31 | QString link() const override; |
| 32 | |
| 33 | QString description() const override; |
| 34 | |
| 35 | uint width() const override; |
| 36 | |
| 37 | uint height() const override; |
| 38 | |
| 39 | private: |
| 40 | Syndication::RDF::Image m_image; |
| 41 | }; |
| 42 | |
| 43 | } // namespace Syndication |
| 44 | |
| 45 | #endif // SYNDICATION_MAPPER_IMAGERDFIMPL_H |
| 46 | |