Add Metronome
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user