Syndication

feedrdfimpl.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_FEEDRDFIMPL_H
9 #define SYNDICATION_MAPPER_FEEDRDFIMPL_H
10 
11 #include <rdf/document.h>
12 #include <feed.h>
13 
14 namespace Syndication
15 {
16 
17 class FeedRDFImpl;
18 typedef QSharedPointer<FeedRDFImpl> FeedRDFImplPtr;
19 class Image;
20 typedef QSharedPointer<Image> ImagePtr;
21 
26 {
27 public:
28 
29  explicit FeedRDFImpl(Syndication::RDF::DocumentPtr doc);
30 
31  Syndication::SpecificDocumentPtr specificDocument() const override;
32 
33  QList<ItemPtr> items() const override;
34 
35  QList<CategoryPtr> categories() const override;
36 
37  QString title() const override;
38 
39  QString link() const override;
40 
41  QString description() const override;
42 
43  QList<PersonPtr> authors() const override;
44 
45  QString language() const override;
46 
47  QString copyright() const override;
48 
49  ImagePtr image() const override;
50 
52 
53  ImagePtr icon() const override;
54 
55 private:
56 
57  Syndication::RDF::DocumentPtr m_doc;
58 };
59 
60 } // namespace Syndication
61 
62 #endif // SYNDICATION_MAPPER_FEEDRDFIMPL_H
QString language() const override
The language used in the feed.
Definition: feedrdfimpl.cpp:92
QList< PersonPtr > authors() const override
returns a list of persons who created the feed content.
Definition: feedrdfimpl.cpp:73
ImagePtr image() const override
returns an image associated with this item.
QString copyright() const override
returns copyright information about the feed
Definition: feedrdfimpl.cpp:97
QList< ItemPtr > items() const override
A list of items, in the order they were parsed from the feed source.
Definition: feedrdfimpl.cpp:36
Syndication::SpecificDocumentPtr specificDocument() const override
returns the format-specific document this abstraction wraps.
Definition: feedrdfimpl.cpp:31
ImagePtr icon() const override
returns an icon associated with this item.
This class represents a feed document ("Channel" in RSS, "Feed" in Atom).
Definition: feed.h:51
QList< CategoryPtr > categories() const override
returns a list of categories this feed is associated with.
Definition: feedrdfimpl.cpp:52
QString title() const override
The title of the feed.
Definition: feedrdfimpl.cpp:58
QString description() const override
A description of the feed.
Definition: feedrdfimpl.cpp:68
QString link() const override
returns a link pointing to a website associated with this channel.
Definition: feedrdfimpl.cpp:63
QMultiMap< QString, QDomElement > additionalProperties() const override
returns a list of feed metadata not covered by this class.
Definition: feed.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 13 2020 23:02:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.