eventloop-integration.cpp
Go to the documentation of this file.
132Pipe *BusDispatcher::add_pipe(void(*handler)(const void *data, void *buffer, unsigned int nbyte), const void *data)
156 bt->expired = new Callback<BusDispatcher, void, DefaultTimeout &>(this, &BusDispatcher::timeout_expired);
179 bw->ready = new Callback<BusDispatcher, void, DefaultWatch &>(this, &BusDispatcher::watch_ready);
183 bw, ((Watch *)bw)->enabled() ? "on" : "off", ((Watch *)bw)->descriptor(), ((Watch *)bw)->flags());
Definition: eventloop-integration.h:63
virtual Pipe * add_pipe(void(*handler)(const void *data, void *buffer, unsigned int nbyte), const void *data)
Definition: eventloop-integration.cpp:132
virtual void do_iteration()
Definition: eventloop-integration.cpp:146
virtual void del_pipe(Pipe *pipe)
Definition: eventloop-integration.cpp:140
void watch_ready(DefaultWatch &)
Definition: eventloop-integration.cpp:204
virtual Timeout * add_timeout(Timeout::Internal *)
Definition: eventloop-integration.cpp:152
virtual void rem_watch(Watch *)
Definition: eventloop-integration.cpp:188
void timeout_expired(DefaultTimeout &)
Definition: eventloop-integration.cpp:195
virtual void rem_timeout(Timeout *)
Definition: eventloop-integration.cpp:168
virtual Watch * add_watch(Watch::Internal *)
Definition: eventloop-integration.cpp:175
Definition: eventloop-integration.h:45
Definition: eventloop-integration.h:54
BusWatch(Watch::Internal *, BusDispatcher *)
Definition: eventloop-integration.cpp:59
Definition: util.h:272
Definition: eventloop.h:47
Definition: eventloop.h:111
Definition: error.h:40
Definition: pipe.h:37
void(* _handler)(const void *data, void *buffer, unsigned int nbyte)
Definition: pipe.h:56
Definition: dispatcher.h:36
Definition: dispatcher.h:87
int flags() const
Gets flags from DBusWatchFlags indicating what conditions should be monitored on the file descriptor.
Definition: dispatcher.cpp:86
bool handle(int flags)
Called to notify the D-Bus library when a previously-added watch is ready for reading or writing,...
Definition: dispatcher.cpp:96
Definition: connection_p.h:42
std::string toString(const T &thing, int w=0, int p=0)
create std::string from any number
Definition: util.h:294