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 Model;
00037 class DublinCore;
00038 class Image;
00039 class Item;
00040 class SyndicationInfo;
00041 class TextInput;
00042
00043 typedef boost::shared_ptr<Document> DocumentPtr;
00044
00045
00051 class SYNDICATION_EXPORT Document : public Syndication::SpecificDocument, public ResourceWrapper
00052 {
00053 friend class ::Syndication::RDF::Model;
00054 public:
00055
00059 Document();
00060
00066 explicit Document(ResourcePtr resource);
00067
00073 Document(const Document& other);
00074
00078 virtual ~Document();
00079
00086 bool operator==(const Document& other) const;
00087
00093 Document& operator=(const Document& other);
00094
00100 virtual bool accept(DocumentVisitor* visitor);
00101
00107 bool isValid() const;
00108
00114 QString title() const;
00115
00121 QString description() const;
00122
00127 QString link() const;
00128
00132 DublinCore dc() const;
00133
00138 SyndicationInfo syn() const;
00139
00143 QList<Item> items() const;
00144
00148 Image image() const;
00149
00153 TextInput textInput() const;
00154
00162 void getItemTitleFormatInfo(bool* containsMarkup) const;
00163
00171 void getItemDescriptionFormatInfo(bool* containsMarkup) const;
00172
00173
00179 virtual QString debugInfo() const;
00180
00181 private:
00182 class Private;
00183 Private* d;
00184 };
00185
00186 }
00187 }
00188
00189 #endif // SYNDICATION_RDF_DOCUMENT_H