Syndication

imagerdfimpl.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 "imagerdfimpl.h"
9 
10 namespace Syndication
11 {
12 ImageRDFImpl::ImageRDFImpl(const Syndication::RDF::Image &image)
13  : m_image(image)
14 {
15 }
16 
18 {
19  return m_image.isNull();
20 }
21 
23 {
24  return m_image.url();
25 }
26 
28 {
29  return m_image.title();
30 }
31 
33 {
34  return m_image.link();
35 }
36 
38 {
39  return QString();
40 }
41 
43 {
44  return 0;
45 }
46 
47 uint ImageRDFImpl::width() const
48 {
49  return 0;
50 }
51 
52 } // namespace Syndication
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 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...
An image to be associated with an HTML rendering of the channel.
Definition: rdf/image.h:26
uint height() const override
The height of the image in pixels.
uint width() const override
The width of the image in pixels.
bool isNull() const override
returns whether this image is a null object.
QString link() const override
The URL of the site, when the channel is rendered, the image should be a link to the site...
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.