On Wednesday, 13 March 2013 00:57:31 CEST, Ahmed Ibrahim wrote:
I've been experimenting with the ImapAccess class and I made some changes
to it because the BB cascades API does not use the QAbstractItemModel that
the Imap::Mailbox::Model class use instead it uses an abstract class
called DataModel
<http://developer.blackberry.com/cascades/reference/bb__cascades__datamodel.html>so
that ListViews in the Cascades API can read from it the data.

Hi Ahmed, that's rather interesting. Do you happen to know what was their 
reason for not using the normal Qt models?

Anyway that was not the main problem, the problem is that I after I
provided the settings to the ImapAccess and use the ImapAccess::setSslMode
where it initializes the model classes I cannot see any signals being fired
I event connected a slot with the dataChanged signal of the
Imap::Mailbox::Model still the signal is not fired.

Make sure you've called setPassword before calling setSslMode. Apart from that, 
I have no idea what could be wrong -- the code works on Harmattan.

Another thing also could you state please tell me how can I start the IMAP
connection to the Imap server ? as there might be something I am missing in
the Imap APIs.

You don't start a connection, you ask the model for data. In Qt's MVC API, the 
correct way is to call rowCount(QModelIndex()). The Model will -- behind the 
scenes -- connect to the remote IMAP server if needed. This requires proper 
setup -- see the interaction either in the src/Gui or src/Harmattan.

FYI, I've been contacted by people from KDE and I might get a Playbook for 
testing in some unspecified future.

With kind regards,
Jan

--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

Reply via email to