syndication/rdf
document.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SYNDICATION_RDF_DOCUMENT_H
00024 #define SYNDICATION_RDF_DOCUMENT_H
00025
00026 #include <syndication/rdf/resourcewrapper.h>
00027
00028 #include <syndication/specificdocument.h>
00029
00030 template <class T> class QList;
00031
00032 namespace Syndication {
00033 namespace RDF {
00034
00035 class Document;
00036 class DublinCore;
00037 class Image;
00038 class Item;
00039 class SyndicationInfo;
00040 class TextInput;
00041
00042 typedef boost::shared_ptr<Document> DocumentPtr;
00043
00044
00050 class SYNDICATION_EXPORT Document : public Syndication::SpecificDocument, public ResourceWrapper
00051 {
00052
00053 public:
00054
00058 Document();
00059
00065 explicit Document(ResourcePtr resource);
00066
00072 Document(const Document& other);
00073
00077 virtual ~Document();
00078
00085 bool operator==(const Document& other) const;
00086
00092 Document& operator=(const Document& other);
00093
00099 virtual bool accept(DocumentVisitor* visitor);
00100
00106 bool isValid() const;
00107
00113 QString title() const;
00114
00120 QString description() const;
00121
00126 QString link() const;
00127
00131 DublinCore dc() const;
00132
00137 SyndicationInfo syn() const;
00138
00142 QList<Item> items() const;
00143
00147 Image image() const;
00148
00152 TextInput textInput() const;
00153
00161 void getItemTitleFormatInfo(bool* containsMarkup) const;
00162
00170 void getItemDescriptionFormatInfo(bool* containsMarkup) const;
00171
00172
00178 virtual QString debugInfo() const;
00179
00180 private:
00181 class Private;
00182 Private* d;
00183 };
00184
00185 }
00186 }
00187
00188 #endif // SYNDICATION_RDF_DOCUMENT_H