#include "ksyndication_export.h"
-namespace boost {
- template <class T> class shared_ptr;
-}
+#include <boost/shared_ptr.hpp>
namespace Syndication {
#include <QString>
-namespace boost {
- template <class T> class shared_ptr;
-}
+#include <boost/shared_ptr.hpp>
namespace Syndication {
#include <QtCore/QStringList>
#include <QtCore/QVector>
-using namespace boost;
-
namespace Syndication {
namespace RDF {
mutable bool itemTitlesGuessed;
mutable bool itemDescriptionContainsMarkup;
mutable bool itemDescGuessed;
- shared_ptr<Model::ModelPrivate> modelPrivate;
+ boost::shared_ptr<Model::ModelPrivate> modelPrivate;
};
Document::Document() : Syndication::SpecificDocument(),
#include <QDomDocument>
#include <QDomElement>
-namespace boost {
- template <class T> class shared_ptr;
-}
+#include <boost/shared_ptr.hpp>
namespace Syndication {
namespace RDF {
#include <syndication/ksyndication_export.h>
-namespace boost {
- template <class T> class shared_ptr;
-}
+#include <boost/shared_ptr.hpp>
namespace Syndication {
#include <QString>
-namespace boost {
- template <class T> class shared_ptr;
-}
+#include <boost/shared_ptr.hpp>
namespace Syndication {
#include <boost/weak_ptr.hpp>
-using namespace boost;
-
namespace Syndication {
namespace RDF {
public:
QString uri;
- weak_ptr<Model::ModelPrivate> model;
+ boost::weak_ptr<Model::ModelPrivate> model;
bool isAnon;
unsigned int id;
{
if (!d)
return false;
- const shared_ptr<Model::ModelPrivate> m = d->model.lock();
+ const boost::shared_ptr<Model::ModelPrivate> m = d->model.lock();
if (!m)
return false;
return m->resourceHasProperty(this, property);
StatementPtr ptr(new Statement());
if (!d)
return ptr;
- const shared_ptr<Model::ModelPrivate> m = d->model.lock();
+ const boost::shared_ptr<Model::ModelPrivate> m = d->model.lock();
if (!m)
return ptr;
return m->resourceProperty(this, property);
{
if (!d)
return QList<StatementPtr>();
- const shared_ptr<Model::ModelPrivate> m = d->model.lock();
+ const boost::shared_ptr<Model::ModelPrivate> m = d->model.lock();
if (!m)
return QList<StatementPtr>();
if (!d)
return Model();
- const shared_ptr<Model::ModelPrivate> mp = d->model.lock();
+ const boost::shared_ptr<Model::ModelPrivate> mp = d->model.lock();
Model m;
#include <QString>
#include <QStringList>
-namespace boost {
- template <class T> class shared_ptr;
-}
+#include <boost/shared_ptr.hpp>
namespace Syndication {
#include <boost/weak_ptr.hpp>
-using namespace boost;
-
namespace Syndication {
namespace RDF {
uint subjectID;
uint predicateID;
uint objectID;
- weak_ptr<Model::ModelPrivate> model;
+ boost::weak_ptr<Model::ModelPrivate> model;
bool operator==(const StatementPrivate& other) const
{
ResourcePtr Statement::subject() const
{
- const shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : shared_ptr<Model::ModelPrivate>();
+ const boost::shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : boost::shared_ptr<Model::ModelPrivate>();
return m ? m->resourceByID(d->subjectID) : ResourcePtr(new Resource);
}
PropertyPtr Statement::predicate() const
{
- const shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : shared_ptr<Model::ModelPrivate>();
+ const boost::shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : boost::shared_ptr<Model::ModelPrivate>();
return m ? m->propertyByID(d->predicateID) : PropertyPtr( new Property() );
}
NodePtr Statement::object() const
{
- const shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : shared_ptr<Model::ModelPrivate>();
+ const boost::shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : boost::shared_ptr<Model::ModelPrivate>();
return m ? m->nodeByID(d->objectID) : NodePtr( LiteralPtr( new Literal() ) );
}
ResourcePtr Statement::asResource() const
{
- const shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : shared_ptr<Model::ModelPrivate>();
+ const boost::shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : boost::shared_ptr<Model::ModelPrivate>();
if (isNull() || !m || !m->nodeByID(d->objectID)->isResource())
return ResourcePtr(new Resource);
if (isNull())
return QString();
- const shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : shared_ptr<Model::ModelPrivate>();
+ const boost::shared_ptr<Model::ModelPrivate> m = d ? d->model.lock() : boost::shared_ptr<Model::ModelPrivate>();
return m ? m->nodeByID(d->objectID)->text() : QString();
}
#include <QString>
-namespace boost {
- template <class T> class shared_ptr;
-}
+#include <boost/shared_ptr.hpp>
namespace Syndication {