Add Metronome

This commit is contained in:
2020-06-10 09:28:55 +02:00
parent ce54201e47
commit e7d247ca42
4 changed files with 177 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
#ifndef METRONOME_H
#define METRONOME_H
#include <memory>
#include <functional>
namespace Timer {
class MetronomeImpl;
class Metronome
{
public:
class Quantity
{
public:
enum type
{
Hours,
Minutes,
Seconds
};
};
public:
Metronome(Quantity::type quantity, int amount);
~Metronome();
size_t Connect(std::function<void()> function);
private:
std::unique_ptr<MetronomeImpl> m_pMetronomeImpl;
};
} // namespace Timer
#endif // METRONOME_H