DBus::DefaultWatch Class Reference
#include <eventloop.h>
Public Member Functions | |
DefaultWatch (int fd, int flags, DefaultMainLoop *) | |
virtual | ~DefaultWatch () |
bool | enabled () |
void | enabled (bool e) |
int | descriptor () |
int | flags () |
void | flags (int f) |
int | state () |
void * | data () |
void | data (void *d) |
Public Attributes | |
Slot< void, DefaultWatch & > | ready |
Private Attributes | |
bool | _enabled |
int | _fd |
int | _flags |
int | _state |
void * | _data |
DefaultMainLoop * | _disp |
Friends | |
class | DefaultMainLoop |
Detailed Description
Definition at line 110 of file eventloop.h.
Constructor & Destructor Documentation
DefaultWatch::DefaultWatch | ( | int | fd, | |
int | flags, | |||
DefaultMainLoop * | ed | |||
) |
Definition at line 64 of file eventloop.cpp.
References _disp, DBus::DefaultMainLoop::_mutex_w, DBus::DefaultMainLoop::_watches, DBus::DefaultMutex::lock(), and DBus::DefaultMutex::unlock().
DefaultWatch::~DefaultWatch | ( | ) | [virtual] |
Definition at line 72 of file eventloop.cpp.
References _disp, DBus::DefaultMainLoop::_mutex_w, DBus::DefaultMainLoop::_watches, DBus::DefaultMutex::lock(), and DBus::DefaultMutex::unlock().
Member Function Documentation
void DBus::DefaultWatch::data | ( | void * | d | ) | [inline] |
Definition at line 150 of file eventloop.h.
void* DBus::DefaultWatch::data | ( | ) | [inline] |
Definition at line 146 of file eventloop.h.
Referenced by DBus::BusDispatcher::add_watch(), and DBus::BusDispatcher::watch_ready().
int DBus::DefaultWatch::descriptor | ( | ) | [inline] |
Definition at line 127 of file eventloop.h.
void DBus::DefaultWatch::enabled | ( | bool | e | ) | [inline] |
Definition at line 122 of file eventloop.h.
bool DBus::DefaultWatch::enabled | ( | ) | [inline] |
Definition at line 118 of file eventloop.h.
void DBus::DefaultWatch::flags | ( | int | f | ) | [inline] |
Definition at line 136 of file eventloop.h.
int DBus::DefaultWatch::flags | ( | ) | [inline] |
Definition at line 132 of file eventloop.h.
int DBus::DefaultWatch::state | ( | ) | [inline] |
Definition at line 141 of file eventloop.h.
Friends And Related Function Documentation
friend class DefaultMainLoop [friend] |
Definition at line 169 of file eventloop.h.
Member Data Documentation
void* DBus::DefaultWatch::_data [private] |
Definition at line 165 of file eventloop.h.
DefaultMainLoop* DBus::DefaultWatch::_disp [private] |
Definition at line 167 of file eventloop.h.
Referenced by DefaultWatch(), and ~DefaultWatch().
bool DBus::DefaultWatch::_enabled [private] |
Definition at line 159 of file eventloop.h.
int DBus::DefaultWatch::_fd [private] |
Definition at line 161 of file eventloop.h.
int DBus::DefaultWatch::_flags [private] |
Definition at line 162 of file eventloop.h.
int DBus::DefaultWatch::_state [private] |
Definition at line 163 of file eventloop.h.
Slot<void, DefaultWatch &> DBus::DefaultWatch::ready |
Definition at line 155 of file eventloop.h.
Referenced by DBus::BusDispatcher::add_watch().
The documentation for this class was generated from the following files: