26class MidiInputSelection :
public QObject
30 QString deviceIdentifier READ deviceIdentifier WRITE setDeviceIdentifier
31 NOTIFY deviceIdentifierChanged)
33 int midiChannel READ midiChannel WRITE setMidiChannel NOTIFY
36 QML_UNCREATABLE (
"Created by ProjectUiState")
39 explicit MidiInputSelection (QObject * parent =
nullptr)
40 : QObject (parent) { }
41 ~MidiInputSelection ()
override =
default;
42 Q_DISABLE_COPY_MOVE (MidiInputSelection)
44 QString deviceIdentifier ()
const;
45 void setDeviceIdentifier (
const QString &identifier);
46 Q_SIGNAL
void deviceIdentifierChanged ();
48 int midiChannel ()
const {
return midi_channel_; }
49 void setMidiChannel (
int ch);
50 Q_SIGNAL
void midiChannelChanged ();
53 operator== (
const MidiInputSelection &a,
const MidiInputSelection &b);
56 friend void to_json (nlohmann::json &j,
const MidiInputSelection &sel);
57 friend void from_json (
const nlohmann::json &j, MidiInputSelection &sel);
60 int midi_channel_ = 0;