我试图将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"
但是当我拨打或接听电话时没有任何反应。当然我已经连接,我已启用并在线设置调制解调器。
也许我的&#34;翻译&#34;签名错了?