40 #ifndef DBUS_DISPATCHER_H_
41 #define DBUS_DISPATCHER_H_
44 #include <dbus-cpp/dbus.h>
45 #include <dbus-cpp/connection.h>
47 #include <dbus-c++/dbus.h>
48 #include <dbus-c++/connection.h>
75 class Watch :
public DBus::Watch {
82 DBus::Slot<void, Watch &>
ready;
107 DBus::Timeout *
add_timeout(DBus::Timeout::Internal *);
110 DBus::Watch *
add_watch(DBus::Watch::Internal *);
void enter()
pure virtual functions from Dispatcher
Timeout(DBus::Timeout::Internal *, Dispatcher *)
DBus::Slot< void, Timeout & > expired
void rem_timeout(DBus::Timeout *)
DBus::DefaultMutex _mutex_w
std::list< Timeout * > _timeouts
void do_iteration()
helper function
void timeout_expired(Timeout &)
DBus::DefaultMutex _mutex_t
DBus::Slot< void, Watch & > ready
Watch(DBus::Watch::Internal *, Dispatcher *)
DBus::Watch * add_watch(DBus::Watch::Internal *)
void watch_ready(Watch &)
DBus::Timeout * add_timeout(DBus::Timeout::Internal *)
void rem_watch(DBus::Watch *)
std::list< Watch * > _watches