Apollo Xue
unread,Mar 4, 2011, 11:37:29 AM3/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qt-...@qt.nokia.com
Hi All,
I am trying add an new email account, but I found that QMailAccount::setStatus(quint64 mask, bool set) API did not work, I am not sure if I was using this API correctly. here is my code piece:
m_pAccount = new QMailAccount();
m_pAccount->setMessageType(QMailMessage::Email);
m_pAccount->setStatus(QMailAccount::UserEditable, true);
m_pAccount->setStatus(QMailAccount::UserRemovable, true);
m_pAccount->setStatus(QMailAccount::Enabled, true);
m_pAccount->setStatus(QMailAccount::MessageSource, true);
m_pAccount->setStatus(QMailAccount::MessageSink, true);
m_pAccount->setStatus(QMailAccount::CanTransmit, true);
m_pAccount->setStatus(QMailAccount::CanRetrieve, true);
quint64 test = m_pAccount->status();
I found the value return by m_pAccount->status() is always 0, then I checked the souce code of QMailAccount:::setStatus(quint64 mask, bool set), and debugged again, I found that QMailAccount::MessageSource and otherQMailAccount variables are all 0 when I call setStatus() API. why? how to use this API?
Best Regards
Apolloxue