<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=TDE_DBus_Tutorial</id>
	<title>TDE DBus Tutorial - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=TDE_DBus_Tutorial"/>
	<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;action=history"/>
	<updated>2026-05-25T03:39:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=1725&amp;oldid=prev</id>
		<title>Blu256: Better article formatting + added to category Developers</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=1725&amp;oldid=prev"/>
		<updated>2021-08-25T18:04:08Z</updated>

		<summary type="html">&lt;p&gt;Better article formatting + added to category Developers&lt;/p&gt;
&lt;a href=&quot;https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;amp;diff=1725&amp;amp;oldid=675&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Blu256</name></author>
	</entry>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=675&amp;oldid=prev</id>
		<title>imported&gt;Deloptes: updated to match the status of dbus-1-tqt</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=675&amp;oldid=prev"/>
		<updated>2019-10-22T21:36:37Z</updated>

		<summary type="html">&lt;p&gt;updated to match the status of dbus-1-tqt&lt;/p&gt;
&lt;a href=&quot;https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;amp;diff=675&amp;amp;oldid=674&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>imported&gt;Deloptes</name></author>
	</entry>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=674&amp;oldid=prev</id>
		<title>imported&gt;Deloptes: /* Test the service with proxy client */</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=674&amp;oldid=prev"/>
		<updated>2018-08-05T18:19:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Test the service with proxy client&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:19, 5 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 290:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 290:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;        C&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;        C&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;        D&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;        D&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;=Sample code=&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;[[:File:Dbus-1-tqt-example.tar.gz|Download sample code here]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Deloptes</name></author>
	</entry>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=673&amp;oldid=prev</id>
		<title>imported&gt;Deloptes at 17:57, 5 August 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=673&amp;oldid=prev"/>
		<updated>2018-08-05T17:57:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;amp;diff=673&amp;amp;oldid=672&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>imported&gt;Deloptes</name></author>
	</entry>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=672&amp;oldid=prev</id>
		<title>imported&gt;Deloptes: TDE use of dbus-1-tqt and dbusxml2qt3</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=TDE_DBus_Tutorial&amp;diff=672&amp;oldid=prev"/>
		<updated>2018-08-05T15:13:08Z</updated>

		<summary type="html">&lt;p&gt;TDE use of dbus-1-tqt and dbusxml2qt3&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I want to put down a summary of my experience with auto-generated interfaces and their use in TDE.&lt;br /&gt;
&lt;br /&gt;
I hope it will save many time for playing, copy/pasting &amp;quot;strange&amp;quot; code or just head ache.&lt;br /&gt;
&lt;br /&gt;
There are few examples at the end to show the use of DBus proxy and DBus interface.&lt;br /&gt;
&lt;br /&gt;
Additional information can be found in the documentation of package dbus-1-tqt.&lt;br /&gt;
&lt;br /&gt;
=Create DBus Interface=&lt;br /&gt;
&lt;br /&gt;
To create a DBus interface we need first a definition of the interface. More information on the interface type and signatures can be found in [https://dbus.freedesktop.org/doc/dbus-tutorial.html|the official dbus tutorial]&lt;br /&gt;
&lt;br /&gt;
The definition of the interface is a xml file. We take as example a file describing &amp;quot;org.freedesktop.DBus.ObjectManager&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;!DOCTYPE node PUBLIC &amp;quot;-//freedesktop//DTD D-BUS Object Introspection 1.0//EN&amp;quot;&lt;br /&gt;
           &amp;quot;http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;node name=&amp;quot;/org/example/Service&amp;quot;&amp;gt;&lt;br /&gt;
      	&amp;lt;interface name=&amp;quot;org.freedesktop.DBus.ObjectManager&amp;quot;&amp;gt;&lt;br /&gt;
      		&amp;lt;method name=&amp;quot;GetManagedObjects&amp;quot;&amp;gt;&lt;br /&gt;
      			&amp;lt;arg name=&amp;quot;objects&amp;quot; type=&amp;quot;a{oa{sa{sv}}}&amp;quot; direction=&amp;quot;out&amp;quot; /&amp;gt;&lt;br /&gt;
      		&amp;lt;/method&amp;gt;&lt;br /&gt;
      		&amp;lt;signal name=&amp;quot;InterfacesAdded&amp;quot;&amp;gt;&lt;br /&gt;
      			&amp;lt;arg name=&amp;quot;object&amp;quot; type=&amp;quot;o&amp;quot; /&amp;gt;&lt;br /&gt;
      			&amp;lt;arg name=&amp;quot;interfaces&amp;quot; type=&amp;quot;a{sa{sv}}&amp;quot; /&amp;gt;&lt;br /&gt;
      		&amp;lt;/signal&amp;gt;&lt;br /&gt;
      		&amp;lt;signal name=&amp;quot;InterfacesRemoved&amp;quot;&amp;gt;&lt;br /&gt;
      			&amp;lt;arg name=&amp;quot;object&amp;quot; type=&amp;quot;o&amp;quot; /&amp;gt;&lt;br /&gt;
      			&amp;lt;arg name=&amp;quot;interfaces&amp;quot; type=&amp;quot;as&amp;quot; /&amp;gt;&lt;br /&gt;
      		&amp;lt;/signal&amp;gt;&lt;br /&gt;
      	&amp;lt;/interface&amp;gt;&lt;br /&gt;
      	&amp;lt;node name=&amp;quot;org&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To generate the TQt C++ classes use dbusxml2qt3 (Note: [https://bugs.trinitydesktop.org/show_bug.cgi?id=2925|bug-2925])&lt;br /&gt;
&lt;br /&gt;
      $ /usr/bin/dbusxml2qt3 objectmanager.xml&lt;br /&gt;
      ClassGenerator: processing interface &amp;#039;org.freedesktop.DBus.ObjectManager&amp;#039;&lt;br /&gt;
      Generating org.freedesktop.DBus.Introspectable on demand&lt;br /&gt;
&lt;br /&gt;
in the second step generate the proxy with unique namespace to fit your application&lt;br /&gt;
&lt;br /&gt;
      $/usr/bin/dbusxml2qt3 objectmanager.xml -p -N MyNameSpace::Proxy&lt;br /&gt;
&lt;br /&gt;
      $ ls -1 | grep  -v xml&lt;br /&gt;
      introspectableinterface.cpp&lt;br /&gt;
      introspectableinterface.h&lt;br /&gt;
      objectmanagerinterface.cpp&lt;br /&gt;
      objectmanagerinterface.h&lt;br /&gt;
      objectmanagerproxy.cpp&lt;br /&gt;
      objectmanagerproxy.h&lt;br /&gt;
      org_example_servicenode.cpp&lt;br /&gt;
      org_example_servicenode.h&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we can create our own object manager using the interface from step one, or create our own proxy from step two&lt;br /&gt;
&lt;br /&gt;
[to be completed...]&lt;/div&gt;</summary>
		<author><name>imported&gt;Deloptes</name></author>
	</entry>
</feed>