Pages
API Documentation
On this page

Syndication::Atom::Parser Class

parser implementation for Atom 1.0 and 0.3. More...

  • Header: #include <Syndication/Atom/Parser>
  • CMake: find_package(KF6 REQUIRED COMPONENTS Syndication)
    target_link_libraries(mytarget PRIVATE KF6::Syndication)
  • Inherits: Syndication::AbstractParser

List of all members, including inherited members

Public Functions

Detailed Description

Member Function Documentation

Parser::Parser()

default constructor

[override virtual] bool Parser::accept(const Syndication::DocumentSource &source) const

Reimplements: AbstractParser::accept(const Syndication::DocumentSource &source) const.

returns whether the source looks like an Atom 1.0 or 0.3 document, by checking the root element.

source document source to check

[override virtual] QString Parser::format() const

Reimplements: AbstractParser::format() const.

returns the format string for this parser implementation, which is "atom"

Returns "atom"

[override virtual] Syndication::SpecificDocumentPtr Parser::parse(const Syndication::DocumentSource &source) const

Reimplements: AbstractParser::parse(const Syndication::DocumentSource &source) const.

parses either an EntryDocument or a FeedDocument from a document source. If the source is not an atom document, an invalid FeedDocument is returned.

source the document source to parse

See also SpecificDocument::isValid()

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.