Syndication

imageatomimpl.h
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 #ifndef SYNDICATION_MAPPER_IMAGEATOMIMPL_H
9 #define SYNDICATION_MAPPER_IMAGEATOMIMPL_H
10 
11 #include <image.h>
12 
13 #include <QString>
14 
15 namespace Syndication
16 {
17 class ImageAtomImpl;
18 typedef QSharedPointer<ImageAtomImpl> ImageAtomImplPtr;
19 
20 /**
21  *
22  * @internal
23  * @author Frank Osterfeld
24  */
26 {
27 public:
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 
68 private:
69  QString m_logoURI;
70 };
71 
72 } // namespace Syndication
73 
74 #endif // SYNDICATION_MAPPER_IMAGEATOMIMPL_H
QString link() const override
The URL of the site, when the channel is rendered, the image should be a link to the site...
Definition: imageatomimpl.h:48
bool isNull() const override
returns whether this image is a null object.
Definition: imageatomimpl.h:33
QString url() const override
the URL of a GIF, JPEG or PNG image
Definition: imageatomimpl.h:38
QString description() const override
optional text that can be included in the TITLE attribute of the link formed around the image in HTML...
Definition: imageatomimpl.h:53
QString title() const override
Describes the image, can be used in the ALT attribute of the HTML <img> tag when the channel is rende...
Definition: imageatomimpl.h:43
This class represents an image file on the web.
Definition: image.h:30
bool isEmpty() const const
uint height() const override
The height of the image in pixels.
Definition: imageatomimpl.h:63
uint width() const override
The width of the image in pixels.
Definition: imageatomimpl.h:58
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.