mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
qt5: port InfoPlugins
This commit is contained in:
@@ -38,7 +38,6 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QNetworkConfiguration>
|
#include <QNetworkConfiguration>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
#define CHART_URL "http://charts.tomahawk-player.org/"
|
#define CHART_URL "http://charts.tomahawk-player.org/"
|
||||||
//#define CHART_URL "http://localhost:8080/"
|
//#define CHART_URL "http://localhost:8080/"
|
||||||
|
@@ -36,6 +36,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT ChartsPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT ChartsPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
using namespace Tomahawk::InfoSystem;
|
using namespace Tomahawk::InfoSystem;
|
||||||
|
|
||||||
|
@@ -34,6 +34,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT DiscogsPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT DiscogsPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include <QNetworkConfiguration>
|
#include <QNetworkConfiguration>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
namespace Tomahawk
|
namespace Tomahawk
|
||||||
{
|
{
|
||||||
|
@@ -37,6 +37,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT EchonestPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT EchonestPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
#include <QNetworkConfiguration>
|
#include <QNetworkConfiguration>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
#include "Album.h"
|
#include "Album.h"
|
||||||
#include "Typedefs.h"
|
#include "Typedefs.h"
|
||||||
|
@@ -36,6 +36,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT HypemPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT HypemPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
using namespace Tomahawk::InfoSystem;
|
using namespace Tomahawk::InfoSystem;
|
||||||
|
|
||||||
|
@@ -34,6 +34,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT MusicBrainzPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT MusicBrainzPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
using namespace Tomahawk::InfoSystem;
|
using namespace Tomahawk::InfoSystem;
|
||||||
|
|
||||||
|
@@ -34,6 +34,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT MusixMatchPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT MusixMatchPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -38,7 +38,6 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QNetworkConfiguration>
|
#include <QNetworkConfiguration>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
#define CHART_URL "http://charts.tomahawk-player.org/"
|
#define CHART_URL "http://charts.tomahawk-player.org/"
|
||||||
//#define CHART_URL "http://localhost:8080/"
|
//#define CHART_URL "http://localhost:8080/"
|
||||||
|
@@ -37,8 +37,10 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT NewReleasesPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT NewReleasesPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NewReleasesPlugin();
|
NewReleasesPlugin();
|
||||||
virtual ~NewReleasesPlugin();
|
virtual ~NewReleasesPlugin();
|
||||||
|
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
using namespace Tomahawk::InfoSystem;
|
using namespace Tomahawk::InfoSystem;
|
||||||
|
|
||||||
|
@@ -35,6 +35,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT RoviPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT RoviPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
#include <QNetworkConfiguration>
|
#include <QNetworkConfiguration>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QtPlugin>
|
|
||||||
|
|
||||||
#include "Album.h"
|
#include "Album.h"
|
||||||
#include "Typedefs.h"
|
#include "Typedefs.h"
|
||||||
|
@@ -37,6 +37,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT SpotifyPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT SpotifyPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -31,6 +31,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT FdoNotifyPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT FdoNotifyPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -36,6 +36,7 @@ namespace InfoSystem
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT MprisPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT MprisPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
@@ -36,6 +36,7 @@ namespace InfoSystem {
|
|||||||
|
|
||||||
class INFOPLUGINDLLEXPORT AdiumPlugin : public InfoPlugin
|
class INFOPLUGINDLLEXPORT AdiumPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
|
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||||
|
|
||||||
|
11
src/libtomahawk/TomahawkPlugin.h
Normal file
11
src/libtomahawk/TomahawkPlugin.h
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#if defined(Q_EXPORT_PLUGIN)
|
||||||
|
#undef Q_EXPORT_PLUGIN
|
||||||
|
#undef Q_EXPORT_PLUGIN2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define Q_EXPORT_PLUGIN(a)
|
||||||
|
#define Q_EXPORT_PLUGIN2(a, b)
|
||||||
|
#else
|
||||||
|
# define Q_PLUGIN_METADATA(a)
|
||||||
|
#endif
|
@@ -23,6 +23,7 @@
|
|||||||
#include "DllMacro.h"
|
#include "DllMacro.h"
|
||||||
#include "utils/TomahawkUtils.h"
|
#include "utils/TomahawkUtils.h"
|
||||||
#include "Typedefs.h"
|
#include "Typedefs.h"
|
||||||
|
#include "TomahawkPlugin.h"
|
||||||
|
|
||||||
#include <QtCore/QCryptographicHash>
|
#include <QtCore/QCryptographicHash>
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
|
Reference in New Issue
Block a user