• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

syndication/atom

  • Syndication
  • Atom
  • Parser
Public Member Functions | List of all members
Syndication::Atom::Parser Class Reference

#include <parser.h>

Inherits Syndication::AbstractParser.

Public Member Functions

 Parser ()
 
virtual ~Parser ()
 
bool accept (const Syndication::DocumentSource &source) const
 
QString format () const
 
Syndication::SpecificDocumentPtr parse (const Syndication::DocumentSource &source) const
 

Detailed Description

parser implementation for Atom 1.0 and 0.3.

Author
Frank Osterfeld

Definition at line 43 of file parser.h.

Constructor & Destructor Documentation

◆ Parser()

Syndication::Atom::Parser::Parser ( )

default constructor

Definition at line 206 of file parser.cpp.

◆ ~Parser()

Syndication::Atom::Parser::~Parser ( )
virtual

destructor

Definition at line 207 of file parser.cpp.

Member Function Documentation

◆ accept()

bool Syndication::Atom::Parser::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.

Parameters
sourcedocument source to check

Definition at line 51 of file parser.cpp.

◆ format()

QString Syndication::Atom::Parser::format ( ) const

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

Returns
"atom"

Definition at line 98 of file parser.cpp.

◆ parse()

Syndication::SpecificDocumentPtr Syndication::Atom::Parser::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.

See also
SpecificDocument::isValid()
Parameters
sourcethe document source to parse

Definition at line 57 of file parser.cpp.


The documentation for this class was generated from the following files:
  • parser.h
  • parser.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/atom

Skip menu "syndication/atom"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal