syndication/rdf
26 #include "nodevisitor.h"
28 #include "statement.h"
32 #include <QtCore/QList>
33 #include <QtCore/QString>
35 #include <boost/weak_ptr.hpp>
37 using namespace boost;
39 namespace Syndication {
42 class Resource::ResourcePrivate
47 weak_ptr<Model::ModelPrivate> model;
51 bool operator==(
const ResourcePrivate& other)
const
53 if (!isAnon && !other.isAnon)
54 return uri == other.uri;
56 return id == other.id;
73 d->uri = KRandom::randomString(10);
103 return *d == *(o2->d);
110 const shared_ptr<Model::ModelPrivate> m = d->model.lock();
113 return m->resourceHasProperty(
this, property);
121 const shared_ptr<Model::ModelPrivate> m = d->model.lock();
124 return m->resourceProperty(
this, property);
130 return QList<StatementPtr>();
131 const shared_ptr<Model::ModelPrivate> m = d->model.lock();
133 return QList<StatementPtr>();
135 return m->resourceProperties(
this, property);
145 ResourcePtr rptr = boost::static_pointer_cast<
Resource>(ptr);
152 return d ? d->id : 0;
165 const shared_ptr<Model::ModelPrivate> mp = d->model.lock();
192 return d ? d->isAnon :
false;
219 return d ? d->uri : QString();
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.