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

syndication/rdf

Syndication::RDF::Item

Syndication::RDF::Item Class Reference

An RSS 1.0 item. More...

#include <item.h>

Inheritance diagram for Syndication::RDF::Item:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool accept (SpecificItemVisitor *visitor)
DublinCore dc () const
QString debugInfo () const
QString description () const
QString encodedContent () const
 Item (const Item &other)
 Item (ResourcePtr resource, DocumentPtr doc=DocumentPtr())
 Item ()
QString link () const
Item & operator= (const Item &other)
bool operator== (const Item &other) const
QString title () const
virtual ~Item ()

Detailed Description

An RSS 1.0 item.

(It is a convenience wrapper for the underlying RDF resource, which can be accessed via resource()).

Author:
Frank Osterfeld

Definition at line 48 of file item.h.


Constructor & Destructor Documentation

Syndication::RDF::Item::Item (  ) 

creates an item object wrapping a null resource, isNull() is true.

Definition at line 45 of file item.cpp.

Syndication::RDF::Item::Item ( ResourcePtr  resource,
DocumentPtr  doc = DocumentPtr() 
) [explicit]

Creates an item wrapping the given resource.

Parameters:
resource resource to wrap, should be of type of rss1:item, otherwise the wrapper will not return useful information.
doc the document this item is part of. Used by Document

Definition at line 49 of file item.cpp.

Syndication::RDF::Item::Item ( const Item &  other  ) 

copies an item

Parameters:
other item to copy

Definition at line 55 of file item.cpp.

Syndication::RDF::Item::~Item (  )  [virtual]

virtual destructor

Definition at line 62 of file item.cpp.


Member Function Documentation

bool Syndication::RDF::Item::accept ( SpecificItemVisitor *  visitor  ) 

interface for item visitors.

See SpecificItemVisitor for more information.

Parameters:
visitor a visitor visiting this object

Definition at line 141 of file item.cpp.

DublinCore Syndication::RDF::Item::dc (  )  const

returns a dublin core description of this item (including metadata such as item author or subject)

Definition at line 108 of file item.cpp.

QString Syndication::RDF::Item::debugInfo (  )  const

Returns a description of the item for debugging purposes.

Returns:
debug string

Definition at line 128 of file item.cpp.

QString Syndication::RDF::Item::description (  )  const

A brief description/abstract of the item.

if encodedContent() is not provided, this can also contain the full content.

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

Definition at line 92 of file item.cpp.

QString Syndication::RDF::Item::encodedContent (  )  const

returns content (content:encoded) as HTML.

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

Definition at line 113 of file item.cpp.

QString Syndication::RDF::Item::link (  )  const

The item's URL, usually pointing to a website containing the full content (news article, blog entry etc.

).

Returns:
the link

Definition at line 103 of file item.cpp.

Item & Syndication::RDF::Item::operator= ( const Item &  other  ) 

assigns another item

Parameters:
other the item to assign

Reimplemented from Syndication::RDF::ResourceWrapper.

Definition at line 68 of file item.cpp.

bool Syndication::RDF::Item::operator== ( const Item &  other  )  const

compares two item instances.

Two instances are equal, if the wrapped resources are equal. See ResourceWrapper::operator==() for details.

Parameters:
other the item to compare this item to

Reimplemented from Syndication::RDF::ResourceWrapper.

Definition at line 75 of file item.cpp.

QString Syndication::RDF::Item::title (  )  const

The item's title (required).

Returns:
The item's title as HTML, or a null string if not specified

Definition at line 81 of file item.cpp.


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

syndication/rdf

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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