[Kde-pim] Akonadi::AgentManager and startup timing

Volker Krause vkrause at kde.org
Fri Apr 11 18:43:59 BST 2008


On Monday 31 March 2008 11:51:02 Kevin Krammer wrote:
> when I add resources I get output like this on the console where I started
> akonadictl from:
>
> Agent instance ( "agentInstanceStatus" )  "akonadi_knut_resource_0"  has no
> agent control interface.
> Agent instance ( "agentInstanceStatusMessage" )  "akonadi_knut_resource_0"
> has no agent control interface.
> Agent instance ( "agentInstanceProgress" )  "akonadi_knut_resource_0"  has
> no agent control interface.
> Agent instance ( "agentInstanceOnline" )  "akonadi_knut_resource_0"  has no
> agent control interface.
>
>
> After a bit of investigation I think this is what happens:
>
> - the agent manager in akonadictl launches the resource application
> - the agent manager in the application (akonadiconsole) gets notified about
> startup and returns the agent instance info object
> - to do this it makes D-Bus calls to akonadi control
> - however, the agent manager in control fills its data structures when
> certain names become available on the bus
> - at the point the calls from the application are received, they are still
> empty
>
> Possible solution:
> - the client side API should reflect that agent starting is inherently
> asynchronous by just returning and reporting back via signals
> - for convenience the API could do something like QTcpSocket does, i.e.
> have methods which will wait until a certain signal (or error) has arrived
>
> Additionally, agents might not be available right after their startup, e.g.
> delayed initialization, so we will probably need a way to convey that.
> Possible solution:
> - at startup the agent status is "startup" or "initializing" and the
> resource has to change it to "idle"

is this still an issue? I remember that we discussed that on IRC and fixed a 
few things, but I don't remember if we solved all of this.

regards
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080411/8a0ac0fb/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list