Syndication

itematomimpl.h
1 /*
2  This file is part of the syndication library
3 
4  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef SYNDICATION_MAPPER_ITEMATOMIMPL_H
10 #define SYNDICATION_MAPPER_ITEMATOMIMPL_H
11 
12 #include <atom/entry.h>
13 #include <item.h>
14 
15 namespace Syndication
16 {
17 class ItemAtomImpl;
18 typedef QSharedPointer<ItemAtomImpl> ItemAtomImplPtr;
19 
20 /**
21  * @internal
22  */
24 {
25 public:
26  explicit ItemAtomImpl(const Syndication::Atom::Entry &entry);
27 
28  QString title() const override;
29 
30  QString link() const override;
31 
32  QString description() const override;
33 
34  QString content() const override;
35 
36  QList<PersonPtr> authors() const override;
37 
38  QString language() const override;
39 
40  QString id() const override;
41 
42  time_t datePublished() const override;
43 
44  time_t dateUpdated() const override;
45 
46  QList<EnclosurePtr> enclosures() const override;
47 
48  QList<CategoryPtr> categories() const override;
49 
50  SpecificItemPtr specificItem() const override;
51 
52  int commentsCount() const override;
53 
54  QString commentsLink() const override;
55 
56  QString commentsFeed() const override;
57 
58  QString commentPostUri() const override;
59 
61 
62 private:
64 };
65 
66 } // namespace Syndication
67 
68 #endif // SYNDICATION_MAPPER_ITEMATOMIMPL_H
int commentsCount() const override
The number of comments posted for this item.
QString link() const override
returns a link to the (web) resource described by this item.
SpecificItemPtr specificItem() const override
returns the format-specific item this object abstracts from.
QString commentPostUri() const override
URI that can be used to post comments via an HTTP POST request using the Comment API.
An item from a news feed.
Definition: item.h:44
QString commentsFeed() const override
URL of feed syndicating comments belonging to this item.
QList< PersonPtr > authors() const override
returns a list of persons who created the item content.
QList< CategoryPtr > categories() const override
returns a list of categories this item is filed in.
time_t datePublished() const override
returns the date when the item was initially published.
QString title() const override
The title of the item.
QList< EnclosurePtr > enclosures() const override
returns a list of enclosures describing files available on the net.
QString description() const override
returns the description of the item.
QString content() const override
returns the content of the item.
QString commentsLink() const override
Link to an HTML site which contains the comments belonging to this item.
QString language() const override
returns the language used in the item&#39;s content
an Atom entry, equivalent to the "items" in the RSS world.
Definition: entry.h:38
QString id() const override
returns an identifier that identifies the item within its feed.
QMultiMap< QString, QDomElement > additionalProperties() const override
returns a list of item metadata not covered by this class.
Definition: feed.h:20
time_t dateUpdated() const override
returns the date when the item was modified the last time.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:04:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.