Syndication

item.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_ITEM_H
9 #define SYNDICATION_ITEM_H
10 
11 #include <QSharedPointer>
12 #include <QString>
13 
14 #include "syndication_export.h"
15 
16 #include <ctime>
17 
18 class QDomElement;
19 template <class T> class QList;
20 template <class K, class T> class QMultiMap;
21 
22 namespace Syndication
23 {
24 
25 //@cond PRIVATE
26 class Category;
27 typedef QSharedPointer<Category> CategoryPtr;
28 class Enclosure;
29 typedef QSharedPointer<Enclosure> EnclosurePtr;
30 class Item;
31 typedef QSharedPointer<Item> ItemPtr;
32 class Person;
33 typedef QSharedPointer<Person> PersonPtr;
34 class SpecificItem;
35 typedef QSharedPointer<SpecificItem> SpecificItemPtr;
36 //@endcond
37 
43 class SYNDICATION_EXPORT Item
44 {
45 public:
46 
50  virtual ~Item();
51 
58  virtual SpecificItemPtr specificItem() const = 0;
59 
69  virtual QString title() const = 0;
70 
78  virtual QString link() const = 0;
79 
90  virtual QString description() const = 0;
91 
103  virtual QString content() const = 0;
104 
111  virtual time_t datePublished() const = 0;
112 
120  virtual time_t dateUpdated() const = 0;
121 
129  virtual QString id() const = 0;
130 
138  virtual QList<PersonPtr> authors() const = 0;
139 
145  virtual QString language() const = 0;
146 
153  virtual QList<EnclosurePtr> enclosures() const = 0;
154 
161  virtual QList<CategoryPtr> categories() const = 0;
162 
169  virtual int commentsCount() const = 0;
170 
177  virtual QString commentsLink() const = 0;
178 
184  virtual QString commentsFeed() const = 0;
185 
194  virtual QString commentPostUri() const = 0;
195 
212  virtual QMultiMap<QString, QDomElement> additionalProperties() const = 0;
213 
219  virtual QString debugInfo() const;
220 };
221 
222 } // namespace Syndication
223 
224 #endif // SYNDICATION_ITEM_H
An item from a news feed.
Definition: item.h:43
Definition: feed.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:02:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.