The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
656B

  1. #pragma once
  2. #include <BlocksHeader.h>
  3. // Monitors a PhysicalTopologySource for changes to the connected BLOCKS and
  4. // prints some information about the BLOCKS that are available.
  5. class BlockFinder : private juce::TopologySource::Listener
  6. {
  7. public:
  8. // Register as a listener to the PhysicalTopologySource, so that we receive
  9. // callbacks in topologyChanged().
  10. BlockFinder();
  11. private:
  12. // Called by the PhysicalTopologySource when the BLOCKS topology changes.
  13. void topologyChanged() override;
  14. // The PhysicalTopologySource member variable which reports BLOCKS changes.
  15. juce::PhysicalTopologySource pts;
  16. };