Introspect Blocks
Daniele E. Domenichelli
daniele.domenichelli at gmail.com
Fri Jul 20 07:21:27 UTC 2012
Hello Puneet,
[Forwarding this to kde-telepathy mailing]
On 20/07/12 02:06, Puneet Goyal wrote:
> Can I use the QDBusConnectionPrivate class somehow??
It depends from where the org.freedesktop.DBus.ObjectManager interface
will be at the end.
We have 3 options:
1) Have in *ktp-common-internals*. This is the easier way to get it
merged somewhere, but you cannot use the QDBusConnectionPrivate class,
you must instead implement a registeObject method (and an unregister one
too) similar to QDBusConnection::registerObject instead, and you have to
call it every time you call that method
2) Try to merge it in *telepathy-qt*. The implementation is the same, so
I'd forget about this at the moment, we can move it later if we realize
that it is needed by others.
3) Try to merge it in *Qt5* and possibly in *Qt 4.8.next* since it
shouldn't add any new method. That's for sure the best place to have it,
in this way you get the ObjectManager for free in every dbus object
(like for the ofD.Introspectable and ofD.Peer interfaces). The
implementation is going to be easier, because you may use
QDBusConnectionPrivate, but on the other side it's going to be harder,
because you cannot test it with qt from your distribution but you need
to build it from scratch, and because the code should be of a very good
quality to be merged in Qt. Moreover understanding the internals of
QtDBus is not an easy task. And finally the way to implement it is going
to be completely different...
What do you (and the kde-telepathy guys) think?
Daniele
More information about the KDE-Telepathy
mailing list