From 80fe1f0777592ae09648d21512f76af11b5516c7 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 19 May 2012 10:12:32 +0200 Subject: [PATCH] * Clean up Query::infoSystemFinished. --- src/infoplugins/generic/spotify/SpotifyPlugin.cpp | 4 ++++ src/infoplugins/generic/spotify/SpotifyPlugin.h | 5 ++++- src/libtomahawk/Query.cpp | 3 --- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/infoplugins/generic/spotify/SpotifyPlugin.cpp b/src/infoplugins/generic/spotify/SpotifyPlugin.cpp index cb2ee61a6..922bb8aec 100644 --- a/src/infoplugins/generic/spotify/SpotifyPlugin.cpp +++ b/src/infoplugins/generic/spotify/SpotifyPlugin.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include "Album.h" #include "Typedefs.h" @@ -383,3 +384,6 @@ SpotifyPlugin::chartReturned() else qDebug() << "Network error in fetching chart:" << reply->url().toString(); } + + +Q_EXPORT_PLUGIN2( Tomahawk::InfoSystem::InfoPlugin, Tomahawk::InfoSystem::SpotifyPlugin ) diff --git a/src/infoplugins/generic/spotify/SpotifyPlugin.h b/src/infoplugins/generic/spotify/SpotifyPlugin.h index 5737fef42..e20e69aeb 100644 --- a/src/infoplugins/generic/spotify/SpotifyPlugin.h +++ b/src/infoplugins/generic/spotify/SpotifyPlugin.h @@ -22,6 +22,8 @@ #include "infosystem/InfoSystem.h" #include "infosystem/InfoSystemWorker.h" +#include "infoplugins/InfoPluginDllMacro.h" + #include #include @@ -33,9 +35,10 @@ namespace Tomahawk namespace InfoSystem { -class SpotifyPlugin : public InfoPlugin +class INFOPLUGINDLLEXPORT SpotifyPlugin : public InfoPlugin { Q_OBJECT + Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin ) public: SpotifyPlugin(); diff --git a/src/libtomahawk/Query.cpp b/src/libtomahawk/Query.cpp index 5c6ac1d68..2e21d2d7a 100644 --- a/src/libtomahawk/Query.cpp +++ b/src/libtomahawk/Query.cpp @@ -887,9 +887,6 @@ Query::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVaria void Query::infoSystemFinished( QString target ) { - tDebug() << Q_FUNC_INFO; - Q_UNUSED( target ); - if ( target != id() ) return;