<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/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="https://maemo.octonezd.me/index.php?action=history&amp;feed=atom&amp;title=Qt4_and_Hildon_home_widget_interaction"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;action=history"/>
	<updated>2026-04-22T05:31:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34506&amp;oldid=prev</id>
		<title>imported_&gt;amigadave: links</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34506&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: #fff; color: #202122;&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 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; id=&quot;mw-diff-left-l2&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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Service ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Service ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&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=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The com.nokia.dlh.service file defines the D-Bus service provided by the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Qt-Maemo|&lt;/ins&gt;Qt4&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;application:&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 style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  [D-BUS Service]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  [D-BUS Service]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported_&gt;amigadave</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34507&amp;oldid=prev</id>
		<title>imported_&gt;dneary: Qt4 And Hildon Home Widget Interaction moved to Qt4 and Hildon home widget interaction</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34507&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;/index.php/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: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:41, 5 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported_&gt;dneary</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34508&amp;oldid=prev</id>
		<title>imported_&gt;torshind: Added categories</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34508&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: #fff; color: #202122;&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 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; id=&quot;mw-diff-left-l51&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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;That&amp;#039;s all!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;That&amp;#039;s all!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;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 style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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; class=&quot;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 style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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; class=&quot;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 style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Qt]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported_&gt;torshind</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34509&amp;oldid=prev</id>
		<title>imported_&gt;torshind: Qt4 And Hildon Home Widget Interaction</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Qt4_and_Hildon_home_widget_interaction&amp;diff=34509&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&amp;#039;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&amp;#039;s slot &amp;#039;&amp;#039;CallStartDialog&amp;#039;&amp;#039; 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&amp;#039;s all!&lt;/div&gt;</summary>
		<author><name>imported_&gt;torshind</name></author>
	</entry>
</feed>