Add Bluez API to DBus XML parser/generator
ClosedPublic

Authored by mweichselbaumer on May 17 2019, 10:24 PM.

Details

Summary

I created this tool in the hope it is helpful for others.
It generates DBus introspection XMLs out of the original Bluez DBUS api descriptions found at: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc .
Further plans are to also add a C++ generator.

Please have a look and share your thoughts. Thanks.

Diff Detail

Repository
R269 BluezQt
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mweichselbaumer requested review of this revision.May 17 2019, 10:24 PM
mweichselbaumer created this revision.
drosca requested changes to this revision.May 20 2019, 12:47 PM
tools/bluezapi2qt/CMakeLists.txt
2

Why this?
You should use QLatin1String/QStringLiteral where appropriate.

This revision now requires changes to proceed.May 20 2019, 12:47 PM
tools/bluezapi2qt/CMakeLists.txt
2

Initially, i used QStringLiteral.
However, this is really painful, especially when writing a parser/generator using QString/QRegExp.
This was more or less a test, whether we could allow this within supplementary tools?

drosca added inline comments.May 28 2019, 2:12 PM
tools/bluezapi2qt/CMakeLists.txt
2

No, you should make it compilable without removing those defines.

Using QStringLiteral and fixed style issues.
Also added C++ adaptor generator

Using QStringLiteral and fixed style issues.
Also added C++ adaptor generator.

How different is the C++ generator from qdbusxml2cpp?

Well, it can directly generate c++ code without going via XML files. Currently, it only generates adaptor code, but could be extended to generate all other c++ related files.
This is just a start.

drosca accepted this revision.May 31 2019, 10:15 AM
This revision is now accepted and ready to land.May 31 2019, 10:15 AM
This revision was automatically updated to reflect the committed changes.
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 31 2019, 5:30 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript