Syndication

imagerss2impl.cpp
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#include "imagerss2impl.h"
9
10#include <QString>
11
12namespace Syndication
13{
14ImageRSS2Impl::ImageRSS2Impl(const Syndication::RSS2::Image &image)
15 : m_image(image)
16{
17}
18
20{
21 return m_image.isNull();
22}
23
25{
26 return m_image.url();
27}
28
30{
31 return m_image.title();
32}
33
35{
36 return m_image.link();
37}
38
40{
41 return m_image.description();
42}
43
45{
46 return m_image.height();
47}
48
50{
51 return m_image.width();
52}
53
54} // namespace Syndication
bool isNull() const override
returns whether this image is a null object.
QString url() const override
the URL of a GIF, JPEG or PNG image
QString description() const override
optional text that can be included in the TITLE attribute of the link formed around the image in HTML...
uint height() const override
The height of the image in pixels.
QString link() const override
The URL of the site, when the channel is rendered, the image should be a link to the site.
QString title() const override
Describes the image, can be used in the ALT attribute of the HTML <img> tag when the channel is rende...
uint width() const override
The width of the image in pixels.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:12:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.