Skip to content

components/dbus: add DBusMethodCall

Fushan Wen requested to merge work/fuf/dbuscaller into master

This QML type is used to call a DBus method.

Example:

const args = [
    "appname",
    0,
    "firefox",
    "title",
    "body",
    ["1", "action 1", "2", "action 2"],
    {"desktop-entry": "systemsettings"},
    -1
]
const msg = {service: "org.freedesktop.Notifications", path: "/org/freedesktop/Notifications", iface: "org.freedesktop.Notifications", member: "Notify", arguments: args} as DBus.dbusMessage
const syncReply = DBus.SessionBus.call(msg)
const asyncReply = DBus.SessionBus.asyncCall(msg)
asyncReply.finished.connect(callback)

Closes #120

Edited by Fushan Wen

Merge request reports