mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 11:04:01 +02:00
Add a few more guards for OS X.
This commit is contained in:
@@ -26,7 +26,9 @@
|
|||||||
#include "infoplugins/echonestplugin.h"
|
#include "infoplugins/echonestplugin.h"
|
||||||
#include "infoplugins/musixmatchplugin.h"
|
#include "infoplugins/musixmatchplugin.h"
|
||||||
#include "infoplugins/lastfmplugin.h"
|
#include "infoplugins/lastfmplugin.h"
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
#include "infoplugins/adiumplugin.h"
|
#include "infoplugins/adiumplugin.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "lastfm/NetworkAccessManager"
|
#include "lastfm/NetworkAccessManager"
|
||||||
|
|
||||||
@@ -66,9 +68,11 @@ InfoSystemWorker::init( QWeakPointer< Tomahawk::InfoSystem::InfoSystemCache> cac
|
|||||||
InfoPluginPtr lfmptr( new LastFmPlugin() );
|
InfoPluginPtr lfmptr( new LastFmPlugin() );
|
||||||
m_plugins.append( lfmptr );
|
m_plugins.append( lfmptr );
|
||||||
registerInfoTypes( lfmptr, lfmptr.data()->supportedGetTypes(), lfmptr.data()->supportedPushTypes() );
|
registerInfoTypes( lfmptr, lfmptr.data()->supportedGetTypes(), lfmptr.data()->supportedPushTypes() );
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
InfoPluginPtr admptr( new AdiumPlugin() );
|
InfoPluginPtr admptr( new AdiumPlugin() );
|
||||||
m_plugins.append( admptr );
|
m_plugins.append( admptr );
|
||||||
registerInfoTypes( admptr, admptr.data()->supportedGetTypes(), admptr.data()->supportedPushTypes() );
|
registerInfoTypes( admptr, admptr.data()->supportedGetTypes(), admptr.data()->supportedPushTypes() );
|
||||||
|
#endif
|
||||||
|
|
||||||
Q_FOREACH( InfoPluginPtr plugin, m_plugins )
|
Q_FOREACH( InfoPluginPtr plugin, m_plugins )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user