Fun with Akonadi Dataengine (solved)
David Baron
d_baron at 012.net.il
Fri Feb 13 10:30:22 CET 2009
>Got to try it.
>connectSource to ContactCollections.
>dataUpdated() is called and I connectSource to ContactConnection-# that it
>gives me in the data.uniqueKeys()
>dataUpdated() is never called again.
>The console shows all the contacts being added int but the program never sees
>them.
>1. What do I do now?
>2. How do I know when all the data has been loaded--no more calls to
>dataUpdated() are going to happen?
Calling connectAllSources() OUTSIDE dataUpdated() worked. Makes sense since
this one could have fun consequences if it worked inside :-)
Since things are asynchronous, knowing when the data is loaded is desirable
but hundreds of contacts loaded in a second or so on my clunker so I cannot
complain. It could be a bit disconcerting, however, to see a listbox filling
and sorting "live" so knowing when to actually (fill and) show it is
desirable. So such a signal may be placed on the "wish list."
Afterwards, I assume a dataUpdated call implies an item was changed inside or
outside the applet so this item would need updating in the "visualization" as
well.
At least now I can design my interface for viewing and using those contacts. A
big congrats for job well done. When will it be released?
More information about the Plasma-devel
mailing list