[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: D-Bus XML format
From:       Thiago Macieira <thiago () kde ! org>
Date:       2006-07-16 0:30:40
Message-ID: 200607160230.40724.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


David Jarvie wrote:
>On Thursday 13 Jul 2006 13:33, Will Stephenson wrote:
>>On Wednesday 12 July 2006 20:55, David Jarvie said:
>>> Is there any documentation about D-Bus IDL XML files? I particularly
>>> want to know what argument types can be specified (i.e. ).
>>
>>http://dbus.freedesktop.org/doc/dbus-specification.html#introspection-f
>>ormat
>>
>>The real type to char mapping (String -> 's' etc) is a bit further up
>> the same doc.
>
>Thanks - just what I was looking for. The only question that remains is
> how to represent the additional Qt types such as QDate which Thiago
> added (see
> http://lists.kde.org/?l=kde-core-devel&m=115064145602147&w=2).

QDate is a (iii) structure. Anywhere where a type signature is expected, 
you can add (iii). But you also need to tell us that it is a QDate.

If we're talking about a property:
	<property name="propname" type="(iii)" access="readwrite">
	  <annotation name="com.trolltech.QtDBus.QtTypeName" value="QDate"/>
	</property>

If it's a method argument, the annotation name must be something like:
	com.trolltech.QtDBus.QtTypeName.In0
	com.trolltech.QtDBus.QtTypeName.Out0
	com.trolltech.QtDBus.QtTypeName.Out1
	etc.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic