akregator/src/librss

article.h
1/*
2 * article.h
3 *
4 * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
5 *
6 * This program is distributed in the hope that it will be useful, but WITHOUT
7 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8 * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
9 * accompanying file 'COPYING'.
10 */
11#ifndef LIBRSS_ARTICLE_H
12#define LIBRSS_ARTICLE_H
13
14#include <tqmap.h>
15
16#include "global.h"
17
18class TQDateTime;
19class TQDomNode;
20template <class> class TQValueList;
21class TQString;
22class TQWidget;
23class KURL;
24class KURLLabel;
25
26namespace RSS
27{
28 class Category;
29 class Enclosure;
30
37 class TDE_EXPORT Article
38 {
39 public:
43 typedef TQValueList<Article> List;
44
48 Article();
49
54 Article(const Article &other);
55
61 Article(const TQDomNode &node, Format format, Version version);
62
68 Article &operator=(const Article &other);
69
77 bool operator==(const Article &other) const;
78
84 bool operator!=(const Article &other) const { return !operator==(other); }
85
89 virtual ~Article();
90
96 TQString title() const;
97
105 const KURL &link() const;
106
112 TQString description() const;
113
117 TQString author() const;
118
123 TQString guid() const;
124
129 bool guidIsPermaLink() const;
130
135 const TQDateTime &pubDate() const;
136
137 const KURL &commentsLink() const;
138 int comments() const;
139
140 Enclosure enclosure() const;
141
143 TQValueList<Category> categories() const;
144
145 TQString meta(const TQString &key) const;
146
161 KURLLabel *widget(TQWidget *parent = 0, const char *name = 0) const;
162
163 typedef TQMap<TQString, TQString> MetaInfoMap;
164
165 private:
166 struct Private;
167 Private *d;
168 };
169}
170
171#endif // LIBRSS_ARTICLE_H
Represents an article as stored in a RSS file.
Definition: article.h:38
bool operator!=(const Article &other) const
Convenience method.
Definition: article.h:84
TQValueList< Article > List
A list of articles.
Definition: article.h:43