Syndication

feedatomimpl.h
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef SYNDICATION_MAPPER_FEEDATOMIMPL_H
9#define SYNDICATION_MAPPER_FEEDATOMIMPL_H
10
11#include <atom/document.h>
12#include <feed.h>
13
14namespace Syndication
15{
16class FeedAtomImpl;
17typedef QSharedPointer<FeedAtomImpl> FeedAtomImplPtr;
18class Image;
19typedef QSharedPointer<Image> ImagePtr;
20
21/**
22 * @internal
23 */
25{
26public:
27 explicit FeedAtomImpl(Syndication::Atom::FeedDocumentPtr doc);
28
29 Syndication::SpecificDocumentPtr specificDocument() const override;
30
31 QList<Syndication::ItemPtr> items() const override;
32
33 QList<CategoryPtr> categories() const override;
34
35 QString title() const override;
36
37 QString link() const override;
38
39 QString description() const override;
40
41 QList<PersonPtr> authors() const override;
42
43 QString language() const override;
44
45 QString copyright() const override;
46
47 ImagePtr image() const override;
48
49 ImagePtr icon() const override;
50
52
53private:
54 Syndication::Atom::FeedDocumentPtr m_doc;
55};
56
57} // namespace Syndication
58
59#endif // SYNDICATION_MAPPER_FEEDATOMIMPL_H
QList< PersonPtr > authors() const override
returns a list of persons who created the feed content.
QList< Syndication::ItemPtr > items() const override
A list of items, in the order they were parsed from the feed source.
QMultiMap< QString, QDomElement > additionalProperties() const override
returns a list of feed metadata not covered by this class.
QList< CategoryPtr > categories() const override
returns a list of categories this feed is associated with.
ImagePtr image() const override
returns an image associated with this item.
QString copyright() const override
returns copyright information about the feed
QString title() const override
The title of the feed.
Syndication::SpecificDocumentPtr specificDocument() const override
returns the format-specific document this abstraction wraps.
QString language() const override
The language used in the feed.
QString link() const override
returns a link pointing to a website associated with this channel.
ImagePtr icon() const override
returns an icon associated with this item.
QString description() const override
A description of the feed.
This class represents a feed document ("Channel" in RSS, "Feed" in Atom).
Definition feed.h:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.