DBus::DefaultTimeout Class Reference
#include <eventloop.h>
Public Member Functions | |
DefaultTimeout (int interval, bool repeat, DefaultMainLoop *) | |
virtual | ~DefaultTimeout () |
bool | enabled () |
void | enabled (bool e) |
int | interval () |
void | interval (int i) |
bool | repeat () |
void | repeat (bool r) |
void * | data () |
void | data (void *d) |
Public Attributes | |
Slot< void, DefaultTimeout & > | expired |
Private Attributes | |
bool | _enabled |
int | _interval |
bool | _repeat |
double | _expiration |
void * | _data |
DefaultMainLoop * | _disp |
Friends | |
class | DefaultMainLoop |
Detailed Description
Definition at line 46 of file eventloop.h.
Constructor & Destructor Documentation
DefaultTimeout::DefaultTimeout | ( | int | interval, | |
bool | repeat, | |||
DefaultMainLoop * | ed | |||
) |
Definition at line 44 of file eventloop.cpp.
References _disp, _expiration, DBus::DefaultMainLoop::_mutex_t, DBus::DefaultMainLoop::_timeouts, DBus::DefaultMutex::lock(), millis(), and DBus::DefaultMutex::unlock().
DefaultTimeout::~DefaultTimeout | ( | ) | [virtual] |
Definition at line 57 of file eventloop.cpp.
References _disp, DBus::DefaultMainLoop::_mutex_t, DBus::DefaultMainLoop::_timeouts, DBus::DefaultMutex::lock(), and DBus::DefaultMutex::unlock().
Member Function Documentation
void DBus::DefaultTimeout::data | ( | void * | d | ) | [inline] |
Definition at line 85 of file eventloop.h.
void* DBus::DefaultTimeout::data | ( | ) | [inline] |
Definition at line 81 of file eventloop.h.
Referenced by DBus::BusDispatcher::add_timeout(), and DBus::BusDispatcher::timeout_expired().
void DBus::DefaultTimeout::enabled | ( | bool | e | ) | [inline] |
Definition at line 58 of file eventloop.h.
bool DBus::DefaultTimeout::enabled | ( | ) | [inline] |
Definition at line 54 of file eventloop.h.
void DBus::DefaultTimeout::interval | ( | int | i | ) | [inline] |
Definition at line 67 of file eventloop.h.
int DBus::DefaultTimeout::interval | ( | ) | [inline] |
Definition at line 63 of file eventloop.h.
void DBus::DefaultTimeout::repeat | ( | bool | r | ) | [inline] |
Definition at line 76 of file eventloop.h.
bool DBus::DefaultTimeout::repeat | ( | ) | [inline] |
Definition at line 72 of file eventloop.h.
Friends And Related Function Documentation
friend class DefaultMainLoop [friend] |
Definition at line 105 of file eventloop.h.
Member Data Documentation
void* DBus::DefaultTimeout::_data [private] |
Definition at line 101 of file eventloop.h.
DefaultMainLoop* DBus::DefaultTimeout::_disp [private] |
Definition at line 103 of file eventloop.h.
Referenced by DefaultTimeout(), and ~DefaultTimeout().
bool DBus::DefaultTimeout::_enabled [private] |
Definition at line 94 of file eventloop.h.
double DBus::DefaultTimeout::_expiration [private] |
Definition at line 99 of file eventloop.h.
Referenced by DefaultTimeout().
int DBus::DefaultTimeout::_interval [private] |
Definition at line 96 of file eventloop.h.
bool DBus::DefaultTimeout::_repeat [private] |
Definition at line 97 of file eventloop.h.
Definition at line 90 of file eventloop.h.
Referenced by DBus::BusDispatcher::add_timeout().
The documentation for this class was generated from the following files: