• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

syndication/atom

Syndication::Atom::Entry

Syndication::Atom::Entry Class Reference

an Atom entry, equivalent to the "items" in the RSS world. More...

#include <entry.h>

Inherits ElementWrapper, and SpecificItem.

List of all members.

Public Member Functions

 Entry (const QDomElement &element)
 Entry ()
bool accept (SpecificItemVisitor *visitor)
QList< Person > authors () const
QList< Category > categories () const
Content content () const
QList< Person > contributors () const
QString debugInfo () const
QString id () const
QList< Link > links () const
time_t published () const
QString rights () const
Source source () const
QString summary () const
QString title () const
QList< QDomElement > unhandledElements () const
time_t updated () const

Detailed Description

an Atom entry, equivalent to the "items" in the RSS world.

Author:
Frank Osterfeld

Definition at line 52 of file entry.h.


Constructor & Destructor Documentation

Syndication::Atom::Entry::Entry (  ) 

creates a null entry object

Definition at line 31 of file entry.cpp.

Syndication::Atom::Entry::Entry ( const QDomElement &  element  )  [explicit]

creates an Entry object wrapping an atom:entry element.

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

Definition at line 35 of file entry.cpp.


Member Function Documentation

bool Syndication::Atom::Entry::accept ( SpecificItemVisitor *  visitor  ) 

Used by visitors for double dispatch.

See SpecificVisitor for more information.

Parameters:
visitor the visitor calling the method

Definition at line 253 of file entry.cpp.

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

list of persons who are authors of this entry.

This is optional if the containing feed has an author description, and required if not.

Definition at line 39 of file entry.cpp.

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

a list of categories this entry is filed to (optional)

Definition at line 77 of file entry.cpp.

Content Syndication::Atom::Entry::content (  )  const

content of the entry (optional) See Content for details

Returns:
entry content, or a null content object if not specified

Definition at line 157 of file entry.cpp.

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

list of persons contributing to this entry (optional)

Definition at line 58 of file entry.cpp.

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

returns a description of this entry for debugging purposes

Returns:
debug string

Definition at line 196 of file entry.cpp.

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

ID of the article.

(required) The ID must be unique inside this feed. The atom spec defines it as a URI (which is not enforced by this parser)

Definition at line 96 of file entry.cpp.

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

links pointing to associated web sites and other resources.

Links are optional if the entry provides Content. Otherwise, it must contain at least one link with a rel value of "alternate". (see Link).

Definition at line 103 of file entry.cpp.

time_t Syndication::Atom::Entry::published (  )  const

The datetime of the publication of this entry (optional).

Returns:
the publication date in seconds since epoch

Definition at line 133 of file entry.cpp.

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

copyright information (optional)

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

Definition at line 122 of file entry.cpp.

Source Syndication::Atom::Entry::source (  )  const

source description of the content (optional)

If the content was copied from another feed, this object contains information about the source feed.

Returns:
source description, or a null object if not specified

Definition at line 127 of file entry.cpp.

QString Syndication::Atom::Entry::summary (  )  const

a short summary, abstract or excerpt of an entry.

(optional) This is usually more verbose than title() and but does not contain the whole content as content() does.

Returns:
the summary as HTML, or a null string if not specified

Definition at line 147 of file entry.cpp.

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

title of the entry (required).

Returns:
the title as HTML

Definition at line 152 of file entry.cpp.

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

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

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

Definition at line 163 of file entry.cpp.

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

The datetime of the last modification of this entry (required).

Returns:
the modification date in seconds since epoch

Definition at line 140 of file entry.cpp.


The documentation for this class was generated from the following files:
  • entry.h
  • entry.cpp

syndication/atom

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal