21 #include "netmidiinput.h" 22 #include "netmidiinput_p.h" 27 NetMIDIInput::NetMIDIInput(
QObject *parent):
29 d(new NetMIDIInputPrivate(this))
32 void NetMIDIInput::initialize(QSettings *settings)
34 d->initialize(settings);
37 QString NetMIDIInput::backendName()
39 return QLatin1String(
"Network");
42 QString NetMIDIInput::publicName()
44 return d->m_publicName;
47 void NetMIDIInput::setPublicName(QString name)
49 d->m_publicName = name;
52 QStringList NetMIDIInput::connections(
bool advanced)
55 return d->m_inputDevices;
58 void NetMIDIInput::setExcludedConnections(QStringList conns)
60 d->m_excludedNames = conns;
63 void NetMIDIInput::open(QString name)
68 void NetMIDIInput::close()
73 QString NetMIDIInput::currentConnection()
75 return d->m_currentInput;
78 void NetMIDIInput::setMIDIThruDevice(MIDIOutput *device)
80 d->setMIDIThruDevice(device);
83 void NetMIDIInput::enableMIDIThru(
bool enable)
85 d->m_thruEnabled = enable;
88 bool NetMIDIInput::isEnabledMIDIThru()
90 return d->m_thruEnabled && (d->m_out != 0);
The QObject class is the base class of all Qt objects.