org.freedesktop.DBus.GLib.Async GLib specific ?
frederic.heem at telsey.it
Fri Sep 8 04:01:35 PDT 2006
Alle 12:41, venerdì 8 settembre 2006, Thiago Macieira ha scritto:
> frederic heem wrote:
> >There is not yet an annotation for asynchronous call for qt binding and
> > I have no other solution that to modify dbusxml2cpp. We have to agree
> > on an unique name for asynchronous call annotation. Also, the xml
> > interface file has to be the same for client/server glib/qt. It doesn't
> > make sense to use the annotation org.freedesktop.DBus.GLib.Async or
> > org.freedesktop.DBus.Qt.Async or
> > org.freedesktop.DBus.<PutYourFavorityBinding>.Async. The asynchronous
> > property does *not* depend on the binding type, no its name shall not
> > contain the name of the binding.
> There's no such thing as asynchronous for dbusxml2cpp.
Not yet, dbus-binding-tool has these feature, for the my application,
asynchronous call is mandatory. So either I modified dbusxml2cpp to support
asynchronous call or I dropped Qt on the client side use in favor of glib
binding. since I prefer Qt over glib, I'll go for the first solution.
> There's no need to
> modify the tool nor to create a new annotation.
Why ? Could you comment with a valid reason ?
Do you know a project that uses dbus asynchronous call ? So far, google found
only one library that has one occurrence of the annotation
org.freedesktop.DBus.GLib.Async, then looking at the code shows they misused
this keyword, indeed, the notify_daemon_notify_handler is a *synchronous*
call, indeed, dbus_g_method_returns is called inside
So far, no one is really using the asynchronous annotation.
> You want to place a call using callWithCallback.
You missed the whole point, I don't want to write hand written code when a
tool can do it for me in a better and faster way, and without error. The idea
is to use dbusxml2cpp to generate callWithCallback calls automatically.
--- NOTICE ---
CONFIDENTIALITY - This email and any attachments are confidential and are
intended for the addressee only. If you have received this message by
mistake, please contact us immediately and then delete the message from your
system. You must not copy, distribute, disclose or act upon the contents of
this email. Thank you.
PERSONAL DATA PROTECTION (Law by Decree 30. 06.2003 n. 196) - Personal and
corporate data submitted will be used in a correct, transparent and lawful
manner. The data collected will be processed in paper or computerized form for
the performance of contractual and lawful obligations as well as for the
effective management of business relationship. Data may be disclosed, in Italy
or abroad, for the purpose above mentioned to third parties which cooperate
with Telsey, agents, banks, factoring companies, credit recovering companies,
credit insurance companies, professional and consultants, and shipping
companies. In relation to the same purposes, data may be processed by the
following classes of executors or processors: management; administration
department; logistics and purchase department; sales department; post sales
department quality department; R&D department; IT department; legal department.
The data processor is Telsey S.p.A. The data subject may exercise all the
rights set forth in art. 7 of Law by Decree 30. 06.2003 n. 196 as reported in
in the following link http://www.telsey.it/privacy.jsp.
More information about the dbus