• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • DiscoveryWidget
  • DiscoveryWidget Class

    Discovery controls for pairing: one toggle per discovery channel, the honeymoon button and a ping display. More...

    Header: #include <DiscoveryWidget>
    Inherits: QWidget

    Detailed Description

    The widget embeds a ChannelSelectorWidget with toggles for network, zoo, Bluetooth, audio and QR discovery. A toggle stores the wish for that one channel through DiscoveryClient::setChannelWanted() and emits discoveryMandateChanged(). Turning network discovery on also starts a honeymoon on the node, so that peers are found faster. The honeymoon button starts one directly. It is green during the grace phase and blinks while the honeymoon decays.

    The widget follows the DiscoveryStatus of its DiscoveryClient to show the state of each channel, and shows pings and channel pulses that the caller reports through ping() and pulseChannel().

    PairingActivity hosts the widget. Call configure() with the Node, then setDiscoveryClient(). openChannelConfig() and openBanterAudioSetup() ask the host to open the channel configuration or the audio device picker.

    See also ConnectionStatusWidget and DiscoveryClient.