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 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
QString url() const override
the URL of a GIF, JPEG or PNG image
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 description() const override
optional text that can be included in the TITLE attribute of the link formed around the image in HTML...
QString link() const override
The URL of the site, when the channel is rendered, the image should be a link to the site.
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.
QString url() const
the URL of the image file
Definition: rdf/image.cpp:40
uint width() const override
The width of the image in pixels.
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Dec 6 2023 03:51:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.