mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Move Last.fm account to libtomahawk
This commit is contained in:
@@ -68,10 +68,6 @@ SET( tomahawkSourcesGui ${tomahawkSourcesGui}
|
|||||||
sourcetree/items/GroupItem.cpp
|
sourcetree/items/GroupItem.cpp
|
||||||
sourcetree/items/HistoryItem.cpp
|
sourcetree/items/HistoryItem.cpp
|
||||||
|
|
||||||
accounts/lastfm/LastFmAccount.cpp
|
|
||||||
accounts/lastfm/LastFmConfig.cpp
|
|
||||||
accounts/lastfm/LastFmInfoPlugin.cpp
|
|
||||||
|
|
||||||
TomahawkTrayIcon.cpp
|
TomahawkTrayIcon.cpp
|
||||||
AudioControls.cpp
|
AudioControls.cpp
|
||||||
SettingsDialog.cpp
|
SettingsDialog.cpp
|
||||||
@@ -92,8 +88,6 @@ SET( tomahawkUI ${tomahawkUI}
|
|||||||
StackedSettingsDialog.ui
|
StackedSettingsDialog.ui
|
||||||
ProxyDialog.ui
|
ProxyDialog.ui
|
||||||
|
|
||||||
accounts/lastfm/LastFmConfig.ui
|
|
||||||
|
|
||||||
AudioControls.ui
|
AudioControls.ui
|
||||||
LoadXSPFDialog.ui
|
LoadXSPFDialog.ui
|
||||||
SocialWidget.ui
|
SocialWidget.ui
|
||||||
|
@@ -189,6 +189,10 @@ set( libSources
|
|||||||
accounts/spotify/SpotifyAccountConfig.cpp
|
accounts/spotify/SpotifyAccountConfig.cpp
|
||||||
accounts/spotify/SpotifyPlaylistUpdater.cpp
|
accounts/spotify/SpotifyPlaylistUpdater.cpp
|
||||||
|
|
||||||
|
accounts/lastfm/LastFmAccount.cpp
|
||||||
|
accounts/lastfm/LastFmConfig.cpp
|
||||||
|
accounts/lastfm/LastFmInfoPlugin.cpp
|
||||||
|
|
||||||
sip/SipPlugin.cpp
|
sip/SipPlugin.cpp
|
||||||
sip/SipHandler.cpp
|
sip/SipHandler.cpp
|
||||||
sip/SipInfo.cpp
|
sip/SipInfo.cpp
|
||||||
@@ -312,6 +316,7 @@ set( libUI ${libUI}
|
|||||||
infobar/InfoBar.ui
|
infobar/InfoBar.ui
|
||||||
accounts/AccountFactoryWrapper.ui
|
accounts/AccountFactoryWrapper.ui
|
||||||
accounts/spotify/SpotifyAccountConfig.ui
|
accounts/spotify/SpotifyAccountConfig.ui
|
||||||
|
accounts/lastfm/LastFmConfig.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/.. ..
|
include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/.. ..
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "accounts/Account.h"
|
#include "accounts/Account.h"
|
||||||
#include "AtticaManager.h"
|
#include "AtticaManager.h"
|
||||||
|
#include "DllMacro.h"
|
||||||
|
|
||||||
#include <attica/content.h>
|
#include <attica/content.h>
|
||||||
|
|
||||||
@@ -37,7 +38,7 @@ namespace Accounts {
|
|||||||
|
|
||||||
class LastFmConfig;
|
class LastFmConfig;
|
||||||
|
|
||||||
class LastFmAccountFactory : public AccountFactory
|
class DLLEXPORT LastFmAccountFactory : public AccountFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -57,11 +58,11 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 3.Last.Fm account is special. It is both an attica resolver *and* a InfoPlugin. We always want the infoplugin,
|
* Last.Fm account is special. It is both an attica resolver *and* a InfoPlugin. We always want the infoplugin,
|
||||||
* but the user can install the attica resolver on-demand. So we take care of both there.
|
* but the user can install the attica resolver on-demand. So we take care of both there.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class LastFmAccount : public CustomAtticaAccount
|
class DLLEXPORT LastFmAccount : public CustomAtticaAccount
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "infosystem/InfoSystem.h"
|
#include "infosystem/InfoSystem.h"
|
||||||
#include "infosystem/InfoSystemWorker.h"
|
#include "infosystem/InfoSystemWorker.h"
|
||||||
|
#include "DllMacro.h"
|
||||||
|
|
||||||
#include <lastfm/Track>
|
#include <lastfm/Track>
|
||||||
#include <lastfm/Audioscrobbler>
|
#include <lastfm/Audioscrobbler>
|
||||||
@@ -42,7 +43,7 @@ namespace Accounts
|
|||||||
namespace InfoSystem
|
namespace InfoSystem
|
||||||
{
|
{
|
||||||
|
|
||||||
class LastFmInfoPlugin : public InfoPlugin
|
class DLLEXPORT LastFmInfoPlugin : public InfoPlugin
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Reference in New Issue
Block a user