|
Freya
0.0.1
A Gtk3 MPD Client
|
A software clock that emits a signal every 500ms. More...
#include <Heartbeat.hh>
Public Member Functions | |
| Heartbeat (MPD::Client &client) | |
| ~Heartbeat () | |
| TimerNotifier & | signal_client_update () |
| Register to the hearbeat signal. | |
| void | play () |
| Start incrementing. | |
| void | pause () |
| Pause incrementing. | |
| void | reset () |
| Reset value to 0. | |
| void | set (double val) |
| Set the current value. | |
| double | get () |
| Get the current value. | |
A software clock that emits a signal every 500ms.
It is used for all classes that need to show the current time, Freya does not requery the MPD Status like other clients do.
Definition at line 50 of file Heartbeat.hh.
| GManager::Heartbeat::Heartbeat | ( | MPD::Client & | client | ) |
| double GManager::Heartbeat::get | ( | ) |
Get the current value.
| void GManager::Heartbeat::pause | ( | ) |
Pause incrementing.
| void GManager::Heartbeat::play | ( | ) |
Start incrementing.
| void GManager::Heartbeat::reset | ( | ) |
Reset value to 0.
| void GManager::Heartbeat::set | ( | double | val | ) |
Set the current value.
| val |
Register to the hearbeat signal.
The prototype is void on_heartbeat(double time)
1.8.0