Source: https://code.launchpad.net/~larsu/+junk/qml-dbus-object