Fun with Akonadi Dataengine

David Baron d_baron at 012.net.il
Tue Feb 17 21:47:46 CET 2009


On Tuesday 17 February 2009 22:01:18 David Baron wrote:
> Latest from playground SVN.
>
> I re-downloaded and compared with the older code. The only real difference
> besides the volume of diagnostic printout is that the ContactCollection-#
> list is made at a completion event rather than immediately on
> connectSource(ContactCollections).
>
> Such could alleviate some of the panel delay I encountered when doing this
> directly in init(). However, this is a small amount of data at this point.
> The delay was more from the log-jam on kde/plasma startup. For example,
> with the older dataengine, it took almost 90 seconds before I got the
> contacts to start dataUpdate-ing. Later on, run from the plasmoidviewer,
> this same thing completes in several seconds.
>
> With the new code, I will not have any useful return from query until I
> have the equivalent in dataUpdate. This is why it did not work. I should
> recode it so it would work either way.

To get it to "work" either way, I still use the QTimer.  I MUST repeat the 
connectSource( ContactCollections ) or a least wait the second before the 1st 
call since the console shows no further such calls. When I get dataUpdated 
from this call, I connect the ContactCollection-#,, and then have the QTimer 
call connectAllSources and I get my contacts.

HOWEVER, the new code will crash the applet in plasmoidviewer just as it 
crashed the explorer. This may be due to the increased volume of "printed" 
contacts information or it may be something else. The applet in the panel 
apparently did not crash (the desktop and panel came up) even though the 
"plasma" command certainly showed all that stuff. In any event, I am going 
back to the older code until the problem is resolved since I cannot test the 
applet or dataengine with the new code.


More information about the Plasma-devel mailing list