|
|
Choosing A Webhost: |
Re: DBus Qt bindings: msg#00059freedesktop.dbus
Hi... On Mon, 26 Jan 2004 12:37 pm, you wrote: > On Sunday 25 January 2004 20:14, you wrote: > > Did you ever actually succeed in making the code that is there work? > > Or was it still under development? > > It's under development but it's already working fine. I know people who > are actually already using it. (Also CC'ing the list since I have finally been able to subscribe) The qt code in CVS does not compile or link at the moment: i) qt/message.cpp needs a #include <cstdlib> since it uses malloc() ii) The dbus qt library has no implementation of Connection::virtual_hook(), so it cannot be linked against. As I understand it this should just be a stub. What I'm really after is a Qt version of the glib interface function dbus_connection_setup_with_g_main(). I am not interested in actually using dbus from C++ with Qt myself, rather I am trying to make dbus's python bindings work in the same script as a PyQt interface. This currently does not work due to the need for two event loops. My first approximation to this is: extern "C" { void dbus_connection_setup_with_qt_main (DBusConnection *connection) { // FIXME: actually store the integrator somewhere and dispose of it as // necessary =) new DBusQt::Internal::Integrator(connection, NULL); } } Unfortunately this doesn't seem to work - I tried a modified version of tools/dbus-monitor using this function and a QApplication but no messages seem to be delivered. My suspicion is that dbus_connection_dispatch() is not being called. Any suggestions? =) Peter
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Activation: new draft, Richard Hult |
|---|---|
| Next by Date: | Re: DBus Qt bindings, Daniel Stone |
| Previous by Thread: | Activation: new draft, Richard Hult |
| Next by Thread: | Re: DBus Qt bindings, Daniel Stone |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|