Syndication

imagerdfimpl.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 "imagerdfimpl.h"
9
10namespace Syndication
11{
12ImageRDFImpl::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
48{
49 return 0;
50}
51
52} // namespace Syndication
uint width() const override
The width of the image in pixels.
QString description() const override
optional text that can be included in the TITLE attribute of the link formed around the image in HTML...
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
uint height() const override
The height of the image in pixels.
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 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-2025 The KDE developers.
Generated on Fri Feb 28 2025 11:51:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.