org.fd.DBus.Introspectable.EnumerateObjects()
Thiago Macieira
thiago at kde.org
Thu May 13 02:10:16 PDT 2010
Em Quinta-feira 13. Maio 2010, às 01.44.15, Lennart Poettering escreveu:
> Heya!
>
> Since we are all busy discussing spec additions and it is so much fun,
> here's another one I'd really like to see implemented, and I am willing
> to put a patch together for, if we can get some agreement on this:
>
> I'd like to have an additional method call in the Introspectable interface:
>
> org.fd.DBus.Introspectable.EnumerateObjects(in s interface, out ao
> paths);
>
> What does this do?
>
> It will basically return all child objects of the object called that
> implement the specified interface. If the interface string is the
> empty string, then it will return ALL child objects, regardless of the
> interfaces they implement.
I agree with this, but I'd swap the "in s interface" parameter with "in b
recursive".
Either you want to know the direct descendants, or all of them.
But I don't like giving people the ability to search for an interface. That
will lead to bad client code instead.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100513/e8cb3aa8/attachment.pgp>
More information about the dbus
mailing list