DBus Object Paths and Refcounting
Thiago Macieira
thiago at kde.org
Sat Aug 11 10:50:48 PDT 2007
Thiago Macieira wrote:
>For one thing, it's completely impossible to implement it in QtDBus. It
>owns only a weak reference to the object, so it knows if it was deleted,
>but cannot prevent the deletion from happening.
Let me add one thing:
While I think this kind of feature should not be mandatory for bindings
(and cannot be part of libdbus-1), it can be provided as convenience
functions by those same bindings.
So, after thinking for 60 seconds, I did come up with a way of doing that
very feature in QtDBus. It would require, just like boost::shared_ptr,
that you relinquish control of your object to the framework.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
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: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070811/9c2b086a/attachment.pgp
More information about the dbus
mailing list