Bug 47945

Summary: Generate separate header files per D-Bus interface
Product: Telepathy Reporter: Mikhail Zabaluev <mikhail.zabaluev>
Component: tp-qtAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium CC: artemgarmash
Version: git master   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Mikhail Zabaluev 2012-03-27 08:15:17 UTC
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.
Comment 1 GitLab Migration User 2019-12-03 20:29:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-qt/issues/41.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.