Syndication

itemrss2impl.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_ITEMRSS2IMPL_H
9 #define SYNDICATION_MAPPER_ITEMRSS2IMPL_H
10 
11 #include <item.h>
12 #include <rss2/item.h>
13 
14 namespace Syndication
15 {
16 class ItemRSS2Impl;
17 typedef QSharedPointer<ItemRSS2Impl> ItemRSS2ImplPtr;
18 
19 /**
20  * @internal
21  */
23 {
24 public:
25  explicit ItemRSS2Impl(const Syndication::RSS2::Item &item);
26 
27  QString title() const override;
28 
29  QString link() const override;
30 
31  QString description() const override;
32 
33  QString content() const override;
34 
35  QList<PersonPtr> authors() const override;
36 
37  QString language() const override;
38 
39  QString id() const override;
40 
41  time_t datePublished() const override;
42 
43  time_t dateUpdated() const override;
44 
45  QList<EnclosurePtr> enclosures() const override;
46 
47  QList<CategoryPtr> categories() const override;
48 
49  SpecificItemPtr specificItem() const override;
50 
51  int commentsCount() const override;
52 
53  QString commentsLink() const override;
54 
55  QString commentsFeed() const override;
56 
57  QString commentPostUri() const override;
58 
60 
61 private:
62  Syndication::RSS2::Item m_item;
63 };
64 
65 } // namespace Syndication
66 
67 #endif // SYNDICATION_MAPPER_ITEMRSS2IMPL_H
Definition: feed.h:20
QString commentsLink() const override
Link to an HTML site which contains the comments belonging to this item.
QString id() const override
returns an identifier that identifies the item within its feed.
QString content() const override
returns the content of the item.
QString language() const override
returns the language used in the item's content
An item from a news feed.
Definition: item.h:44
QList< PersonPtr > authors() const override
returns a list of persons who created the item content.
QString commentPostUri() const override
URI that can be used to post comments via an HTTP POST request using the Comment API.
SpecificItemPtr specificItem() const override
returns the format-specific item this object abstracts from.
QString link() const override
returns a link to the (web) resource described by this item.
int commentsCount() const override
The number of comments posted for this item.
QString commentsFeed() const override
URL of feed syndicating comments belonging to this item.
QString title() const override
The title of the item.
QList< CategoryPtr > categories() const override
returns a list of categories this item is filed in.
time_t dateUpdated() const override
returns the date when the item was modified the last time.
QList< EnclosurePtr > enclosures() const override
returns a list of enclosures describing files available on the net.
QMultiMap< QString, QDomElement > additionalProperties() const override
returns a list of item metadata not covered by this class.
time_t datePublished() const override
returns the date when the item was initially published.
QString description() const override
returns the description of the item.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.