akregator/src/librss

document.h
1/*
2 * document.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_DOCUMENT_H
12#define LIBRSS_DOCUMENT_H
13
14#include "article.h"
15#include "global.h"
16
17class TQDateTime;
18class TQDomDocument;
19
20namespace RSS
21{
22 class Image;
23 class TextInput;
24
31 class TDE_EXPORT Document
32 {
33 public:
37 Document();
38
43 Document(const Document &other);
44
48 Document(const TQDomDocument &doc);
49
55 Document &operator=(const Document &other);
56
60 ~Document();
61
65 bool isValid() const;
66
73 Version version() const;
74
82 TQString verbVersion() const;
83
90 TQString title() const;
91
99 TQString description() const;
100
109 const KURL &link() const;
110
117 Image *image();
118
122 const Image *image() const;
123
130 TextInput *textInput();
131
135 const TextInput *textInput() const;
136
145 const Article::List &articles() const;
146
156 Language language() const;
157
163 TQString copyright() const;
164
169 const TQDateTime &pubDate() const;
170
175 const TQDateTime &lastBuildDate() const;
176
182 TQString rating() const;
183
190 const KURL &docs() const;
191
200 TQString managingEditor() const;
201
209 TQString webMaster() const;
210
219 const HourList &skipHours() const;
220
227 const DayList &skipDays() const;
228 int ttl() const;
229
230 private:
231 struct Private;
232 Private *d;
233 };
234}
235
236#endif // LIBRSS_DOCUMENT_H
TQValueList< Article > List
A list of articles.
Definition: article.h:43
Represents a RSS document and provides all the features and properties as stored in it.
Definition: document.h:32
Represents an image as stored in a RSS file.
Definition: image.h:35
Represents a text input facility as stored in a RSS file for the purpose of allowing users to submit ...
Definition: textinput.h:31