Ardour
9.0-pre0-582-g084a23a80d
|
#include <timer.h>
Public Member Functions | |
Timer (unsigned int interval, const Glib::RefPtr< Glib::MainContext > &main_context) | |
unsigned int | get_interval () const |
void | set_interval (unsigned int new_interval) |
virtual unsigned int | connection_count () const =0 |
void | suspend () |
void | resume () |
Protected Member Functions | |
virtual | ~Timer () |
void | start () |
void | stop () |
virtual bool | on_elapsed ()=0 |
bool | suspended () const |
Private Member Functions | |
Timer (const Timer &) | |
Timer & | operator= (const Timer &) |
bool | timeout_handler () |
Static Private Member Functions | |
static gboolean | _timeout_handler (void *data) |
Private Attributes | |
GSource * | m_timeout_source |
unsigned int | m_timeout_interval |
const Glib::RefPtr< Glib::MainContext > | m_main_context |
bool | m_suspended |
The Timer class is a wrapper around Glib TimeoutSources The Timer will start automatically when the first connection is made and stop when the last callback is disconnected.
Definition at line 35 of file pbd/pbd/timer.h.
PBD::Timer::Timer | ( | unsigned int | interval, |
const Glib::RefPtr< Glib::MainContext > & | main_context | ||
) |
|
inlineprotectedvirtual |
Definition at line 53 of file pbd/pbd/timer.h.
|
private |
|
staticprivate |
|
pure virtual |
Implemented in PBD::BlinkTimer, and PBD::StandardTimer.
unsigned int PBD::Timer::get_interval | ( | ) | const |
|
protectedpure virtual |
Implemented in PBD::BlinkTimer, and PBD::StandardTimer.
|
inline |
Definition at line 49 of file pbd/pbd/timer.h.
void PBD::Timer::set_interval | ( | unsigned int | new_interval | ) |
|
protected |
|
protected |
|
inline |
Definition at line 48 of file pbd/pbd/timer.h.
|
inlineprotected |
Definition at line 61 of file pbd/pbd/timer.h.
|
private |
|
private |
Definition at line 78 of file pbd/pbd/timer.h.
|
private |
Definition at line 80 of file pbd/pbd/timer.h.
|
private |
Definition at line 76 of file pbd/pbd/timer.h.
|
private |
Definition at line 74 of file pbd/pbd/timer.h.