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

syndication/rss2

item.h
00001 /*
00002  * This file is part of the syndication library
00003  *
00004  * Copyright (C) 2005 Frank Osterfeld <osterfeld@kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public License
00017  * along with this library; see the file COPYING.LIB.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #ifndef SYNDICATION_RSS2_ITEM_H
00024 #define SYNDICATION_RSS2_ITEM_H
00025 
00026 #include <syndication/rss2/document.h>
00027 #include <syndication/elementwrapper.h>
00028 #include <boost/shared_ptr.hpp>
00029 #include <syndication/specificitem.h>
00030 
00031 #include <ctime>
00032 
00033 class QDomElement;
00034 class QString;
00035 template <class T> class QList;
00036 
00037 namespace Syndication {
00038 
00039 class SpecificItemVisitor;
00040 
00041 namespace RSS2 {
00042 
00043 class Category;
00044 class Enclosure;
00045 class Source;
00046 
00052 class SYNDICATION_EXPORT Item : public ElementWrapper, public Syndication::SpecificItem
00053 {
00054     public:
00055 
00060         explicit Item(boost::shared_ptr<Document> doc=boost::shared_ptr<Document>());
00061 
00068         explicit Item(const QDomElement& element, boost::shared_ptr<Document> doc=boost::shared_ptr<Document>());
00069 
00076         Item(const Item& other);
00077 
00081         ~Item();
00082 
00089         Item& operator=(const Item& other);
00090 
00091 
00097         bool accept(SpecificItemVisitor* visitor);
00098 
00106         QString title() const;
00107 
00114         QString link() const;
00115 
00125         QString description() const;
00126 
00137         QString content() const;
00138 
00144         QList<Category> categories() const;
00145 
00151         QString comments() const;
00152 
00166         QString author() const;
00167 
00176         QList<Enclosure> enclosures() const;
00177 
00189         QString guid() const;
00190 
00199         bool guidIsPermaLink() const;
00200 
00211         time_t pubDate() const;
00212 
00221         time_t expirationDate() const;
00222 
00230         QString rating() const;
00231 
00239         Source source() const;
00240 
00245         QList<QDomElement> unhandledElements() const;
00246 
00247 
00254         QString debugInfo() const;
00255 
00256         //@cond PRIVATE
00262         QString originalDescription() const;
00263 
00269         QString originalTitle() const;
00270         //@endcond
00271 
00272     private:
00273 
00274         class ItemPrivate;
00275         boost::shared_ptr<ItemPrivate> d;
00276 };
00277 
00278 } // namespace RSS2
00279 } // namespace Syndication
00280 
00281 #endif // SYNDICATION_RSS2_ITEM_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:24:57 by doxygen 1.7.5 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-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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