1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Style fixes for AccountManager.

This commit is contained in:
Christian Muehlhaeuser
2013-01-19 13:33:23 +01:00
parent bf9701eb01
commit 8ef825aba7

View File

@@ -146,7 +146,8 @@ AccountManager::loadPluginFactories( const QStringList& paths )
bool bool
AccountManager::hasPluginWithFactory( const QString& factory ) const AccountManager::hasPluginWithFactory( const QString& factory ) const
{ {
foreach( Account* account, m_accounts ) { foreach ( Account* account, m_accounts )
{
if ( factoryFromId( account->accountId() ) == factory ) if ( factoryFromId( account->accountId() ) == factory )
return true; return true;
} }
@@ -161,6 +162,7 @@ AccountManager::factoryFromId( const QString& accountId ) const
return accountId.split( "_" ).first(); return accountId.split( "_" ).first();
} }
AccountFactory* AccountFactory*
AccountManager::factoryForAccount( Account* account ) const AccountManager::factoryForAccount( Account* account ) const
{ {
@@ -283,6 +285,7 @@ AccountManager::loadFromConfig()
} }
} }
void void
AccountManager::initSIP() AccountManager::initSIP()
{ {
@@ -376,7 +379,7 @@ AccountManager::accountFromPath( const QString& accountPath )
} }
} }
Q_ASSERT_X( false, "Shouldn't have had no account factory accepting a path.. at least ResolverAccount!!", ""); Q_ASSERT_X( false, "Shouldn't have had no account factory accepting a path.. at least ResolverAccount!", "" );
return 0; return 0;
} }
@@ -407,6 +410,7 @@ AccountManager::zeroconfAccount() const
return 0; return 0;
} }
void void
AccountManager::hookupAccount( Account* account ) const AccountManager::hookupAccount( Account* account ) const
{ {
@@ -450,6 +454,7 @@ AccountManager::onError( int code, const QString& msg )
} }
} }
void void
AccountManager::onSettingsChanged() AccountManager::onSettingsChanged()
{ {
@@ -460,6 +465,7 @@ AccountManager::onSettingsChanged()
} }
} }
void void
AccountManager::onStateChanged( Account::ConnectionState state ) AccountManager::onStateChanged( Account::ConnectionState state )
{ {