MIDIDevice.hpp
1 #pragma once
2 #include <Device/Protocol/DeviceInterface.hpp>
3 
4 namespace Protocols
5 {
6 class MidiKeyboardEventFilter;
8 {
9 public:
10  MIDIDevice(
11  const Device::DeviceSettings& settings,
12  const ossia::net::network_context_ptr& ctx);
13  ~MIDIDevice();
14 
15  bool reconnect() override;
16 
17  void disconnect() override;
18 
19  QMimeData* mimeData() const override;
20 
21  using OwningDeviceInterface::refresh;
22  Device::Node refresh() override;
23 
24  bool isLearning() const final override;
25  void setLearning(bool) final override;
26 
27 private:
28  const ossia::net::network_context_ptr& m_ctx;
29  MidiKeyboardEventFilter* m_kbdfilter{};
30 };
31 }
Definition: DeviceInterface.hpp:185
Definition: MIDIDevice.hpp:8
Definition: MIDIDevice.cpp:37
Definition: DeviceSettings.hpp:20