akregator/src/librss

document.h

00001 /*
00002  * document.h
00003  *
00004  * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
00005  *
00006  * This program is distributed in the hope that it will be useful, but WITHOUT
00007  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00008  * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
00009  * accompanying file 'COPYING'.
00010  */
00011 #ifndef LIBRSS_DOCUMENT_H
00012 #define LIBRSS_DOCUMENT_H
00013 
00014 #include "article.h"
00015 #include "global.h"
00016 
00017 class QDateTime;
00018 class QDomDocument;
00019 
00020 namespace RSS
00021 {
00022     class Image;
00023     class TextInput;
00024     
00031     class KDE_EXPORT Document
00032     {
00033         public:
00037             Document();
00038 
00043             Document(const Document &other);
00044             
00048             Document(const QDomDocument &doc);
00049             
00055             Document &operator=(const Document &other);
00056             
00060             ~Document();
00061 
00065             bool isValid() const;
00066             
00073             Version version() const;
00074 
00082             QString verbVersion() const;
00083 
00090             QString title() const;
00091 
00099             QString description() const;
00100 
00109             const KURL &link() const;
00110 
00117             Image *image();
00118 
00122             const Image *image() const;
00123 
00130             TextInput *textInput();
00131 
00135             const TextInput *textInput() const;
00136 
00145             const Article::List &articles() const;
00146             
00156             Language language() const;
00157 
00163             QString copyright() const;
00164 
00169             const QDateTime &pubDate() const;
00170 
00175             const QDateTime &lastBuildDate() const;
00176 
00182             QString rating() const;
00183 
00190             const KURL &docs() const;
00191 
00200             QString managingEditor() const;
00201 
00209             QString webMaster() const;
00210 
00219             const HourList &skipHours() const;
00220     
00227             const DayList &skipDays() const;
00228             int ttl() const;
00229         
00230         private:
00231             struct Private;
00232             Private *d;
00233     };
00234 }
00235 
00236 #endif // LIBRSS_DOCUMENT_H
00237 // vim: noet:ts=4
KDE Home | KDE Accessibility Home | Description of Access Keys