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.

24 lines
736B

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