Add Disconnect Method
This commit is contained in:
+6
-1
@@ -27,7 +27,12 @@ public:
|
|||||||
Metronome(Quantity::type quantity, int amount);
|
Metronome(Quantity::type quantity, int amount);
|
||||||
~Metronome();
|
~Metronome();
|
||||||
|
|
||||||
size_t Connect(std::function<void()> function);
|
public:
|
||||||
|
typedef std::function<void()> CallbackMethod;
|
||||||
|
|
||||||
|
public:
|
||||||
|
size_t Connect(CallbackMethod function);
|
||||||
|
void Disconnect(size_t connection);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<MetronomeImpl> m_pMetronomeImpl;
|
std::unique_ptr<MetronomeImpl> m_pMetronomeImpl;
|
||||||
|
|||||||
Reference in New Issue
Block a user