Syndication

imageatomimpl.h
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#ifndef SYNDICATION_MAPPER_IMAGEATOMIMPL_H
9#define SYNDICATION_MAPPER_IMAGEATOMIMPL_H
10
11#include <image.h>
12
13#include <QString>
14
15namespace Syndication
16{
17class ImageAtomImpl;
18typedef QSharedPointer<ImageAtomImpl> ImageAtomImplPtr;
19
20/**
21 *
22 * @internal
23 * @author Frank Osterfeld
24 */
26{
27public:
28 explicit ImageAtomImpl(const QString &logoURI)
29 : m_logoURI(logoURI)
30 {
31 }
32
33 bool isNull() const override
34 {
35 return m_logoURI.isEmpty();
36 }
37
38 QString url() const override
39 {
40 return m_logoURI;
41 }
42
43 QString title() const override
44 {
45 return QString();
46 }
47
48 QString link() const override
49 {
50 return QString();
51 }
52
53 QString description() const override
54 {
55 return QString();
56 }
57
58 uint width() const override
59 {
60 return 0;
61 }
62
63 uint height() const override
64 {
65 return 0;
66 }
67
68private:
69 QString m_logoURI;
70};
71
72} // namespace Syndication
73
74#endif // SYNDICATION_MAPPER_IMAGEATOMIMPL_H
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
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.
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 height() const override
The height of the image in pixels.
This class represents an image file on the web.
Definition image.h:31
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.