This topology source manages the topology of the physical Blocks devices that are currently connected. More...
#include <juce_PhysicalTopologySource.h>
Classes | |
struct | DeviceConnection |
For custom transport systems, this represents a connected device. More... | |
struct | DeviceDetector |
For custom transport systems, this represents a connected device. More... | |
Public Member Functions | |
PhysicalTopologySource (bool startDetached=false) | |
Constructor. More... | |
PhysicalTopologySource (DeviceDetector &detectorToUse, bool startDetached=false) | |
Constructor for custom transport systems. More... | |
~PhysicalTopologySource () | |
Destructor. More... | |
void | addListener (Listener *l) |
void | cancelAllActiveTouches () noexcept override |
Reset all touches. More... | |
BlockTopology | getCurrentTopology () const override |
Returns the current physical topology. More... | |
bool | isActive () const override |
Returns true, if the TopologySource is currently trying to connect the block devices. More... | |
bool | isLockedFromOutside () const |
This method will tell, if an other PhysicalTopologySource has locked the Midi connection. More... | |
void | removeListener (Listener *l) |
void | setActive (bool shouldBeActive) override |
Sets the TopologySource as active, occupying the midi port and trying to connect to the block devices. More... | |
Static Public Member Functions | |
static const char *const * | getStandardLittleFootFunctions () noexcept |
Protected Member Functions | |
virtual void | handleTimerTick () |
virtual bool | hasOwnServiceTimer () const |
Protected Attributes | |
juce::ListenerList< Listener > | listeners |
Private Attributes | |
DeviceDetector * | customDetector = nullptr |
std::unique_ptr< DetectorHolder > | detector |
Friends | |
struct | Detector |
This topology source manages the topology of the physical Blocks devices that are currently connected.
It maintains a list of them and tells listeners when physical devices are added or removed.
{Blocks}
juce::PhysicalTopologySource::PhysicalTopologySource | ( | bool | startDetached = false | ) |
Constructor.
Referenced by juce::PhysicalTopologySource::DeviceDetector::isLockedFromOutside().
juce::PhysicalTopologySource::~PhysicalTopologySource | ( | ) |
Destructor.
juce::PhysicalTopologySource::PhysicalTopologySource | ( | DeviceDetector & | detectorToUse, |
bool | startDetached = false |
||
) |
Constructor for custom transport systems.
|
inlineinherited |
References juce::TopologySource::listeners.
|
overridevirtualnoexcept |
Reset all touches.
Reimplemented from juce::TopologySource.
|
overridevirtual |
Returns the current physical topology.
Implements juce::TopologySource.
|
staticnoexcept |
|
protectedvirtual |
|
protectedvirtual |
|
overridevirtual |
Returns true, if the TopologySource is currently trying to connect the block devices.
Implements juce::TopologySource.
bool juce::PhysicalTopologySource::isLockedFromOutside | ( | ) | const |
This method will tell, if an other PhysicalTopologySource has locked the Midi connection.
|
inlineinherited |
References juce::TopologySource::listeners.
|
overridevirtual |
Sets the TopologySource as active, occupying the midi port and trying to connect to the block devices.
Implements juce::TopologySource.
|
friend |
|
private |
|
private |
|
protectedinherited |
Referenced by juce::TopologySource::addListener(), and juce::TopologySource::removeListener().