DBus::BusDispatcher Class Reference
#include <eventloop-integration.h>
Public Member Functions | |
BusDispatcher () | |
~BusDispatcher () | |
virtual void | enter () |
virtual void | leave () |
virtual Pipe * | add_pipe (void(*handler)(const void *data, void *buffer, unsigned int nbyte), const void *data) |
virtual void | del_pipe (Pipe *pipe) |
virtual void | do_iteration () |
virtual Timeout * | add_timeout (Timeout::Internal *) |
virtual void | rem_timeout (Timeout *) |
virtual Watch * | add_watch (Watch::Internal *) |
virtual void | rem_watch (Watch *) |
void | watch_ready (DefaultWatch &) |
void | timeout_expired (DefaultTimeout &) |
Private Attributes | |
bool | _running |
int | _pipe [2] |
std::list< Pipe * > | pipe_list |
Detailed Description
Definition at line 62 of file eventloop-integration.h.
Constructor & Destructor Documentation
BusDispatcher::BusDispatcher | ( | ) |
Definition at line 79 of file eventloop-integration.cpp.
References DBus::DefaultMainLoop::_fdunlock, _pipe, and DBus::toString().
DBus::BusDispatcher::~BusDispatcher | ( | ) | [inline] |
Definition at line 67 of file eventloop-integration.h.
Member Function Documentation
Pipe * BusDispatcher::add_pipe | ( | void(*)(const void *data, void *buffer, unsigned int nbyte) | handler, | |
const void * | data | |||
) | [virtual] |
Definition at line 131 of file eventloop-integration.cpp.
References pipe_list.
Timeout * BusDispatcher::add_timeout | ( | Timeout::Internal * | ti | ) | [virtual] |
Implements DBus::Dispatcher.
Definition at line 151 of file eventloop-integration.cpp.
References DBus::DefaultTimeout::data(), DBus::debug_log, DBus::DefaultTimeout::expired, and timeout_expired().
Watch * BusDispatcher::add_watch | ( | Watch::Internal * | wi | ) | [virtual] |
Implements DBus::Dispatcher.
Definition at line 174 of file eventloop-integration.cpp.
References DBus::DefaultWatch::data(), DBus::debug_log, DBus::DefaultWatch::ready, and watch_ready().
void BusDispatcher::del_pipe | ( | Pipe * | pipe | ) | [virtual] |
Definition at line 139 of file eventloop-integration.cpp.
References pipe_list.
void BusDispatcher::do_iteration | ( | ) | [virtual] |
Definition at line 145 of file eventloop-integration.cpp.
References DBus::DefaultMainLoop::dispatch(), and DBus::Dispatcher::dispatch_pending().
Referenced by enter().
void BusDispatcher::enter | ( | ) | [virtual] |
Implements DBus::Dispatcher.
Definition at line 91 of file eventloop-integration.cpp.
References DBus::Pipe::_data, DBus::Pipe::_handler, _running, DBus::debug_log, do_iteration(), pipe_list, and DBus::Pipe::read().
void BusDispatcher::leave | ( | ) | [virtual] |
Implements DBus::Dispatcher.
Definition at line 120 of file eventloop-integration.cpp.
References DBus::DefaultMainLoop::_fdunlock, _running, and DBus::toString().
void BusDispatcher::rem_timeout | ( | Timeout * | t | ) | [virtual] |
Implements DBus::Dispatcher.
Definition at line 167 of file eventloop-integration.cpp.
References DBus::debug_log.
void BusDispatcher::rem_watch | ( | Watch * | w | ) | [virtual] |
Implements DBus::Dispatcher.
Definition at line 187 of file eventloop-integration.cpp.
References DBus::debug_log.
void BusDispatcher::timeout_expired | ( | DefaultTimeout & | et | ) |
Definition at line 194 of file eventloop-integration.cpp.
References DBus::DefaultTimeout::data(), DBus::debug_log, and DBus::Timeout::handle().
Referenced by add_timeout().
void BusDispatcher::watch_ready | ( | DefaultWatch & | ew | ) |
Definition at line 203 of file eventloop-integration.cpp.
References DBus::DefaultWatch::data(), DBus::debug_log, and DBus::Watch::handle().
Referenced by add_watch().
Member Data Documentation
int DBus::BusDispatcher::_pipe[2] [private] |
Definition at line 93 of file eventloop-integration.h.
Referenced by BusDispatcher().
bool DBus::BusDispatcher::_running [private] |
Definition at line 92 of file eventloop-integration.h.
std::list<Pipe *> DBus::BusDispatcher::pipe_list [private] |
Definition at line 94 of file eventloop-integration.h.
Referenced by add_pipe(), del_pipe(), and enter().
The documentation for this class was generated from the following files: