equal
deleted
inserted
replaced
244 return m_accounts[id.toString()]; |
244 return m_accounts[id.toString()]; |
245 } |
245 } |
246 |
246 |
247 QMessageAccountId CFSEngine::defaultAccount(QMessage::Type type) const |
247 QMessageAccountId CFSEngine::defaultAccount(QMessage::Type type) const |
248 { |
248 { |
249 // TODO |
249 TRAPD(err, updateEmailAccountsL()); |
250 Q_UNUSED(type); |
250 Q_UNUSED(err); |
|
251 QMessageAccountIdList accountIds = accountsByType(type); |
|
252 if (accountIds.count() > 0) |
|
253 return accountIds.at(0); |
|
254 |
251 return QMessageAccountId(); |
255 return QMessageAccountId(); |
252 } |
256 } |
253 |
257 |
254 QMessageAccountIdList CFSEngine::accountsByType(QMessage::Type type) const |
258 QMessageAccountIdList CFSEngine::accountsByType(QMessage::Type type) const |
255 { |
259 { |