score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
MIDIDevice.hpp
1
#pragma once
2
#include <Device/Protocol/DeviceInterface.hpp>
3
4
namespace
Protocols
5
{
6
class
MidiKeyboardEventFilter;
7
class
MIDIDevice
final :
public
Device::OwningDeviceInterface
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
}
Device::OwningDeviceInterface
Definition
DeviceInterface.hpp:185
Protocols::MIDIDevice
Definition
MIDIDevice.hpp:8
Protocols::MidiKeyboardEventFilter
Definition
MIDIKeyboardEventFilter.linux.hpp:15
TreeNode< DeviceExplorerNode >
Device::DeviceSettings
Definition
DeviceSettings.hpp:20