src/messaging/qfsengine_symbian.cpp
changeset 5 603d3f8b6302
parent 0 876b1a06bc25
equal deleted inserted replaced
3:e4ebb16b39ea 5:603d3f8b6302
   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 {