![]() |
drumstick 2.10.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 112 of file backendmanager.cpp.
References BackendManager::refresh().
|
virtual |
| QList< MIDIInput * > availableInputs | ( | ) |
availableInputs
Definition at line 277 of file backendmanager.cpp.
| QList< MIDIOutput * > availableOutputs | ( | ) |
availableOutputs
Definition at line 282 of file backendmanager.cpp.
| QStringList defaultPaths | ( | ) |
defaultPaths
returns the paths where backends are searched
Definition at line 135 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 307 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 324 of file backendmanager.cpp.
References MIDIOutput::backendName().
| MIDIInput * inputBackendByName | ( | const QString | name | ) |
inputBackendByName
| name | The name of some input backend |
Definition at line 287 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 297 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 201 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 182 of file backendmanager.cpp.
References BackendManager::refresh().
Referenced by BackendManager::BackendManager(), and BackendManager::refresh().