Generate separate header files per D-Bus interface
Submitted by Mikhail Zabaluev
Assigned to Telepathy bugs list
Description
In our project we have created test stubs for a small subset of TelepathyQt API that we use. We can do this by using the header files from TelepathyQt and providing mock implementations. There is a problem, though: we cannot use moc output for the headers as is, because generated D-Bus interface classes are bundled into few big header files such as cli-channel.h, and the moc output for those needs to link the implementation for all QObject classes defined in the header. So we have to supply a hand-crafted moc-compatible source cut down to the classes we really use, which makes our test code more work-intensive and fragile than it needs to be. If there were a separate header for each D-Bus interface, we could cherry-pick them for moc.
Version: git master