我正在尝试将 D-Bus 信号连接到 Qt 插槽。例如,我有兴趣捕捉CallAdded
信号:
http://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc/voicecallmanager-api.txt
我做了以下操作:
QDBusConnection::systemBus().connect(OFONO_SERVICE, m_modem.path(), OFONO_VOICECALLMANAGER_INTERFACE, "CallAdded", this, SLOT(callAdded(QString,QMap<QString,QVariant>)));
在哪里:
OFONO_SERVICE = "org.ofono"
m_modem.path() = /hfp/org/bluez/hci0/dev_xx_xx_x_xx_xx_xx
OFONO_VOICECALLMANAGER_INTERFACE = "org.ofono.VoiceCallManager"
但是当我拨打或接听电话时没有任何反应。当然,我已连接,并且已启用并在线设置调制解调器。
也许我的“翻译”签名是错误的?