21#include <JuceHeader.h>
23#include <ZeroconfDiscoverComponent.h>
57 :
public juce::Component,
58 public ZeroconfSearcher::ZeroconfSearcher::ZeroconfSearcherListener
80 std::function<void(
const ZeroconfSearcher::ZeroconfSearcher::ServiceInfo&)>
onServiceSelected;
85 void updateComboBox();
88 std::unique_ptr<ZeroconfSearcher::ZeroconfSearcher> m_searcher;
89 std::unique_ptr<juce::ComboBox> m_comboBox;
90 std::vector<ZeroconfSearcher::ZeroconfSearcher::ServiceInfo> m_services;
A ComboBox that continuously scans the local network for DS100 devices announced via Zeroconf/mDNS an...
std::function< void(const ZeroconfSearcher::ZeroconfSearcher::ServiceInfo &)> onServiceSelected
Fired when the user selects a device from the combo box. The ServiceInfo contains the resolved hostna...
void parentSizeChanged() override
Resizes the component to 80 % of the parent's width whenever the parent (AlertWindow) is resized,...
~UmsciZeroconfDiscoverComboComponent() override
UmsciZeroconfDiscoverComboComponent()
void handleServicesChanged(std::string serviceName) override
ZeroconfSearcherListener callback — called when devices appear or disappear.