我创建了一个扩展QDBusAbstractAdaptor的新类,并为D-Bus自省添加了Q_CLASSINFO宏
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"foo.bar\">\n"
" <property access=\"readwrite\" type=\"d\" name=\"foo1\"/>\n"
" <property access=\"readwrite\" type=\"d\" name=\"foo2\"/>\n"
" <signal name=\"barSignal\">\n"
" <arg direction=\"out\" type=\"i\" name=\"bar\"/>\n"
" </signal>\n"
" <method name=\"foobar\">\n"
" <arg direction=\"in\" type=\"d\" name=\"barbar\"/>\n"
" </method>\n"
" </interface>\n"
"")
但是我无法自检foo.bar接口
我需要为自省实现新的接口吗?还是我只是称呼不正确?