On Friday, 14 June 2013 17:51:11 CEST, Pali Rohár wrote:
Kontact has summary kpart plugin which showing new (unread) mails. But I do not know if it can be extended without patching it...
Based on what Kevin said in his response, it looks like there's no Kontact-wide method of notifying about new arrivals. I'd prefer that you include the notifications about new mails into your timeline -- do you think you'll manage this? Caution: this *will* require adapting Trojita's code; there's no functionality for even "detecting new mails" yet.
But maybe single instance support code can be in separate class and if somebody will need support also for windows/mac, it could be possible to implement it...
Looks reasonable to me -- thanks for offering a good solution. The argument about yet another library is a good one.
Here with async interfaces, do you mean to use Qt signals/slots for jobs and not to use blocking exec() functions?
An example of a synchronous interface is the current address completion in the composer -- it requests a list of addresses to be offered, *waits* for the result implicitly and feeds that into the pop-up completion menu. Done asynchronously, it shall request the completion, update the request based on what the user types, and display the results in the completion widget as they arrive from the plugin, without blocking the GUI. Cheers, Jan -- Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/
