| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #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();
- public:
- typedef std::function<void()> CallbackMethod;
- public:
- size_t Connect(CallbackMethod function);
- void Disconnect(size_t connection);
- private:
- std::unique_ptr<MetronomeImpl> m_pMetronomeImpl;
- };
- } // namespace Timer
- #endif // METRONOME_H
|