File indexing completed on 2024-10-13 12:20:34
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_IMAGEATOMIMPL_H 0009 #define SYNDICATION_MAPPER_IMAGEATOMIMPL_H 0010 0011 #include <image.h> 0012 0013 #include <QString> 0014 0015 namespace Syndication 0016 { 0017 class ImageAtomImpl; 0018 typedef QSharedPointer<ImageAtomImpl> ImageAtomImplPtr; 0019 0020 /** 0021 * 0022 * @internal 0023 * @author Frank Osterfeld 0024 */ 0025 class ImageAtomImpl : public Syndication::Image 0026 { 0027 public: 0028 explicit ImageAtomImpl(const QString &logoURI) 0029 : m_logoURI(logoURI) 0030 { 0031 } 0032 0033 bool isNull() const override 0034 { 0035 return m_logoURI.isEmpty(); 0036 } 0037 0038 QString url() const override 0039 { 0040 return m_logoURI; 0041 } 0042 0043 QString title() const override 0044 { 0045 return QString(); 0046 } 0047 0048 QString link() const override 0049 { 0050 return QString(); 0051 } 0052 0053 QString description() const override 0054 { 0055 return QString(); 0056 } 0057 0058 uint width() const override 0059 { 0060 return 0; 0061 } 0062 0063 uint height() const override 0064 { 0065 return 0; 0066 } 0067 0068 private: 0069 QString m_logoURI; 0070 }; 0071 0072 } // namespace Syndication 0073 0074 #endif // SYNDICATION_MAPPER_IMAGEATOMIMPL_H