void KNCollectionView::reloadAccounts() { KNAccountManager *am = knGlobals.accountManager(); QValueList<KNNntpAccount *>::Iterator it; for(it = am->begin(); it != am->end(); ++it) { removeAccount(*it); addAccount(*it); } }
QStringList KNScoringManager::getGroups() const { KNAccountManager *am = knGlobals.accountManager(); QStringList res; QValueList<KNNntpAccount*>::Iterator it; for ( it = am->begin(); it != am->end(); ++it ) { QStringList groups; knGlobals.groupManager()->getSubscribed( (*it), groups); res += groups; } res.sort(); return res; }