diff options
| author | Harald Fernengel <harry@kdevelop.org> | 2004-09-04 15:09:48 +0000 | 
|---|---|---|
| committer | Harald Fernengel <harry@kdevelop.org> | 2004-09-04 15:09:48 +0000 | 
| commit | 970414569e3cbd6e2d99a3bd38129448a31a8f98 (patch) | |
| tree | 7aba5ff0ee1eb1609a1f57bd94f0ce2edea0bb01 /qt/integrator.cpp | |
| parent | 4a77a2dd972e817a08a4571220c8406709af8c48 (diff) | |
patch by Jérôme Lodewyck <lodewyck@clipper.ens.fr> to enable integration
of an existing connection into the Qt main loop
Diffstat (limited to 'qt/integrator.cpp')
| -rw-r--r-- | qt/integrator.cpp | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/qt/integrator.cpp b/qt/integrator.cpp index 5cf72644..fff32b39 100644 --- a/qt/integrator.cpp +++ b/qt/integrator.cpp @@ -162,13 +162,18 @@ Integrator::Integrator( DBusServer *server, QObject *parent )  void Integrator::slotRead( int fd )  { -  Q_UNUSED( fd ); +  QIntDictIterator<Watch>	it( m_watches ); +  for ( ; it.current(); ++it ) +    dbus_watch_handle ( it.current()->watch, DBUS_WATCH_READABLE ); +    emit readReady();  }  void Integrator::slotWrite( int fd )  { -  Q_UNUSED( fd ); +  QIntDictIterator<Watch>       it( m_watches ); +  for ( ; it.current(); ++it ) +    dbus_watch_handle ( it.current()->watch, DBUS_WATCH_WRITABLE );  }  void Integrator::slotTimeout( DBusTimeout *timeout ) | 
