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

syndication/atom

  • syndication
  • atom
entry.h
1/*
2 * This file is part of the syndication library
3 *
4 * Copyright (C) 2006 Frank Osterfeld <osterfeld@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23#ifndef SYNDICATION_ATOM_ENTRY_H
24#define SYNDICATION_ATOM_ENTRY_H
25
26#include <syndication/elementwrapper.h>
27#include <syndication/specificitem.h>
28
29#include <QtCore/QList>
30
31#include <ctime>
32
33class QDomElement;
34class QString;
35
36namespace Syndication {
37
38class SpecificItemVisitor;
39
40namespace Atom {
41
42class Category;
43class Content;
44class Link;
45class Person;
46class Source;
47
53class SYNDICATION_EXPORT Entry : public ElementWrapper, public SpecificItem
54{
55 public:
56
60 Entry();
61
68 explicit Entry(const QDomElement& element);
69
75
76 bool accept(SpecificItemVisitor* visitor);
77
86 QList<Person> authors() const;
87
91 QList<Category> categories() const;
92
96 QList<Person> contributors() const;
97
103 QString id() const;
104
112 QList<Link> links() const;
113
120 QString rights() const;
121
131 Source source() const;
132
138 time_t published() const;
139
145 time_t updated() const;
146
154 QString summary() const;
155
161 QString title() const;
162
169 Content content() const;
170
175 QList<QDomElement> unhandledElements() const;
176
183 void setFeedAuthors(const QList<Person>& feedAuthors);
184
190 QString debugInfo() const;
191
192 private:
193
194 QList<Person> m_feedAuthors;
195};
196
197
198} // namespace Atom
199} // namespace Syndication
200
201#endif // SYNDICATION_ATOM_ENTRY_H
Syndication::Atom::Category
A category for categorizing items or whole feeds.
Definition category.h:46
Syndication::Atom::Content
The content element either contains or links the content of an entry.
Definition content.h:47
Syndication::Atom::Entry::contributors
QList< Person > contributors() const
list of persons contributing to this entry (optional)
Definition entry.cpp:82
Syndication::Atom::Entry::rights
QString rights() const
copyright information (optional)
Definition entry.cpp:146
Syndication::Atom::Entry::published
time_t published() const
The datetime of the publication of this entry (optional).
Definition entry.cpp:157
Syndication::Atom::Entry::title
QString title() const
title of the entry (required).
Definition entry.cpp:176
Syndication::Atom::Entry::setFeedAuthors
void setFeedAuthors(const QList< Person > &feedAuthors)
Sets the list of the containing feed's authors, which will be used as a fallback in authors() in case...
Definition entry.cpp:48
Syndication::Atom::Entry::content
Content content() const
content of the entry (optional) See Content for details
Definition entry.cpp:181
Syndication::Atom::Entry::Entry
Entry()
creates a null entry object
Definition entry.cpp:40
Syndication::Atom::Entry::unhandledElements
QList< QDomElement > unhandledElements() const
returns all child elements of this entry not covered by this class.
Definition entry.cpp:187
Syndication::Atom::Entry::source
Source source() const
source description of the content (optional)
Definition entry.cpp:151
Syndication::Atom::Entry::debugInfo
QString debugInfo() const
returns a description of this entry for debugging purposes
Definition entry.cpp:220
Syndication::Atom::Entry::accept
bool accept(SpecificItemVisitor *visitor)
Used by visitors for double dispatch.
Definition entry.cpp:277
Syndication::Atom::Entry::authors
QList< Person > authors() const
list of persons who are authors of this entry.
Definition entry.cpp:53
Syndication::Atom::Entry::updated
time_t updated() const
The datetime of the last modification of this entry (required).
Definition entry.cpp:164
Syndication::Atom::Entry::summary
QString summary() const
a short summary, abstract or excerpt of an entry.
Definition entry.cpp:171
Syndication::Atom::Entry::id
QString id() const
ID of the article.
Definition entry.cpp:120
Syndication::Atom::Entry::categories
QList< Category > categories() const
a list of categories this entry is filed to (optional)
Definition entry.cpp:101
Syndication::Atom::Entry::links
QList< Link > links() const
links pointing to associated web sites and other resources.
Definition entry.cpp:127
Syndication::Atom::Link
A link, pointing to webpages, media files on the web ("podcast"), related content,...
Definition link.h:40
Syndication::Atom::Person
describes a person, with name and optional URI and e-mail address.
Definition person.h:41
Syndication::Atom::Source
If an entry was copied from another feed, this class contains a description of the source feed.
Definition source.h:50
Syndication::Atom
Atom parser and model classes, representing Atom 1.0 documents (Atom 0.3 documents are converted by t...
Definition atom.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/atom

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

kdepimlibs-4.14.10 API Reference

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