Semantics of o.fd.DBus.Properties

Thiago Macieira thiago at
Fri Feb 8 11:49:45 PST 2008

Simon McVittie wrote:
>Right, so any API author who cares about Qt interoperability can't
> mandate that accessing some of their properties can fail with an error.

It's not difficult to add support for sending an error from setter or a 
getter, the same way that it's done for a normal method. It's not via C++ 
exceptions, but with a call to QDBusContext::sendError().

But from the client side, there's no way to determine if a setting failed 
(QObject::setProperty returns void) or the reason why a get failed. If an 
API required checking those, the client would have to call the Get and 
Set methods directly.

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    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 : 

More information about the dbus mailing list