Syndication::Atom::FeedDocument Class Reference

#include <document.h>

Inheritance diagram for Syndication::Atom::FeedDocument:

Public Member Functions

 FeedDocument ()
 FeedDocument (const QDomElement &element)
bool accept (DocumentVisitor *visitor) override
QList< Personauthors () const
QList< Categorycategories () const
QList< Personcontributors () const
QString debugInfo () const override
QList< Entryentries () const
Generator generator () const
QString icon () const
QString id () const
bool isValid () const override
QList< Linklinks () const
QString logo () const
QString rights () const
QString subtitle () const
QString title () const
QList< QDomElementunhandledElements () const
time_t updated () const
- Public Member Functions inherited from Syndication::SpecificDocument
virtual ~SpecificDocument ()
- Public Member Functions inherited from Syndication::ElementWrapper
 ElementWrapper ()
 ElementWrapper (const ElementWrapper &other)
 ElementWrapper (const QDomElement &element)
virtual ~ElementWrapper ()
QString attribute (const QString &name, const QString &defValue=QString()) const
QString attributeNS (const QString &nsURI, const QString &localName, const QString &defValue=QString()) const
QString childNodesAsXML () const
QString completeURI (const QString &uri) const
const QDomElementelement () const
QList< QDomElementelementsByTagName (const QString &tagName) const
QList< QDomElementelementsByTagNameNS (const QString &nsURI, const QString &tagName) const
QString extractElementText (const QString &tagName) const
QString extractElementTextNS (const QString &namespaceURI, const QString &localName) const
QDomElement firstElementByTagNameNS (const QString &nsURI, const QString &tagName) const
bool hasAttribute (const QString &name) const
bool hasAttributeNS (const QString &nsURI, const QString &localName) const
bool isNull () const
ElementWrapperoperator= (const ElementWrapper &other)
bool operator== (const ElementWrapper &other) const
QString text () const
QString xmlBase () const
QString xmlLang () const

Additional Inherited Members

- Static Public Member Functions inherited from Syndication::ElementWrapper
static QString childNodesAsXML (const QDomElement &parent)

Detailed Description

An Atom 1.0 Feed Document, containing metadata describing the feed and a number of entries.

Frank Osterfeld

Definition at line 44 of file atom/document.h.

Constructor & Destructor Documentation

Syndication::Atom::FeedDocument::FeedDocument ( )

default constructor, creates a null feed, which is invalid.

See also

Definition at line 31 of file atom/document.cpp.

Syndication::Atom::FeedDocument::FeedDocument ( const QDomElement element)

creates a FeedDocument wrapping an atom:feed element.

elementa DOM element, should be a atom:feed document (although not enforced), otherwise this object will not parse anything useful

Definition at line 35 of file atom/document.cpp.

Member Function Documentation

bool Syndication::Atom::FeedDocument::accept ( DocumentVisitor visitor)

Used by visitors for double dispatch.

See DocumentVisitor for more information.

visitorthe visitor calling the method

Implements Syndication::SpecificDocument.

Definition at line 39 of file atom/document.cpp.

QList< Person > Syndication::Atom::FeedDocument::authors ( ) const

a list of persons who are the authors of this feed.

According to the Atom 1.0 spec, a feed must have an author unless all entries in it have one.

Definition at line 44 of file atom/document.cpp.

QList< Category > Syndication::Atom::FeedDocument::categories ( ) const

a list of categories this feed is assigned to (optional)

Definition at line 80 of file atom/document.cpp.

QList< Person > Syndication::Atom::FeedDocument::contributors ( ) const

a list of persons who contribute to this feed.


Definition at line 62 of file atom/document.cpp.

QString Syndication::Atom::FeedDocument::debugInfo ( ) const

returns a description of this feed document for debugging purposes.

debug string

Implements Syndication::SpecificDocument.

Definition at line 230 of file atom/document.cpp.

QList< Entry > Syndication::Atom::FeedDocument::entries ( ) const

a list of the entries (items) in this feed.

Definition at line 168 of file atom/document.cpp.

Generator Syndication::Atom::FeedDocument::generator ( ) const

description of the agent used to generate the feed.

See Generator for more information (optional).

description of the generator, or a null Generator object if not specified in the feed.

Definition at line 98 of file atom/document.cpp.

QString Syndication::Atom::FeedDocument::icon ( ) const

URL of an image serving as a feed icon (optional)

icon URL, or a null string if not specified in the feed.

Definition at line 104 of file atom/document.cpp.

QString Syndication::Atom::FeedDocument::id ( ) const

a string that unambigously identifies the feed (required)

the ID of the feed. As defined in the Atom spec it must be a valid URI (which is neither checked nor enforced by this parser)

Definition at line 121 of file atom/document.cpp.

bool Syndication::Atom::FeedDocument::isValid ( ) const

returns whether this document is valid or not.

Invalid documents do not contain any useful information.

Implements Syndication::SpecificDocument.

Definition at line 225 of file atom/document.cpp.

QList< Link > Syndication::Atom::FeedDocument::links ( ) const

a list of links.

See Link for more information on link types.

Definition at line 150 of file atom/document.cpp.

QString Syndication::Atom::FeedDocument::logo ( ) const

URL of an image serving as a feed logo (optional)

image URL, or a null string if not specified in the feed.

Definition at line 115 of file atom/document.cpp.

QString Syndication::Atom::FeedDocument::rights ( ) const

copyright information (optional)

copyright information for the feed (intended for human readers), or a null string if not specified

Definition at line 127 of file atom/document.cpp.

QString Syndication::Atom::FeedDocument::subtitle ( ) const

description or subtitle of the feed (optional).

subtitle string as HTML, or a null string if not specified in the feed.

Definition at line 138 of file atom/document.cpp.

QString Syndication::Atom::FeedDocument::title ( ) const

feed title (required).

title string as HTML.

Definition at line 133 of file atom/document.cpp.

QList< QDomElement > Syndication::Atom::FeedDocument::unhandledElements ( ) const

returns all child elements of this feed not covered by this class.

This can be used to access additional metadata from Atom extensions.

Definition at line 189 of file atom/document.cpp.

time_t Syndication::Atom::FeedDocument::updated ( ) const

The datetime of the last modification of the feed content.

the modification date in seconds since epoch

Definition at line 143 of file atom/document.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:06:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.