1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

* Plugin-ify MusicBrainzPlugin.

This commit is contained in:
Christian Muehlhaeuser 2012-05-19 09:44:37 +02:00
parent 667a4e5a78
commit 93cc1fcca8
2 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include <QNetworkReply>
#include <QDomDocument>
#include <QtPlugin>
#include "utils/TomahawkUtils.h"
#include "utils/Logger.h"
@ -89,6 +90,7 @@ MusicBrainzPlugin::getInfo( Tomahawk::InfoSystem::InfoRequestData requestData )
}
}
void
MusicBrainzPlugin::notInCacheSlot( InfoStringHash criteria, InfoRequestData requestData )
{
@ -327,3 +329,6 @@ MusicBrainzPlugin::tracksFoundSlot()
criteria["album"] = origData["album"];
emit updateCache( criteria, 0, requestData.type, returnedData );
}
Q_EXPORT_PLUGIN2( Tomahawk::InfoSystem::InfoPlugin, Tomahawk::InfoSystem::MusicBrainzPlugin )

View File

@ -22,6 +22,7 @@
#include "infosystem/InfoSystem.h"
#include "infosystem/InfoSystemWorker.h"
#include "infoplugins/InfoPluginDllMacro.h"
class QNetworkReply;
@ -31,9 +32,10 @@ namespace Tomahawk
namespace InfoSystem
{
class MusicBrainzPlugin : public InfoPlugin
class INFOPLUGINDLLEXPORT MusicBrainzPlugin : public InfoPlugin
{
Q_OBJECT
Q_INTERFACES( Tomahawk::InfoSystem::InfoPlugin )
public:
MusicBrainzPlugin();