[Bug 47945] New: Generate separate header files per D-Bus interface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 27 17:15:17 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=47945

             Bug #: 47945
           Summary: Generate separate header files per D-Bus interface
    Classification: Unclassified
           Product: Telepathy
           Version: git master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: tp-qt
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: mikhail.zabaluev at nokia.com
         QAContact: telepathy-bugs at lists.freedesktop.org
                CC: artemgarmash at gmail.com


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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list