#ifndef SYNDICATION_ATOM_CONTENT_H
#define SYNDICATION_ATOM_CONTENT_H
-#include <syndication/elementwrapper.h>
-
#include <QtCore/QString>
-
-#include <boost/shared_ptr.hpp>
-
#include <QByteArray>
#include <QDomElement>
+#include <memory>
+
+#include <syndication/elementwrapper.h>
namespace Syndication {
namespace Atom {
private:
class ContentPrivate;
- boost::shared_ptr<ContentPrivate> d;
+ std::shared_ptr<ContentPrivate> d;
};
} // namespace Atom
#ifndef SYNDICATION_ATOM_DOCUMENT_H
#define SYNDICATION_ATOM_DOCUMENT_H
-#include <syndication/specificdocument.h>
-#include <syndication/elementwrapper.h>
-
+#include <QList>
#include <ctime>
-#include <QList>
+#include <syndication/specificdocument.h>
+#include <syndication/elementwrapper.h>
namespace Syndication {
#define SYNDICATION_DOCUMENTSOURCE_H
#include <QtCore/QString>
-#include <boost/shared_ptr.hpp>
-
-#include "ksyndication_export.h"
-
#include <QByteArray>
#include <QDomDocument>
+#include <memory>
+
+#include "ksyndication_export.h"
namespace Syndication {
private:
class DocumentSourcePrivate;
- boost::shared_ptr<DocumentSourcePrivate> d;
+ std::shared_ptr<DocumentSourcePrivate> d;
};
} // namespace Syndication
#define SYNDICATION_ELEMENTWRAPPER_H
#include <QtCore/QString>
-
-#include <boost/shared_ptr.hpp>
-
-#include "ksyndication_export.h"
-
#include <QDomElement>
#include <QList>
+#include <memory>
+
+#include "ksyndication_export.h"
namespace Syndication {
private:
class ElementWrapperPrivate;
- boost::shared_ptr<ElementWrapperPrivate> d;
+ std::shared_ptr<ElementWrapperPrivate> d;
};
} // namespace Syndication
#ifndef SYNDICATION_FEED_H
#define SYNDICATION_FEED_H
-#include <boost/shared_ptr.hpp>
-
-#include "ksyndication_export.h"
-
#include <QDomElement>
-
#include <QList>
#include <QMultiMap>
#include <QString>
+#include <boost/shared_ptr.hpp>
+
+#include "ksyndication_export.h"
namespace Syndication {
#define SYNDICATION_ITEM_H
#include <QtCore/QString>
-#include <boost/shared_ptr.hpp>
-
-#include "ksyndication_export.h"
-
-#include <ctime>
-
#include <QDomElement>
#include <QList>
#include <QMultiMap>
+#include <boost/shared_ptr.hpp>
+#include <ctime>
+
+#include "ksyndication_export.h"
namespace Syndication {
#include <mapper.h>
-
namespace Syndication {
/** @internal */
class AtomMapper : public Mapper<Feed>
{
- boost::shared_ptr<Feed> map(SpecificDocumentPtr doc) const
+ FeedPtr map(SpecificDocumentPtr doc) const
{
- return boost::shared_ptr<Feed>(new FeedAtomImpl(boost::static_pointer_cast<Atom::FeedDocument>(doc)));
+ return FeedPtr(new FeedAtomImpl(boost::static_pointer_cast<Atom::FeedDocument>(doc)));
}
};
#include <feed.h>
#include <mapper.h>
-
-
namespace Syndication {
/** @internal */
class RDFMapper : public Mapper<Feed>
{
- boost::shared_ptr<Feed> map(SpecificDocumentPtr doc) const
+ FeedPtr map(SpecificDocumentPtr doc) const
{
- return boost::shared_ptr<Feed>(new FeedRDFImpl(boost::static_pointer_cast<RDF::Document>(doc)));
+ return FeedPtr(new FeedRDFImpl(boost::static_pointer_cast<RDF::Document>(doc)));
}
};
#include <feed.h>
#include <mapper.h>
-
-
namespace Syndication {
/** @internal */
class RSS2Mapper : public Mapper<Feed>
{
- boost::shared_ptr<Feed> map(SpecificDocumentPtr doc) const
+ FeedPtr map(SpecificDocumentPtr doc) const
{
- return boost::shared_ptr<Feed>(new FeedRSS2Impl(boost::static_pointer_cast<RSS2::Document>(doc)));
+ return FeedPtr(new FeedRSS2Impl(boost::static_pointer_cast<RSS2::Document>(doc)));
}
};
#define SYNDICATION_RDF_LITERAL_H
#include <QtCore/QString>
-#include <syndication/rdf/node.h>
-
+#include <memory>
#include <boost/shared_ptr.hpp>
+#include <syndication/rdf/node.h>
+
namespace Syndication {
namespace RDF {
private:
class LiteralPrivate;
- typedef boost::shared_ptr<LiteralPrivate> LiteralPrivatePtr;
- LiteralPrivatePtr d;
+ std::shared_ptr<LiteralPrivate> d;
};
#ifndef SYNDICATION_RDF_MODEL_H
#define SYNDICATION_RDF_MODEL_H
+#include <QtCore/QString>
+#include <QList>
+#include <boost/shared_ptr.hpp>
+
#include <syndication/rdf/document.h>
#include <syndication/rdf/resource.h>
#include <syndication/rdf/statement.h>
-
#include <syndication/rdf/literal.h>
#include <syndication/rdf/node.h>
#include <syndication/rdf/property.h>
#include <syndication/rdf/sequence.h>
-#include <boost/shared_ptr.hpp>
#include <syndication/ksyndication_export.h>
-#include <QtCore/QString>
-
-#include <QList>
-
namespace Syndication {
namespace RDF {
#ifndef SYNDICATION_RDF_RESOURCE_H
#define SYNDICATION_RDF_RESOURCE_H
-#include <syndication/rdf/node.h>
-
-#include <boost/shared_ptr.hpp>
-
#include <QString>
-
#include <QList>
+#include <memory>
+#include <boost/shared_ptr.hpp>
+
+#include <syndication/rdf/node.h>
namespace Syndication {
namespace RDF {
private:
class ResourcePrivate;
- typedef boost::shared_ptr<ResourcePrivate> ResourcePrivatePtr;
- ResourcePrivatePtr d;
+ std::shared_ptr<ResourcePrivate> d;
};
} // namespace RDF
#ifndef SYNDICATION_RDF_RESOURCEWRAPPER_H
#define SYNDICATION_RDF_RESOURCEWRAPPER_H
-#include <syndication/ksyndication_export.h>
+#include <memory>
#include <boost/shared_ptr.hpp>
+#include <syndication/ksyndication_export.h>
+
namespace Syndication {
namespace RDF {
private:
class ResourceWrapperPrivate;
- boost::shared_ptr<ResourceWrapperPrivate> d;
+ std::shared_ptr<ResourceWrapperPrivate> d;
};
} // namespace RDF
#ifndef SYNDICATION_RDF_SEQUENCE_H
#define SYNDICATION_RDF_SEQUENCE_H
-#include <syndication/ksyndication_export.h>
-#include <syndication/rdf/resource.h>
-
+#include <QList>
+#include <memory>
#include <boost/shared_ptr.hpp>
-#include <QList>
+#include <syndication/ksyndication_export.h>
+#include <syndication/rdf/resource.h>
namespace Syndication {
namespace RDF {
private:
class SequencePrivate;
- boost::shared_ptr<SequencePrivate> d;
+ std::shared_ptr<SequencePrivate> d;
};
} // namespace RDF
#ifndef SYNDICATION_RDF_STATEMENT_H
#define SYNDICATION_RDF_STATEMENT_H
-#include <syndication/rdf/property.h>
-
+#include <QString>
+#include <memory>
#include <boost/shared_ptr.hpp>
-#include <QString>
+#include <syndication/rdf/property.h>
namespace Syndication {
namespace RDF {
private:
class StatementPrivate;
- boost::shared_ptr<StatementPrivate> d;
+ std::shared_ptr<StatementPrivate> d;
};
#ifndef SYNDICATION_RSS2_DOCUMENT_H
#define SYNDICATION_RSS2_DOCUMENT_H
-#include <syndication/specificdocument.h>
-#include <syndication/elementwrapper.h>
-
-#include <ctime>
-
#include <QDomDocument>
#include <QDomElement>
#include <QString>
-
#include <QList>
#include <QSet>
+#include <memory>
+#include <ctime>
+
+#include <syndication/specificdocument.h>
+#include <syndication/elementwrapper.h>
namespace Syndication {
namespace RSS2 {
explicit Document(const QDomElement& element);
class DocumentPrivate;
- boost::shared_ptr<DocumentPrivate> d;
+ std::shared_ptr<DocumentPrivate> d;
};
*
*/
+#include <QtXml/qdom.h>
+#include <QtCore/QString>
+#include <QtCore/QList>
+
#include <rss2/item.h>
#include <rss2/category.h>
#include <rss2/enclosure.h>
#include <specificitemvisitor.h>
#include <tools.h>
-#include <QtXml/qdom.h>
-#include <QtCore/QString>
-#include <QtCore/QList>
-
namespace Syndication {
namespace RSS2 {
{
public:
- boost::shared_ptr<Document> doc;
+ DocumentPtr doc;
};
-Item::Item(boost::shared_ptr<Document> doc) : ElementWrapper(), d(new ItemPrivate)
+Item::Item(DocumentPtr doc) : ElementWrapper(), d(new ItemPrivate)
{
d->doc = doc;
}
-Item::Item(const QDomElement& element, boost::shared_ptr<Document> doc) : ElementWrapper(element), d(new ItemPrivate)
+Item::Item(const QDomElement& element, DocumentPtr doc) : ElementWrapper(element), d(new ItemPrivate)
{
d->doc = doc;
}
#ifndef SYNDICATION_RSS2_ITEM_H
#define SYNDICATION_RSS2_ITEM_H
-#include <syndication/rss2/document.h>
-#include <syndication/elementwrapper.h>
-#include <boost/shared_ptr.hpp>
-#include <syndication/specificitem.h>
-
-#include <ctime>
-
#include <QDomElement>
#include <QString>
#include <QList>
+#include <memory>
+#include <ctime>
+
+#include <syndication/rss2/document.h>
+#include <syndication/elementwrapper.h>
+#include <syndication/specificitem.h>
namespace Syndication {
* Default constructor, creates a null object, for which isNull() is
* @c true.
*/
- explicit Item(boost::shared_ptr<Document> doc=boost::shared_ptr<Document>());
+ explicit Item(DocumentPtr doc=DocumentPtr());
/**
* Creates an Item object wrapping an @c <item> XML element.
* @param element The @c <item> element to wrap
* @param doc the document this item is part of
*/
- explicit Item(const QDomElement& element, boost::shared_ptr<Document> doc=boost::shared_ptr<Document>());
+ explicit Item(const QDomElement& element, DocumentPtr doc=DocumentPtr());
/**
* creates a copy of an item. As the d pointer is shared,
private:
class ItemPrivate;
- boost::shared_ptr<ItemPrivate> d;
+ std::shared_ptr<ItemPrivate> d;
};
} // namespace RSS2