syndication/rdf
23 #ifndef SYNDICATION_RDF_RESOURCE_H
24 #define SYNDICATION_RDF_RESOURCE_H
26 #include <syndication/rdf/node.h>
28 #include <boost/shared_ptr.hpp>
32 template <
class T>
class QList;
34 namespace Syndication {
39 typedef boost::shared_ptr<Property> PropertyPtr;
42 typedef boost::shared_ptr<Statement> StatementPtr;
44 typedef boost::shared_ptr<Resource> ResourcePtr;
75 explicit Resource(
const QString& uri);
95 bool operator==(
const Node& other)
const;
103 virtual void accept(
NodeVisitor* visitor, NodePtr ptr);
113 virtual Model model()
const;
121 virtual bool hasProperty(PropertyPtr property)
const;
132 virtual StatementPtr property(PropertyPtr property)
const;
142 virtual QList<StatementPtr> properties(PropertyPtr property)
const;
147 virtual bool isNull()
const;
153 virtual unsigned int id()
const;
158 virtual bool isResource()
const;
163 virtual bool isLiteral()
const;
169 virtual bool isProperty()
const;
174 virtual bool isAnon()
const;
180 virtual bool isSequence()
const;
185 virtual QString text()
const;
190 virtual QString uri()
const;
197 virtual void setModel(
const Model& model);
203 virtual void setId(
unsigned int id);
207 class ResourcePrivate;
208 typedef boost::shared_ptr<ResourcePrivate> ResourcePrivatePtr;
209 ResourcePrivatePtr d;
215 #endif // SYNDICATION_RDF_RESOURCE_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:26:28 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.