mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Style fixes for AccountManager.
This commit is contained in:
@@ -146,7 +146,8 @@ AccountManager::loadPluginFactories( const QStringList& paths )
|
||||
bool
|
||||
AccountManager::hasPluginWithFactory( const QString& factory ) const
|
||||
{
|
||||
foreach( Account* account, m_accounts ) {
|
||||
foreach ( Account* account, m_accounts )
|
||||
{
|
||||
if ( factoryFromId( account->accountId() ) == factory )
|
||||
return true;
|
||||
}
|
||||
@@ -161,6 +162,7 @@ AccountManager::factoryFromId( const QString& accountId ) const
|
||||
return accountId.split( "_" ).first();
|
||||
}
|
||||
|
||||
|
||||
AccountFactory*
|
||||
AccountManager::factoryForAccount( Account* account ) const
|
||||
{
|
||||
@@ -283,6 +285,7 @@ AccountManager::loadFromConfig()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -407,6 +410,7 @@ AccountManager::zeroconfAccount() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountManager::hookupAccount( Account* account ) const
|
||||
{
|
||||
@@ -450,6 +454,7 @@ AccountManager::onError( int code, const QString& msg )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountManager::onSettingsChanged()
|
||||
{
|
||||
@@ -460,6 +465,7 @@ AccountManager::onSettingsChanged()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountManager::onStateChanged( Account::ConnectionState state )
|
||||
{
|
||||
|
Reference in New Issue
Block a user