1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 06:36:55 +02:00

Remove SpotifyAccountFactory

This commit is contained in:
Uwe L. Korn
2014-10-29 20:10:10 +01:00
parent 266d10988d
commit d6572f951f
3 changed files with 0 additions and 42 deletions

View File

@@ -77,23 +77,6 @@ namespace {
};
}
Account*
SpotifyAccountFactory::createAccount( const QString& accountId )
{
return new SpotifyAccount( accountId );
}
QPixmap
SpotifyAccountFactory::icon() const
{
if ( !s_icon )
s_icon = new QPixmap( RESPATH "images/spotify-logo.png" );
return *s_icon;
}
SpotifyAccount* SpotifyAccount::s_instance = 0;
SpotifyAccount*

View File

@@ -61,24 +61,6 @@ struct SpotifyPlaylistInfo {
};
class DLLEXPORT SpotifyAccountFactory : public AccountFactory
{
Q_OBJECT
public:
SpotifyAccountFactory() {}
virtual Account* createAccount( const QString& accountId = QString() );
virtual QString description() const { return tr( "Play music from and sync your playlists with Spotify Premium" ); }
virtual QString factoryId() const { return "spotifyaccount"; }
virtual QString prettyName() const { return "Spotify"; }
virtual AccountTypes types() const { return AccountTypes( ResolverType ); }
virtual bool allowUserCreation() const { return false; }
virtual QPixmap icon() const;
virtual bool isUnique() const { return true; }
};
class DLLEXPORT SpotifyAccount : public CustomAtticaAccount
{
Q_OBJECT

View File

@@ -50,8 +50,6 @@
#include "utils/NetworkAccessManager.h"
#include "accounts/lastfm/LastFmAccount.h"
#include "accounts/spotify/SpotifyAccount.h"
//#include "accounts/spotify/SpotifyPlaylistUpdater.h"
#include "accounts/AccountManager.h"
#include "audio/AudioEngine.h"
#include "database/Database.h"
@@ -563,10 +561,6 @@ TomahawkApp::initFactoriesForAccountManager()
m_accountManager.data()->addAccountFactory( lastfmFactory );
#endif
Tomahawk::Accounts::SpotifyAccountFactory* spotifyFactory = new Tomahawk::Accounts::SpotifyAccountFactory;
m_accountManager.data()->addAccountFactory( spotifyFactory );
m_accountManager.data()->registerAccountFactoryForFilesystem( spotifyFactory );
Tomahawk::Accounts::AccountManager::instance()->loadFromConfig();
}
@@ -678,7 +672,6 @@ TomahawkApp::onInfoSystemReady()
Tomahawk::EchonestCatalogSynchronizer::instance();
PlaylistUpdaterInterface::registerUpdaterFactory( new XspfUpdaterFactory );
// PlaylistUpdaterInterface::registerUpdaterFactory( new SpotifyUpdaterFactory );
// Following work-around/fix taken from Clementine rev. 13e13ccd9a95 and courtesy of David Sansome
// A bug in Qt means the wheel_scroll_lines setting gets ignored and replaced