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

Move spotify account to libtomahawk

This commit is contained in:
Leo Franchi 2012-06-08 15:32:08 +02:00
parent 59ab945f0b
commit e0d6d5ef6b
9 changed files with 13 additions and 10 deletions

View File

@ -72,10 +72,6 @@ SET( tomahawkSourcesGui ${tomahawkSourcesGui}
accounts/lastfm/LastFmConfig.cpp
accounts/lastfm/LastFmInfoPlugin.cpp
accounts/spotify/SpotifyAccount.cpp
accounts/spotify/SpotifyAccountConfig.cpp
accounts/spotify/SpotifyPlaylistUpdater.cpp
TomahawkTrayIcon.cpp
AudioControls.cpp
SettingsDialog.cpp
@ -97,7 +93,6 @@ SET( tomahawkUI ${tomahawkUI}
ProxyDialog.ui
accounts/lastfm/LastFmConfig.ui
accounts/spotify/SpotifyAccountConfig.ui
AudioControls.ui
LoadXSPFDialog.ui

View File

@ -184,6 +184,11 @@ set( libSources
accounts/DelegateConfigWrapper.cpp
accounts/AccountFactoryWrapper.cpp
accounts/AccountFactoryWrapperDelegate.cpp
accounts/spotify/SpotifyAccount.cpp
accounts/spotify/SpotifyAccountConfig.cpp
accounts/spotify/SpotifyPlaylistUpdater.cpp
sip/SipPlugin.cpp
sip/SipHandler.cpp
sip/SipInfo.cpp
@ -306,6 +311,7 @@ set( libUI ${libUI}
context/ContextWidget.ui
infobar/InfoBar.ui
accounts/AccountFactoryWrapper.ui
accounts/spotify/SpotifyAccountConfig.ui
)
include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/.. ..

View File

@ -26,6 +26,7 @@
#include "Playlist.h"
#include "utils/TomahawkUtils.h"
#include "utils/SmartPointerList.h"
#include "DllMacro.h"
class QAction;
class SpotifyPlaylistUpdater;
@ -51,7 +52,7 @@ struct SpotifyPlaylistInfo {
};
class SpotifyAccountFactory : public AccountFactory
class DLLEXPORT SpotifyAccountFactory : public AccountFactory
{
Q_OBJECT
public:
@ -69,7 +70,7 @@ public:
};
class SpotifyAccount : public CustomAtticaAccount
class DLLEXPORT SpotifyAccount : public CustomAtticaAccount
{
Q_OBJECT
public:
@ -159,6 +160,6 @@ private:
}
}
Q_DECLARE_METATYPE( Tomahawk::Accounts::SpotifyPlaylistInfo* );
Q_DECLARE_METATYPE( Tomahawk::Accounts::SpotifyPlaylistInfo* )
#endif // SpotifyAccount_H

View File

@ -21,6 +21,7 @@
#include "playlist/PlaylistUpdaterInterface.h"
#include "utils/Closure.h"
#include "DllMacro.h"
#include <QQueue>
#include <QVariant>
@ -31,7 +32,7 @@ namespace Accounts {
}
}
class SpotifyPlaylistUpdater : public Tomahawk::PlaylistUpdaterInterface
class DLLEXPORT SpotifyPlaylistUpdater : public Tomahawk::PlaylistUpdaterInterface
{
Q_OBJECT
@ -106,7 +107,7 @@ private:
};
class SpotifyUpdaterFactory : public Tomahawk::PlaylistUpdaterFactory
class DLLEXPORT SpotifyUpdaterFactory : public Tomahawk::PlaylistUpdaterFactory
{
public:
SpotifyUpdaterFactory() {}