gpt4 book ai didi

c++ - dbus-send与QDBusAbstractInterface的对应关系

转载 作者:行者123 更新时间:2023-11-28 01:46:04 25 4
gpt4 key购买 nike

dbus-send实用程序的参数与QDBusAbstractInterface的constructor和call*方法的参数有什么对应关系?

互联网上有大量示例(例如 [1] )说明如何使用 dbus-send 通过 DBus 控制 NetworkManager实用程序,但我无法推断如何将它们转换为 Qt C++ 代码。

最佳答案

这个问题听起来有点太笼统了,任何答案对你来说都不是很有用,但是......

dbus-send --dest=com.example.service \
/service/path \
com.example.interfacename.Method \
int32:123

应该匹配

QDBusInterface iface("com.example.Service",
"/service/path",
"com.example.interfacename");
iface.call("Method", 123);

关于c++ - dbus-send与QDBusAbstractInterface的对应关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45033211/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com