• Skip to content
  • Skip to link menu
KDE 4.8 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

Syndication Library

item.h
00001 /*
00002  * This file is part of the syndication library
00003  *
00004  * Copyright (C) 2006 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_ITEM_H
00024 #define SYNDICATION_ITEM_H
00025 
00026 #include <QtCore/QString>
00027 #include <boost/shared_ptr.hpp>
00028 
00029 #include "ksyndication_export.h"
00030 
00031 #include <ctime>
00032 
00033 class QDomElement;
00034 template <class T> class QList;
00035 template <class K, class T> class QMultiMap;
00036 
00037 namespace Syndication {
00038 
00039 //@cond PRIVATE
00040 class Category;
00041 typedef boost::shared_ptr<Category> CategoryPtr;
00042 class Enclosure;
00043 typedef boost::shared_ptr<Enclosure> EnclosurePtr;
00044 class Item;
00045 typedef boost::shared_ptr<Item> ItemPtr;
00046 class Person;
00047 typedef boost::shared_ptr<Person> PersonPtr;
00048 class SpecificItem;
00049 typedef boost::shared_ptr<SpecificItem> SpecificItemPtr;
00050 //@endcond
00051 
00057 class SYNDICATION_EXPORT Item
00058 {
00059     public:
00060 
00064         virtual ~Item();
00065 
00066 
00073         virtual SpecificItemPtr specificItem() const = 0;
00074 
00084         virtual QString title() const = 0;
00085 
00093         virtual QString link() const = 0;
00094 
00105         virtual QString description() const = 0;
00106 
00118         virtual QString content() const = 0;
00119 
00126         virtual time_t datePublished() const = 0;
00127 
00135         virtual time_t dateUpdated() const = 0;
00136 
00144         virtual QString id() const = 0;
00145 
00153         virtual QList<PersonPtr> authors() const = 0;
00154 
00160         virtual QString language() const = 0;
00161 
00168         virtual QList<EnclosurePtr> enclosures() const = 0;
00169 
00176         virtual QList<CategoryPtr> categories() const = 0;
00177 
00184         virtual int commentsCount() const = 0;
00185 
00192         virtual QString commentsLink() const = 0;
00193 
00199         virtual QString commentsFeed() const = 0;
00200 
00209         virtual QString commentPostUri() const = 0;
00210 
00227         virtual QMultiMap<QString, QDomElement> additionalProperties() const = 0;
00228 
00234         virtual QString debugInfo() const;
00235 };
00236 
00237 } // namespace Syndication
00238 
00239 #endif // SYNDICATION_ITEM_H

Syndication Library

Skip menu "Syndication Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • 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
Generated for KDE-PIM Libraries by doxygen 1.7.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