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

syndication/rss2

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

#include <parser.h>

Inherits AbstractParser.

Public Member Functions

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

Detailed Description

Parser implementation for the RSS 0.9x/2.0 format family.

Author
Frank Osterfeld

Definition at line 42 of file parser.h.

Constructor & Destructor Documentation

Syndication::RSS2::Parser::Parser ( )

default constructor

Definition at line 58 of file parser.cpp.

Syndication::RSS2::Parser::~Parser ( )
virtual

destructor

Definition at line 60 of file parser.cpp.

Member Function Documentation

bool Syndication::RSS2::Parser::accept ( const DocumentSource &  source) const

checks whether a document source looks like an RSS0.9x/2.0 document

Parameters
sourcea document source to check
Returns
true if the source looks like an RSS2 document

Definition at line 37 of file parser.cpp.

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

returns the format string of this parser implementation, which is "rss2".

Returns
"rss2"

Definition at line 53 of file parser.cpp.

Syndication::SpecificDocumentPtr Syndication::RSS2::Parser::parse ( const DocumentSource &  source) const

creates an RSS2 wrapper for a document source.

The wrapper will only return useful values if the source is really RSS 0.9x/2.0, so call accept() before to check.

Parameters
sourcethe source to wrap
Returns
A Syndication::RSS2::Document instance wrapping the XML source, or a null document (not a null pointer!) if there is no <channel> root element in the source.

Definition at line 48 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/rss2

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

kdepimlibs API Reference

Skip menu "kdepimlibs 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

Search



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