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

Kevin Krammer kevin.krammer at gmx.at
Mon Mar 31 10:51:02 BST 2008


Hi all,

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"

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080331/e87f3671/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