~ubuntu-branches/ubuntu/utopic/ubuntu-system-settings-online-accounts/utopic-proposed

« back to all changes in this revision

Viewing changes to online-accounts-ui/account-manager.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ubuntu daily release, Alberto Mardegan
  • Date: 2014-10-01 13:31:34 UTC
  • mfrom: (1.1.36)
  • Revision ID: package-import@ubuntu.com-20141001133134-3fgng1e52axk5d6t
Tags: 0.4+14.10.20141001-0ubuntu1
[ Ubuntu daily release ]
* New rebuild forced

[ Alberto Mardegan ]
* Minor improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
AccountManager::~AccountManager()
49
49
{
50
50
}
51
 
 
52
 
AccountIdList
53
 
AccountManager::accountListByProvider(const QString &providerId) const
54
 
{
55
 
    AccountIdList allAccounts = accountList();
56
 
    AccountIdList providerAccounts;
57
 
 
58
 
    Q_FOREACH(AccountId accountId, allAccounts) {
59
 
        Account *account = this->account(accountId);
60
 
        if (!account) continue;
61
 
 
62
 
        if (account->providerName() != providerId) continue;
63
 
 
64
 
        providerAccounts.append(accountId);
65
 
    }
66
 
 
67
 
    return providerAccounts;
68
 
}