Umsci
Upmix Spatial Control Interface — OCA/OCP.1 spatial audio utility
Loading...
Searching...
No Matches
UmsciConnectingComponent.h
Go to the documentation of this file.
1/* Copyright (c) 2026, Christian Ahrens
2 *
3 * This file is part of Umsci <https://github.com/ChristianAhrens/Umsci>
4 *
5 * This tool is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License version 3.0 as published
7 * by the Free Software Foundation.
8 *
9 * This tool is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this tool; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19#pragma once
20
21#include <JuceHeader.h>
22
23
37class UmsciConnectingComponent : public juce::Component
38{
39public:
50
51public:
54
56 void setConnectionStatus(Status status);
58 void setConnectionParameters(const juce::IPAddress& ip, int port);
59
60 //==============================================================================
61 void paint(juce::Graphics& g) override;
62 void resized() override;
63 void lookAndFeelChanged() override;
64
65private:
66 double m_progress = -1.0;
67 std::unique_ptr<juce::ProgressBar> m_startupProgressIndicator;
68 juce::String m_connectionStatusDescription;
69 juce::String m_connectionParametersDescription;
70
71 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (UmsciConnectingComponent)
72};
73
Fullscreen progress overlay shown while the OCP.1 connection is being established,...
void setConnectionStatus(Status status)
Updates the status text label to reflect the current connection phase.
void paint(juce::Graphics &g) override
void setConnectionParameters(const juce::IPAddress &ip, int port)
Updates the "connecting to ip:port" description line.
Status
Mirrors the subset of DeviceController::State values that this component visualises....
@ Subscribing
AddSubscription commands sent, waiting for ACKs.
@ Connecting
TCP connect in progress.
@ Reading
GetValue responses being collected (DeviceController::GetValues state).