File indexing completed on 2024-04-14 03:58:26

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_IMAGERSS2IMPL_H
0009 #define SYNDICATION_MAPPER_IMAGERSS2IMPL_H
0010 
0011 #include <image.h>
0012 #include <rss2/image.h>
0013 
0014 namespace Syndication
0015 {
0016 class ImageRSS2Impl;
0017 typedef QSharedPointer<ImageRSS2Impl> ImageRSS2ImplPtr;
0018 
0019 /**
0020  *
0021  * @internal
0022  * @author Frank Osterfeld
0023  */
0024 class ImageRSS2Impl : public Syndication::Image
0025 {
0026 public:
0027     explicit ImageRSS2Impl(const Syndication::RSS2::Image &image);
0028 
0029     bool isNull() const override;
0030 
0031     QString url() const override;
0032 
0033     QString title() const override;
0034 
0035     QString link() const override;
0036 
0037     QString description() const override;
0038 
0039     uint width() const override;
0040 
0041     uint height() const override;
0042 
0043 private:
0044     Syndication::RSS2::Image m_image;
0045 };
0046 
0047 } // namespace Syndication
0048 
0049 #endif // SYNDICATION_MAPPER_IMAGERSS2IMPL_H