Syndication::FeedRSS2Impl

Search for usage in LXR

Syndication::FeedRSS2Impl Class Reference

#include <feedrss2impl.h>

Inheritance diagram for Syndication::FeedRSS2Impl:

Public Member Functions

 FeedRSS2Impl (Syndication::RSS2::DocumentPtr doc)
 
QMultiMap< QString, QDomElementadditionalProperties () const override
 
QList< PersonPtr > authors () const override
 
QList< CategoryPtrcategories () const override
 
QString copyright () const override
 
QString description () const override
 
ImagePtr icon () const override
 
ImagePtr image () const override
 
QList< ItemPtr > items () const override
 
QString language () const override
 
QString link () const override
 
Syndication::SpecificDocumentPtr specificDocument () const override
 
QString title () const override
 
- Public Member Functions inherited from Syndication::Feed
virtual ~Feed ()
 
virtual QString debugInfo () const
 

Detailed Description

Definition at line 24 of file feedrss2impl.h.

Constructor & Destructor Documentation

◆ FeedRSS2Impl()

Syndication::FeedRSS2Impl::FeedRSS2Impl ( Syndication::RSS2::DocumentPtr doc)
explicit

Definition at line 23 of file feedrss2impl.cpp.

Member Function Documentation

◆ additionalProperties()

QMultiMap< QString, QDomElement > Syndication::FeedRSS2Impl::additionalProperties ( ) const
overridevirtual

returns a list of feed metadata not covered by this class.

Can be used e.g. to access format extensions.

The returned map contains key value pairs, where the key is the tag name of the element, namespace prefix are resolved to the corresponding URIs. The value is the XML element as read from the document.

For example, to access the <itunes:subtitle> element, use additionalProperties()["http://www.itunes.com/dtds/podcast-1.0.dtdsubtitle"].

Currently this is only supported for RSS 0.91..0.94/2.0 and Atom formats, but not for RDF (RSS 0.9 and 1.0).

Implements Syndication::Feed.

Definition at line 97 of file feedrss2impl.cpp.

◆ authors()

QList< PersonPtr > Syndication::FeedRSS2Impl::authors ( ) const
overridevirtual

returns a list of persons who created the feed content.

If there is a distinction between authors and contributors (Atom), both are added to the list, where authors are added first.

Returns
list of authors (and possibly other contributing persons)

Implements Syndication::Feed.

Definition at line 76 of file feedrss2impl.cpp.

◆ categories()

QList< Syndication::CategoryPtr > Syndication::FeedRSS2Impl::categories ( ) const
overridevirtual

returns a list of categories this feed is associated with.

See Category for more information.

Implements Syndication::Feed.

Definition at line 47 of file feedrss2impl.cpp.

◆ copyright()

QString Syndication::FeedRSS2Impl::copyright ( ) const
overridevirtual

returns copyright information about the feed

Implements Syndication::Feed.

Definition at line 86 of file feedrss2impl.cpp.

◆ description()

QString Syndication::FeedRSS2Impl::description ( ) const
overridevirtual

A description of the feed.

This string may contain HTML markup.(Importantly, occurrences of the characters <,'
', '&', '\'' and '"' are escaped).

Returns
the description as HTML, or a null string if none is specified

Implements Syndication::Feed.

Definition at line 71 of file feedrss2impl.cpp.

◆ icon()

ImagePtr Syndication::FeedRSS2Impl::icon ( ) const
overridevirtual

returns an icon associated with this item.

Returns
an icon object, or a null icon (Not a null pointer! I.e., icon()->isNull() is true) if no image is specified in the feed

Implements Syndication::Feed.

Definition at line 109 of file feedrss2impl.cpp.

◆ image()

ImagePtr Syndication::FeedRSS2Impl::image ( ) const
overridevirtual

returns an image associated with this item.

Returns
an image object, or a null image (Not a null pointer! I.e., image()->isNull() is true) if no image is specified in the feed

Implements Syndication::Feed.

Definition at line 91 of file feedrss2impl.cpp.

◆ items()

QList< Syndication::ItemPtr > Syndication::FeedRSS2Impl::items ( ) const
overridevirtual

A list of items, in the order they were parsed from the feed source.

(usually reverse chronological order, see also Item::datePublished() for sorting purposes).

Returns
list of items

Implements Syndication::Feed.

Definition at line 33 of file feedrss2impl.cpp.

◆ language()

QString Syndication::FeedRSS2Impl::language ( ) const
overridevirtual

The language used in the feed.

This is a global setting, which can be overridden by the contained items.

TODO: describe concrete format (language codes)

Implements Syndication::Feed.

Definition at line 81 of file feedrss2impl.cpp.

◆ link()

QString Syndication::FeedRSS2Impl::link ( ) const
overridevirtual

returns a link pointing to a website associated with this channel.

(blog, news site etc.)

Returns
a WWW link, or a null string if none is specified

Implements Syndication::Feed.

Definition at line 66 of file feedrss2impl.cpp.

◆ specificDocument()

Syndication::SpecificDocumentPtr Syndication::FeedRSS2Impl::specificDocument ( ) const
overridevirtual

returns the format-specific document this abstraction wraps.

If you want to access format-specific properties, this can be used, in combination with a DocumentVisitor.

Returns
a shared pointer to the wrapped document.

Implements Syndication::Feed.

Definition at line 28 of file feedrss2impl.cpp.

◆ title()

QString Syndication::FeedRSS2Impl::title ( ) const
overridevirtual

The title of the feed.

This string may contain HTML markup.(Importantly, occurrences of the characters <,'
', '&', '\'' and '"' are escaped).

Returns
the title, or a null string if none is specified

Implements Syndication::Feed.

Definition at line 61 of file feedrss2impl.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.