1
0
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:
Dominik Schmidt 2013-01-06 01:59:25 +01:00
parent 61c347d21b
commit 033e6a3059
23 changed files with 25 additions and 9 deletions

View File

@ -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/"

View File

@ -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 )

View File

@ -27,7 +27,6 @@
#include <QNetworkReply>
#include <QDomDocument>
#include <QtPlugin>
using namespace Tomahawk::InfoSystem;

View File

@ -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 )

View File

@ -24,7 +24,6 @@
#include "utils/Logger.h"
#include <QNetworkConfiguration>
#include <QtPlugin>
namespace Tomahawk
{

View File

@ -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 )

View File

@ -24,7 +24,6 @@
#include <QCryptographicHash>
#include <QNetworkConfiguration>
#include <QNetworkReply>
#include <QtPlugin>
#include "Album.h"
#include "Typedefs.h"

View File

@ -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 )

View File

@ -24,7 +24,6 @@
#include <QNetworkReply>
#include <QDomDocument>
#include <QtPlugin>
using namespace Tomahawk::InfoSystem;

View File

@ -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 )

View File

@ -24,7 +24,6 @@
#include <QNetworkReply>
#include <QDomDocument>
#include <QtPlugin>
using namespace Tomahawk::InfoSystem;

View File

@ -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 )

View File

@ -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/"

View File

@ -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();

View File

@ -25,7 +25,6 @@
#include <QDateTime>
#include <QNetworkReply>
#include <QtPlugin>
using namespace Tomahawk::InfoSystem;

View File

@ -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 )

View File

@ -24,7 +24,6 @@
#include <QCryptographicHash>
#include <QNetworkConfiguration>
#include <QNetworkReply>
#include <QtPlugin>
#include "Album.h"
#include "Typedefs.h"

View File

@ -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 )

View File

@ -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 )

View File

@ -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 )

View File

@ -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 )

View 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

View File

@ -23,6 +23,7 @@
#include "DllMacro.h"
#include "utils/TomahawkUtils.h"
#include "Typedefs.h"
#include "TomahawkPlugin.h"
#include <QtCore/QCryptographicHash>
#include <QtCore/QObject>