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.
Public Member Functions | |
PhysicalTopologySource (bool startDetached=false) | |
Constructor. More... | |
~PhysicalTopologySource () override | |
Destructor. More... | |
BlockTopology | getCurrentTopology () const override |
Returns the current physical topology. More... | |
void | cancelAllActiveTouches () noexcept override |
Reset all touches. More... | |
void | setActive (bool shouldBeActive) override |
Sets the TopologySource as active, occupying the midi port and trying to connect to the block devices. More... | |
bool | isActive () const override |
Returns true, if the TopologySource is currently trying to connect the block devices. More... | |
bool | isLockedFromOutside () const override |
This method will tell, if an other PhysicalTopologySource has locked the Midi connection. More... | |
PhysicalTopologySource (DeviceDetector &detectorToUse, bool startDetached=false) | |
Constructor for custom transport systems. More... | |
Public Member Functions inherited from TopologySource | |
virtual | ~TopologySource ()=default |
Destructor. More... | |
void | addListener (Listener *l) |
void | removeListener (Listener *l) |
Block::Array | getBlocks () const |
Gets blocks from the current topology. More... | |
Block::Ptr | getBlockWithUID (Block::UID uid) const |
Gets a block with given uid from the current topology. More... | |
Static Public Member Functions | |
static const char *const * | getStandardLittleFootFunctions () noexcept |
Protected Member Functions | |
virtual bool | hasOwnServiceTimer () const |
virtual void | handleTimerTick () |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from TopologySource | |
juce::ListenerList< Listener > | listeners |
PhysicalTopologySource::PhysicalTopologySource | ( | bool | startDetached = false | ) |
Constructor.
|
override |
Destructor.
PhysicalTopologySource::PhysicalTopologySource | ( | DeviceDetector & | detectorToUse, |
bool | startDetached = false |
||
) |
Constructor for custom transport systems.
|
overridevirtual |
Returns the current physical topology.
Implements TopologySource.
|
overridevirtualnoexcept |
Reset all touches.
Reimplemented from TopologySource.
|
overridevirtual |
Sets the TopologySource as active, occupying the midi port and trying to connect to the block devices.
Implements TopologySource.
|
overridevirtual |
Returns true, if the TopologySource is currently trying to connect the block devices.
Implements TopologySource.
|
overridevirtual |
This method will tell, if an other PhysicalTopologySource has locked the Midi connection.
Implements TopologySource.
|
staticnoexcept |
|
protectedvirtual |
|
protectedvirtual |