drumstick  1.1.0
BackendManager Class Reference

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=0)
 refresh the list of backends More...
 
QList< MIDIInput * > availableInputs ()
 availableInputs More...
 
QList< MIDIOutput * > availableOutputs ()
 availableOutputs More...
 
QStringList defaultPaths ()
 defaultPaths More...
 
MIDIInputinputBackendByName (const QString name)
 inputBackendByName More...
 
MIDIOutputoutputBackendByName (const QString name)
 outputBackendByName More...
 

Detailed Description

The BackendManager class manages lists of dynamic and static backends for applications based on drumstick-rt.

Definition at line 50 of file backendmanager.h.

Constructor & Destructor Documentation

BackendManager ( )
explicit

BackendManager constructor.

Constructor.

Definition at line 114 of file backendmanager.cpp.

References BackendManager::refresh().

~BackendManager ( )
virtual

~BackendManager destructor

Destructor.

Definition at line 122 of file backendmanager.cpp.

Member Function Documentation

QList< MIDIInput * > availableInputs ( )

availableInputs

Returns
list of available MIDI inputs

Definition at line 236 of file backendmanager.cpp.

QList< MIDIOutput * > availableOutputs ( )

availableOutputs

Returns
list of available MIDI outputs

Definition at line 241 of file backendmanager.cpp.

QStringList defaultPaths ( )

defaultPaths

returns the paths where backends are searched

Returns
list of paths for backends search
list of paths

Definition at line 131 of file backendmanager.cpp.

Referenced by BackendManager::refresh().

MIDIInput * inputBackendByName ( const QString  name)

inputBackendByName

Parameters
nameThe name of some input backend
Returns
Input backend instance if available

Definition at line 246 of file backendmanager.cpp.

References MIDIInput::backendName().

MIDIOutput * outputBackendByName ( const QString  name)

outputBackendByName

Parameters
nameThe name of some output backend
Returns
Output backend instance if available

Definition at line 256 of file backendmanager.cpp.

References MIDIOutput::backendName().

void refresh ( QSettings *  settings = 0)

refresh the list of backends

BackendManager::refresh finds the installed backends searching the list of paths provided by the function defaultPaths() applying the optional settings as well.

Parameters
settingsProgram settings
settings(optional)

Definition at line 166 of file backendmanager.cpp.

References BackendManager::defaultPaths(), MIDIInput::setExcludedConnections(), MIDIOutput::setExcludedConnections(), MIDIInput::setPublicName(), and MIDIOutput::setPublicName().

Referenced by BackendManager::BackendManager().


The documentation for this class was generated from the following files: