drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
|
The BackendManager class manages lists of dynamic and static backends for applications based on drumstick-rt. More...
#include <backendmanager.h>
Public Member Functions | |
BackendManager () | |
BackendManager constructor. More... | |
virtual | ~BackendManager () |
~BackendManager destructor More... | |
void | refresh (QSettings *settings=nullptr) |
refresh the list of backends More... | |
void | refresh (const QVariantMap &map) |
refresh the list of backends More... | |
QList< MIDIInput * > | availableInputs () |
availableInputs More... | |
QList< MIDIOutput * > | availableOutputs () |
availableOutputs More... | |
QStringList | defaultPaths () |
defaultPaths More... | |
MIDIInput * | inputBackendByName (const QString name) |
inputBackendByName More... | |
MIDIOutput * | outputBackendByName (const QString name) |
outputBackendByName More... | |
MIDIInput * | findInput (QString name) |
findInput returns the backend corresponding to the provided name, or a suitable input instead. More... | |
MIDIOutput * | findOutput (QString name) |
findOutput returns the backend corresponding to the provided name, or a suitable output instead. More... | |
The BackendManager class manages lists of dynamic and static backends for applications based on drumstick-rt.
Definition at line 59 of file backendmanager.h.
|
explicit |
BackendManager constructor.
Constructor.
Definition at line 90 of file backendmanager.cpp.
References BackendManager::refresh().
|
virtual |
QList< MIDIInput * > availableInputs | ( | ) |
availableInputs
Definition at line 247 of file backendmanager.cpp.
QList< MIDIOutput * > availableOutputs | ( | ) |
availableOutputs
Definition at line 252 of file backendmanager.cpp.
QStringList defaultPaths | ( | ) |
defaultPaths
returns the paths where backends are searched
Definition at line 109 of file backendmanager.cpp.
Referenced by BackendManager::refresh().
MIDIInput * findInput | ( | QString | name | ) |
findInput returns the backend corresponding to the provided name, or a suitable input instead.
name | The name of some input backend |
Definition at line 277 of file backendmanager.cpp.
References MIDIInput::backendName().
MIDIOutput * findOutput | ( | QString | name | ) |
findOutput returns the backend corresponding to the provided name, or a suitable output instead.
name | The name of some output backend |
Definition at line 294 of file backendmanager.cpp.
References MIDIOutput::backendName().
MIDIInput * inputBackendByName | ( | const QString | name | ) |
inputBackendByName
name | The name of some input backend |
Definition at line 257 of file backendmanager.cpp.
References MIDIInput::backendName().
Referenced by drumstick::widgets::configureInputDriver(), and drumstick::widgets::inputDriverIsConfigurable().
MIDIOutput * outputBackendByName | ( | const QString | name | ) |
outputBackendByName
name | The name of some output backend |
Definition at line 267 of file backendmanager.cpp.
References MIDIOutput::backendName().
Referenced by drumstick::widgets::configureOutputDriver(), and drumstick::widgets::outputDriverIsConfigurable().
void refresh | ( | const QVariantMap & | map | ) |
refresh the list of backends
BackendManager::refresh finds the installed backends searching the list of paths provided by the function defaultPaths() applying the provided settings map as well.
map | Program settings relevant section |
Definition at line 174 of file backendmanager.cpp.
References BackendManager::defaultPaths(), MIDIInput::setExcludedConnections(), MIDIOutput::setExcludedConnections(), MIDIInput::setPublicName(), and MIDIOutput::setPublicName().
void refresh | ( | QSettings * | settings = nullptr | ) |
refresh the list of backends
BackendManager::refresh finds the installed backends applying the provided settings.
settings | Program settings |
Definition at line 156 of file backendmanager.cpp.
References BackendManager::refresh().
Referenced by BackendManager::BackendManager(), and BackendManager::refresh().