File indexing completed on 2024-12-01 06:50:00
0001 /* 0002 This file is part of the syndication library 0003 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef SYNDICATION_MAPPER_IMAGERDFIMPL_H 0009 #define SYNDICATION_MAPPER_IMAGERDFIMPL_H 0010 0011 #include <QString> 0012 #include <image.h> 0013 #include <rdf/image.h> 0014 0015 namespace Syndication 0016 { 0017 class ImageRDFImpl; 0018 typedef QSharedPointer<ImageRDFImpl> ImageRDFImplPtr; 0019 0020 /** 0021 * 0022 * @internal 0023 * @author Frank Osterfeld 0024 */ 0025 class ImageRDFImpl : public Syndication::Image 0026 { 0027 public: 0028 explicit ImageRDFImpl(const Syndication::RDF::Image &image); 0029 0030 bool isNull() const override; 0031 0032 QString url() const override; 0033 0034 QString title() const override; 0035 0036 QString link() const override; 0037 0038 QString description() const override; 0039 0040 uint width() const override; 0041 0042 uint height() const override; 0043 0044 private: 0045 Syndication::RDF::Image m_image; 0046 }; 0047 0048 } // namespace Syndication 0049 0050 #endif // SYNDICATION_MAPPER_IMAGERDFIMPL_H