syndication/atom
document.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_ATOM_DOCUMENT_H 00024 #define SYNDICATION_ATOM_DOCUMENT_H 00025 00026 #include <syndication/specificdocument.h> 00027 #include <syndication/elementwrapper.h> 00028 00029 #include <ctime> 00030 00031 template <class T> class QList; 00032 00033 namespace Syndication { 00034 00035 class DocumentVisitor; 00036 00037 namespace Atom { 00038 00039 class Category; 00040 class Entry; 00041 class EntryDocument; 00042 class FeedDocument; 00043 class Generator; 00044 class Link; 00045 class Person; 00046 //@cond PRIVATE 00047 typedef boost::shared_ptr<EntryDocument> EntryDocumentPtr; 00048 typedef boost::shared_ptr<FeedDocument> FeedDocumentPtr; 00049 //@endcond 00050 00057 class SYNDICATION_EXPORT FeedDocument : public Syndication::SpecificDocument, public ElementWrapper 00058 { 00059 public: 00060 00066 FeedDocument(); 00067 00074 explicit FeedDocument(const QDomElement& element); 00075 00081 bool accept(DocumentVisitor* visitor); 00082 00088 QList<Person> authors() const; 00089 00093 QList<Person> contributors() const; 00094 00098 QList<Category> categories() const; 00099 00105 QString icon() const; 00106 00112 QString logo() const; 00113 00121 QString id() const; 00122 00129 QString rights() const; 00130 00136 QString title() const; 00137 00144 QString subtitle() const; 00145 00153 Generator generator() const; 00154 00160 time_t updated() const; 00161 00166 QList<Link> links() const; 00167 00171 QList<Entry> entries() const; 00172 00173 00178 QList<QDomElement> unhandledElements() const; 00179 00186 QString debugInfo() const; 00187 00193 bool isValid() const; 00194 }; 00195 00202 class SYNDICATION_EXPORT EntryDocument : public Syndication::SpecificDocument, public Syndication::ElementWrapper 00203 { 00204 public: 00205 00210 EntryDocument(); 00211 00218 explicit EntryDocument(const QDomElement& element); 00219 00225 bool accept(DocumentVisitor* visitor); 00226 00232 Entry entry() const; 00233 00240 QString debugInfo() const; 00241 00247 bool isValid() const; 00248 }; 00249 00250 } // namespace Atom 00251 } // namespace Syndication 00252 00253 #endif // SYNDICATION_ATOM_DOCUMENT_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:48:54 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:48:54 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.