1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-10-05 10:03:43 +02:00

implement adding in getnewstuffmodel for attica resolvers

This commit is contained in:
Leo Franchi
2012-01-27 19:10:11 -05:00
parent b300279e30
commit 4e450b36ee
3 changed files with 68 additions and 6 deletions

View File

@@ -32,6 +32,8 @@
#include <QTimer>
#include "utils/logger.h"
#include "accounts/ResolverAccount.h"
#include "accounts/AccountManager.h"
using namespace Attica;
@@ -374,6 +376,9 @@ AtticaManager::payloadFetched()
// Do the install / add to tomahawk
Tomahawk::Pipeline::instance()->addScriptResolver( resolverPath, true );
Tomahawk::Accounts::Account* resolver = Tomahawk::Accounts::ResolverAccountFactory::createFromPath( resolverPath, true );
Tomahawk::Accounts::AccountManager::instance()->addAccount( resolver );
m_resolverStates[ resolverId ].state = Installed;
TomahawkSettingsGui::instanceGui()->setAtticaResolverStates( m_resolverStates );
emit resolverInstalled( resolverId );