AccountFactory* AccountManager::factoryForAccount( Account* account ) const { const QString factoryId = factoryFromId( account->accountId() ); return m_accountFactories.value( factoryId, 0 ); }
foreach( Account* account, m_accounts ) { if( factoryFromId( account->accountId() ) == factory ) return true; }