qt_add_dbus_interface output namespace errors
-
I'm starting out with DBus in Qt with the aim of interfacing to the KDE KStars application. Several DBus interface descriptor xml files are provided. I'm using qt_add_dbus_interface in my CMakeLists.txt to generate the interface .h & .cpp from this .xml
The files are generated but throw up errors as there is a reference to a namespaced type that shows as an undeclared identifier. As an example, I have:
Q_SIGNALS: // SIGNALS void newStatus(Ekos::CaptureState status);
'Ekos' has not been declared
What do I need to do to work with this DBus interface?
-
I found https://develop.kde.org/docs/features/d-bus/using_custom_types_with_dbus/ which explains it.
When accessing functions that expose custom types you have to go through manual steps to include and expose these to the QMetaType system.
This is not going to be practical for my purpose.