39 lines
467 B
C++
39 lines
467 B
C++
#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
|