mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-29 12:39:28 +01:00
qt5: port InfoPlugins
This commit is contained in:
parent
61c347d21b
commit
033e6a3059
@ -38,7 +38,6 @@
|
||||
#include <QSettings>
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QNetworkReply>
|
||||
#include <QtPlugin>
|
||||
|
||||
#define CHART_URL "http://charts.tomahawk-player.org/"
|
||||
//#define CHART_URL "http://localhost:8080/"
|
||||
|
@ -36,6 +36,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT ChartsPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
#include <QDomDocument>
|
||||
#include <QtPlugin>
|
||||
|
||||
using namespace Tomahawk::InfoSystem;
|
||||
|
||||
|
@ -34,6 +34,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT DiscogsPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QtPlugin>
|
||||
|
||||
namespace Tomahawk
|
||||
{
|
||||
|
@ -37,6 +37,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT EchonestPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <QCryptographicHash>
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QNetworkReply>
|
||||
#include <QtPlugin>
|
||||
|
||||
#include "Album.h"
|
||||
#include "Typedefs.h"
|
||||
|
@ -36,6 +36,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT HypemPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
#include <QDomDocument>
|
||||
#include <QtPlugin>
|
||||
|
||||
using namespace Tomahawk::InfoSystem;
|
||||
|
||||
|
@ -34,6 +34,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT MusicBrainzPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
#include <QDomDocument>
|
||||
#include <QtPlugin>
|
||||
|
||||
using namespace Tomahawk::InfoSystem;
|
||||
|
||||
|
@ -34,6 +34,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT MusixMatchPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -38,7 +38,6 @@
|
||||
#include <QSettings>
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QNetworkReply>
|
||||
#include <QtPlugin>
|
||||
|
||||
#define CHART_URL "http://charts.tomahawk-player.org/"
|
||||
//#define CHART_URL "http://localhost:8080/"
|
||||
|
@ -37,8 +37,10 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT NewReleasesPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
public:
|
||||
NewReleasesPlugin();
|
||||
virtual ~NewReleasesPlugin();
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QNetworkReply>
|
||||
#include <QtPlugin>
|
||||
|
||||
using namespace Tomahawk::InfoSystem;
|
||||
|
||||
|
@ -35,6 +35,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT RoviPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <QCryptographicHash>
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QNetworkReply>
|
||||
#include <QtPlugin>
|
||||
|
||||
#include "Album.h"
|
||||
#include "Typedefs.h"
|
||||
|
@ -37,6 +37,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT SpotifyPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -31,6 +31,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT FdoNotifyPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -36,6 +36,7 @@ namespace InfoSystem
|
||||
|
||||
class INFOPLUGINDLLEXPORT MprisPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
|
||||
|
||||
|
@ -36,6 +36,7 @@ namespace InfoSystem {
|
||||
|
||||
class INFOPLUGINDLLEXPORT AdiumPlugin : public InfoPlugin
|
||||
{
|
||||
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.InfoPlugin" )
|
||||
Q_OBJECT
|
||||
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 "utils/TomahawkUtils.h"
|
||||
#include "Typedefs.h"
|
||||
#include "TomahawkPlugin.h"
|
||||
|
||||
#include <QtCore/QCryptographicHash>
|
||||
#include <QtCore/QObject>
|
||||
|
Loading…
x
Reference in New Issue
Block a user