Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
GManager::Heartbeat Class Reference

A software clock that emits a signal every 500ms. More...

#include <Heartbeat.hh>

Inheritance diagram for GManager::Heartbeat:
[legend]
Collaboration diagram for GManager::Heartbeat:
[legend]

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.

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

Get the current value.

Returns:

Pause incrementing.

Start incrementing.

Reset value to 0.

void GManager::Heartbeat::set ( double  val)

Set the current value.

Parameters:
val

Register to the hearbeat signal.

The prototype is void on_heartbeat(double time)

Returns:
A sigc::connection, call connect() on it

The documentation for this class was generated from the following file: