<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://bugs.maemo.com/skins/common/feed.css?207"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://bugs.maemo.com/index.php?action=history&amp;feed=atom&amp;title=Qt4_and_Hildon_home_widget_interaction</id>
		<title>Qt4 and Hildon home widget interaction - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://bugs.maemo.com/index.php?action=history&amp;feed=atom&amp;title=Qt4_and_Hildon_home_widget_interaction"/>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;action=history"/>
		<updated>2026-04-25T09:49:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.15.5-7</generator>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=32782&amp;oldid=prev</id>
		<title>amigadave:&amp;#32;links</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=32782&amp;oldid=prev"/>
				<updated>2010-04-15T11:28:41Z</updated>
		
		<summary type="html">&lt;p&gt;links&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 11:28, 15 April 2010&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Service ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Service ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The com.nokia.dlh.service file defines the D-Bus service provided by the Qt4 application:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The com.nokia.dlh.service file defines the D-Bus service provided by the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Qt-Maemo|&lt;/ins&gt;Qt4&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;application:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; [D-BUS Service]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; [D-BUS Service]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-25 09:49:29 --&gt;
&lt;/table&gt;</summary>
		<author><name>amigadave</name></author>	</entry>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=28402&amp;oldid=prev</id>
		<title>dneary:&amp;#32;Qt4 And Hildon Home Widget Interaction moved to Qt4 and Hildon home widget interaction</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=28402&amp;oldid=prev"/>
				<updated>2010-02-05T10:41:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Qt4_And_Hildon_Home_Widget_Interaction&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Qt4 And Hildon Home Widget Interaction (page does not exist)&quot;&gt;Qt4 And Hildon Home Widget Interaction&lt;/a&gt; moved to &lt;a href=&quot;/Qt4_and_Hildon_home_widget_interaction&quot; title=&quot;Qt4 and Hildon home widget interaction&quot;&gt;Qt4 and Hildon home widget interaction&lt;/a&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:41, 5 February 2010&lt;/td&gt;
		&lt;/tr&gt;
		&lt;!-- diff generator: internal 2026-04-25 09:49:30 --&gt;
&lt;/table&gt;</summary>
		<author><name>dneary</name></author>	</entry>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=28386&amp;oldid=prev</id>
		<title>torshind:&amp;#32;Added categories</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=28386&amp;oldid=prev"/>
				<updated>2010-02-04T22:43:06Z</updated>
		
		<summary type="html">&lt;p&gt;Added categories&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:43, 4 February 2010&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;That's all!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;That's all!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Development]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Qt]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-25 09:49:30 --&gt;
&lt;/table&gt;</summary>
		<author><name>torshind</name></author>	</entry>

	<entry>
		<id>http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=28385&amp;oldid=prev</id>
		<title>torshind:&amp;#32;Qt4 And Hildon Home Widget Interaction</title>
		<link rel="alternate" type="text/html" href="http://bugs.maemo.com/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=28385&amp;oldid=prev"/>
				<updated>2010-02-04T22:33:08Z</updated>
		
		<summary type="html">&lt;p&gt;Qt4 And Hildon Home Widget Interaction&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The code in this wiki page is taken from the [http://maemo.org/packages/view/dlh/ dlh application] and the [http://maemo.org/packages/view/dlh-widget/ dlh widget]. Since it is FOSS, the source code is available for anyone to adapt freely.&lt;br /&gt;
&lt;br /&gt;
== Service ==&lt;br /&gt;
The com.nokia.dlh.service file defines the D-Bus service provided by the Qt4 application:&lt;br /&gt;
&lt;br /&gt;
 [D-BUS Service]&lt;br /&gt;
 Name=com.nokia.dlh&lt;br /&gt;
 Exec=/opt/maemo/usr/bin/dlh&lt;br /&gt;
&lt;br /&gt;
There's a reference to this service in the dlh.desktop file too:&lt;br /&gt;
 X-Osso-Service=com.nokia.dlh&lt;br /&gt;
&lt;br /&gt;
== Application ==&lt;br /&gt;
&lt;br /&gt;
In the class definition of the objects which will interact with the home widget you need the Q_CLASSINFO macro:&lt;br /&gt;
&lt;br /&gt;
 class Widget : public QWidget&lt;br /&gt;
 {&lt;br /&gt;
     Q_OBJECT&lt;br /&gt;
     Q_CLASSINFO(&amp;quot;D-Bus Interface&amp;quot;, &amp;quot;com.nokia.dlh&amp;quot;)&lt;br /&gt;
     [...]&lt;br /&gt;
&lt;br /&gt;
The slots have the same name of the D-Bus messages; Q_NOREPLY mark a method to be called and not wait for it to finish processing before returning (see Qt docs):&lt;br /&gt;
&lt;br /&gt;
 Q_NOREPLY void CallStartDialog();&lt;br /&gt;
&lt;br /&gt;
The class constructor contains the service and the object registration:&lt;br /&gt;
&lt;br /&gt;
 QDBusConnection::sessionBus().registerService(&amp;quot;com.nokia.dlh&amp;quot;);&lt;br /&gt;
 QDBusConnection::sessionBus().registerObject(&amp;quot;/com/nokia/dlh&amp;quot;,this, QDBusConnection::ExportAllContents);&lt;br /&gt;
&lt;br /&gt;
== Home Widget ==&lt;br /&gt;
&lt;br /&gt;
Some defines:&lt;br /&gt;
&lt;br /&gt;
 #define DLH_SERVICE &amp;quot;com.nokia.dlh&amp;quot;&lt;br /&gt;
 #define DLH_OBJECT  &amp;quot;/com/nokia/dlh&amp;quot;&lt;br /&gt;
 #define DLH_IFACE   &amp;quot;com.nokia.dlh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In the init function you have to initialize the osso library (see [http://maemo.org/api_refs/5.0/5.0-final/libosso/ libosso docs]):&lt;br /&gt;
&lt;br /&gt;
 osso_context = osso_initialize (&amp;quot;com.nokia.dlh-widget&amp;quot;, &amp;quot;0.1&amp;quot;, 0, NULL);&lt;br /&gt;
&lt;br /&gt;
When you want to execute the Qt object's slot ''CallStartDialog'' from the home widget you will use the following instruction:&lt;br /&gt;
&lt;br /&gt;
 osso_rpc_run(osso_context,&lt;br /&gt;
              DLH_SERVICE,&lt;br /&gt;
              DLH_OBJECT,&lt;br /&gt;
              DLH_IFACE,&lt;br /&gt;
              &amp;quot;CallStartDialog&amp;quot;, NULL, DBUS_TYPE_INVALID);&lt;br /&gt;
&lt;br /&gt;
That's all!&lt;/div&gt;</summary>
		<author><name>torshind</name></author>	</entry>

	</feed>