JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::PhysicalTopologySource Class Reference

This topology source manages the topology of the physical Blocks devices that are currently connected. More...

#include <juce_PhysicalTopologySource.h>

Inheritance diagram for juce::PhysicalTopologySource:
Collaboration diagram for juce::PhysicalTopologySource:

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< Listenerlisteners
 

Private Attributes

DeviceDetectorcustomDetector = nullptr
 
std::unique_ptr< DetectorHolder > detector
 

Friends

struct Detector
 

Detailed Description

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}

Constructor & Destructor Documentation

◆ PhysicalTopologySource() [1/2]

juce::PhysicalTopologySource::PhysicalTopologySource ( bool  startDetached = false)

◆ ~PhysicalTopologySource()

juce::PhysicalTopologySource::~PhysicalTopologySource ( )

Destructor.

◆ PhysicalTopologySource() [2/2]

juce::PhysicalTopologySource::PhysicalTopologySource ( DeviceDetector detectorToUse,
bool  startDetached = false 
)

Constructor for custom transport systems.

Member Function Documentation

◆ addListener()

void juce::TopologySource::addListener ( Listener l)
inlineinherited

◆ cancelAllActiveTouches()

void juce::PhysicalTopologySource::cancelAllActiveTouches ( )
overridevirtualnoexcept

Reset all touches.

Reimplemented from juce::TopologySource.

◆ getCurrentTopology()

BlockTopology juce::PhysicalTopologySource::getCurrentTopology ( ) const
overridevirtual

Returns the current physical topology.

Implements juce::TopologySource.

◆ getStandardLittleFootFunctions()

static const char* const* juce::PhysicalTopologySource::getStandardLittleFootFunctions ( )
staticnoexcept

◆ handleTimerTick()

virtual void juce::PhysicalTopologySource::handleTimerTick ( )
protectedvirtual

◆ hasOwnServiceTimer()

virtual bool juce::PhysicalTopologySource::hasOwnServiceTimer ( ) const
protectedvirtual

◆ isActive()

bool juce::PhysicalTopologySource::isActive ( ) const
overridevirtual

Returns true, if the TopologySource is currently trying to connect the block devices.

Implements juce::TopologySource.

◆ isLockedFromOutside()

bool juce::PhysicalTopologySource::isLockedFromOutside ( ) const

This method will tell, if an other PhysicalTopologySource has locked the Midi connection.

◆ removeListener()

void juce::TopologySource::removeListener ( Listener l)
inlineinherited

◆ setActive()

void juce::PhysicalTopologySource::setActive ( bool  shouldBeActive)
overridevirtual

Sets the TopologySource as active, occupying the midi port and trying to connect to the block devices.

Implements juce::TopologySource.

Friends And Related Function Documentation

◆ Detector

friend struct Detector
friend

Member Data Documentation

◆ customDetector

DeviceDetector* juce::PhysicalTopologySource::customDetector = nullptr
private

◆ detector

std::unique_ptr<DetectorHolder> juce::PhysicalTopologySource::detector
private

◆ listeners

juce::ListenerList<Listener> juce::TopologySource::listeners
protectedinherited

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