<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DBUS Array &amp; Dict]]></title><description><![CDATA[<p dir="auto">Hi Qt Community,</p>
<p dir="auto">I try to implement the <a href="http://Freedesktop.org" target="_blank" rel="noopener noreferrer nofollow ugc">Freedesktop.org</a> Notification Specifications as a small Qt library. It uses DBUS.<br />
GetCapabilities, GetServerInformation etc works fine, but I've got some problems with the most important part, the notify:<br />
<a href="http://www.galago-project.org/specs/notification/0.9/x408.html#command-notify" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.galago-project.org/specs/notification/0.9/x408.html#command-notify</a></p>
<p dir="auto">I'm not able to create a DBUS Array and Dict. I've tried with QDBusArgument, but I don't understand how it works for more complex data types. Can somebody please give me an example of how to build an Array of String for QDBus and a Dict as described here: <a href="http://www.galago-project.org/specs/notification/0.9/x344.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.galago-project.org/specs/notification/0.9/x344.html</a></p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.qt.io/topic/20115/dbus-array-dict</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 15:22:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/20115.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Sep 2012 08:22:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DBUS Array &amp; Dict on Tue, 25 Sep 2012 09:05:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">In case of Array of Strings, so DBus signature 'as ' Qt does all job for you. It is enough if you use QStringList as a type of your variable.</p>
<p dir="auto">In case of most complex data like some structures with strings and integers etc. I think that you should define your own structure, create read/write operators for it, declare it as a new metatype and it should work.</p>
<p dir="auto">Some documentation about it "QDBusArgument":<a href="http://doc.qt.digia.com/4.7-snapshot/qdbusargument.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.digia.com/4.7-snapshot/qdbusargument.html</a></p>
<p dir="auto">But you can also start from XML definition and then use code generation to genereate proxy client of your DBus methods. "Some documents":<a href="http://www.developer.nokia.com/Community/Wiki/QtDbus_quick_tutorial" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.developer.nokia.com/Community/Wiki/QtDbus_quick_tutorial</a></p>
<p dir="auto">BR,</p>
]]></description><link>https://forum.qt.io/post/152809</link><guid isPermaLink="true">https://forum.qt.io/post/152809</guid><dc:creator><![CDATA[guziemic]]></dc:creator><pubDate>Tue, 25 Sep 2012 09:05:08 GMT</pubDate></item></channel></rss>