Hi Jan, 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.
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. I can show you the code but I dont know what is the appropriate way to show it to you as I am waiting from to suggest the best way to show the code (In case if you'd like to see the code). 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. Hope you understand my questions as I am writing this mail while I am half sleep :) Cheers On Mon, Mar 4, 2013 at 11:55 AM, Jan Kundrát <[email protected]> wrote: > On Monday, 4 March 2013 01:15:45 CEST, Ahmed Ibrahim wrote: > >> I've managed to build the Trojita libs and APIs using BB's tool chain and >> I >> can run now a simple application that uses some of Trojita classes. >> > > Congratulations, Ahmed :), looking forward to seeing the port. > > > I've seen that in Trojita's Harmattan version there is a class called the >> ImapAccess that wraps the message model and other models like the >> MailboxModel. >> >> So I thought to use it in the QML of the BB's version but I found that I >> could not use it as there are attributes like Username and Password are >> not >> declared Q_INVOKABLE. >> > > The ImapAccess is indeed intended for exactly this purpose, and works well > with QML. You're not supposed to call the username() method, but instead > access the username property. I'm not aware of any specialities in BB's QML > implementation -- could you please show us some code you're using here? > > Cheers, > Jan > > -- > Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/ > >
