diff --git a/backends/redland/redlandbackend.h b/backends/redland/redlandbackend.h index 51306c7..61b8ac2 100644 --- a/backends/redland/redlandbackend.h +++ b/backends/redland/redlandbackend.h @@ -1,4 +1,4 @@ -/* +/* * This file is part of Soprano Project. * * Copyright (C) 2007-2008 Sebastian Trueg @@ -34,6 +34,9 @@ namespace Soprano class BackendPlugin : public QObject, public Soprano::Backend { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Backend/2.1") +#endif Q_INTERFACES(Soprano::Backend) public: diff --git a/backends/sesame2/sesame2backend.h b/backends/sesame2/sesame2backend.h index b358816..6458a4f 100644 --- a/backends/sesame2/sesame2backend.h +++ b/backends/sesame2/sesame2backend.h @@ -1,4 +1,4 @@ -/* +/* * This file is part of Soprano Project. * * Copyright (C) 2007-2008 Sebastian Trueg @@ -35,6 +35,9 @@ namespace Soprano { class BackendPlugin : public QObject, public Soprano::Backend { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Backend/2.1") +#endif Q_INTERFACES(Soprano::Backend) public: diff --git a/backends/virtuoso/virtuosobackend.h b/backends/virtuoso/virtuosobackend.h index b5ca547..3b550e8 100644 --- a/backends/virtuoso/virtuosobackend.h +++ b/backends/virtuoso/virtuosobackend.h @@ -37,6 +37,9 @@ namespace Soprano { class BackendPlugin : public QObject, public Soprano::Backend { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Backend/2.1") +#endif Q_INTERFACES(Soprano::Backend) public: diff --git a/parsers/nquads/nquadparser.h b/parsers/nquads/nquadparser.h index a4fa7f9..0c2c4da 100644 --- a/parsers/nquads/nquadparser.h +++ b/parsers/nquads/nquadparser.h @@ -1,4 +1,4 @@ -/* +/* * This file is part of Soprano Project * * Copyright (C) 2007 Sebastian Trueg @@ -34,16 +34,19 @@ namespace Soprano { class NQuadParser : public QObject, public Soprano::Parser { Q_OBJECT - Q_INTERFACES(Soprano::Parser) - +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Parser/1.0") +#endif + Q_INTERFACES(Soprano::Parser) + public: NQuadParser(); ~NQuadParser(); RdfSerializations supportedSerializations() const; - StatementIterator parseStream( QTextStream&, - const QUrl& baseUri, + StatementIterator parseStream( QTextStream&, + const QUrl& baseUri, RdfSerialization serialization, const QString& userSerialization = QString() ) const; diff --git a/parsers/raptor/raptorparser.h b/parsers/raptor/raptorparser.h index bed94d1..1cbf732 100644 --- a/parsers/raptor/raptorparser.h +++ b/parsers/raptor/raptorparser.h @@ -1,4 +1,4 @@ -/* +/* * This file is part of Soprano Project * * Copyright (C) 2006 Duncan Mac-Vicar @@ -33,8 +33,11 @@ namespace Soprano { namespace Raptor { - class Parser : public QObject, public Soprano::Parser { + class Parser : public QObject, public Soprano::Parser { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Parser/1.0") +#endif Q_INTERFACES(Soprano::Parser) public: @@ -43,16 +46,16 @@ namespace Soprano { RdfSerializations supportedSerializations() const; - StatementIterator parseFile( const QString& filename, - const QUrl& baseUri, + StatementIterator parseFile( const QString& filename, + const QUrl& baseUri, RdfSerialization serialization, const QString& userSerialization = QString() ) const; - StatementIterator parseString( const QString& data, - const QUrl& baseUri, + StatementIterator parseString( const QString& data, + const QUrl& baseUri, RdfSerialization serialization, const QString& userSerialization = QString() ) const; - StatementIterator parseStream( QTextStream&, - const QUrl& baseUri, + StatementIterator parseStream( QTextStream&, + const QUrl& baseUri, RdfSerialization serialization, const QString& userSerialization = QString() ) const; diff --git a/queryparsers/rasqal/rasqalqueryparser.h b/queryparsers/rasqal/rasqalqueryparser.h index 96f52fa..8b0f87f 100644 --- a/queryparsers/rasqal/rasqalqueryparser.h +++ b/queryparsers/rasqal/rasqalqueryparser.h @@ -33,6 +33,9 @@ namespace Soprano { class QueryParser : public QObject, public Soprano::Query::Parser { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.QueryParser/1.0") +#endif Q_INTERFACES(Soprano::Query::Parser) public: @@ -45,10 +48,10 @@ namespace Soprano { private: static void raptor_message_handler( void *query_parser, raptor_locator *rl, const char *msg ); - + void emitSyntaxError( const Soprano::Error::Locator& locator, const QString& message ); }; - + } } diff --git a/serializers/nquads/nquadserializer.h b/serializers/nquads/nquadserializer.h index 5f9b34e..6ae4541 100644 --- a/serializers/nquads/nquadserializer.h +++ b/serializers/nquads/nquadserializer.h @@ -1,4 +1,4 @@ -/* +/* * This file is part of Soprano Project * * Copyright (C) 2007 Sebastian Trueg @@ -34,6 +34,9 @@ namespace Soprano { class NQuadSerializer : public QObject, public Soprano::Serializer { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Serializer/1.0") +#endif Q_INTERFACES(Soprano::Serializer) public: @@ -42,8 +45,8 @@ namespace Soprano { RdfSerializations supportedSerializations() const; - bool serialize( StatementIterator it, - QTextStream& stream, + bool serialize( StatementIterator it, + QTextStream& stream, RdfSerialization serialization, const QString& userSerialization = QString() ) const; diff --git a/serializers/raptor/raptorserializer.h b/serializers/raptor/raptorserializer.h index 4a8426b..af676eb 100644 --- a/serializers/raptor/raptorserializer.h +++ b/serializers/raptor/raptorserializer.h @@ -1,4 +1,4 @@ -/* +/* * This file is part of Soprano Project * * Copyright (C) 2006 Duncan Mac-Vicar @@ -33,6 +33,9 @@ namespace Soprano { class Serializer : public QObject, public Soprano::Serializer { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Serializer/1.0") +#endif Q_INTERFACES(Soprano::Serializer) public: @@ -42,12 +45,12 @@ namespace Soprano { RdfSerializations supportedSerializations() const; QStringList supportedUserSerializations() const; - bool serialize( StatementIterator it, - QTextStream& stream, + bool serialize( StatementIterator it, + QTextStream& stream, RdfSerialization serialization, const QString& userSerialization = QString() ) const; private: - /* See source file comments, that explain why it is necessary to + /* See source file comments, that explain why it is necessary to * use Private class and RaptorInitHelper is not succifient anymore */ class Private; diff --git a/server/serverbackend.h b/server/serverbackend.h index 35f596b..99fb5a7 100644 --- a/server/serverbackend.h +++ b/server/serverbackend.h @@ -1,4 +1,4 @@ -/* +/* * This file is part of Soprano Project. * * Copyright (C) 2007 Sebastian Trueg @@ -44,6 +44,9 @@ namespace Soprano class SOPRANO_EXPORT ServerBackend : public QObject, public Soprano::Backend { Q_OBJECT +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + Q_PLUGIN_METADATA(IID "org.soprano.plugins.Backend/2.1") +#endif Q_INTERFACES(Soprano::Backend) public: