Bug 47945 - Generate separate header files per D-Bus interface
Summary: Generate separate header files per D-Bus interface
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-qt (show other bugs)
Version: git master
Hardware: All All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-27 08:15 UTC by Mikhail Zabaluev
Modified: 2019-12-03 20:29 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.