Syndication

imagerss2impl.cpp
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #include "imagerss2impl.h"
9 
10 #include <QString>
11 
12 namespace Syndication
13 {
14 ImageRSS2Impl::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
uint width() const override
The width of the image in pixels.
bool isNull() const
returns whether the wrapped resource is a null resource
QString title() const override
Describes the image, can be used in the ALT attribute of the HTML <img> tag when the channel is rende...
QString title() const
Describes the image, can be used in the ALT attribute of the HTML <img> tag when the channel is rende...
Definition: rdf/image.cpp:30
bool isNull() const override
returns whether this image is a null object.
QString url() const
the URL of the image file
Definition: rdf/image.cpp:40
QString description() const override
optional text that can be included in the TITLE attribute of the link formed around the image in HTML...
QString url() const override
the URL of a GIF, JPEG or PNG image
An RSS2 image, used to describe feed logos.
Definition: rss2/image.h:23
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 link() const
The URL of the site, when the channel is rendered, the image should be a link to the site...
Definition: rdf/image.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 22:54:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.