[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KNotificationAreaItem
From: Thiago Macieira <thiago () kde ! org>
Date: 2009-04-21 6:40:46
Message-ID: 200904210840.47162.thiago () kde ! org
[Download RAW message or body]
Thomas Lübking wrote:
>Am Tuesday 21 April 2009 schrieb Thiago Macieira:
>> Thomas Lübking wrote:
>> >of course you could check all services whether they provide certain
>> > objects providing certain functions, but that's
>> >a) heuristic
>> >b) not necessarily efficient...
>>
>> c) not possible
>
>a) "object" was meant := "path" (sorry, my fault)
>you'd have to recurse parse
> org.freedesktop.DBus.Introspectable.Introspect
Exactly. That's why it's not possible.
Not all services implement introspection. Of those that do, some don't
implement it correctly. Yet that's a valid situation. And some services
don't reply at all to D-Bus (think of kioslaves), so you'll have 25-second
timeouts in your script.
Unless you're reacting to user input (qdbus, qdbusviewer, a path completer
in a shell or an editor, etc.), introspecting the D-Bus hierarchy is never
right.
If you need to find a given service, either put it in the service name, or
emit a signal and wait for all your clients to reply.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic