[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Porting to D-Bus
From: Thiago Macieira <thiago () kde ! org>
Date: 2006-07-16 0:36:46
Message-ID: 200607160236.47136.thiago () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
David Jarvie wrote:
>I'm fine about the CMakeLists.txt entries required for building the IDL
> XML files. My question is how to _code_ D-Bus calls without using
> QDBusInterface.
Use the class that dbusxml2cpp generates for you.
For example, instead of:
QDBusInterface iface(service(), path(), "org.kde.MyIface",
QDBus::sessionBus());
iface.call("myMethod", 1, 42U, qVariantFromValue(QDBusVariant("Hello")));
you'd write:
org::kde:MyIface iface(service(), path(), QDBus::sessionBus());
iface.myMethod(1, 42, "Hello");
property accessing and signal connecting stay the same.
--
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