41#include "HardwareWidgets/Headers/ConnectionDialog.h"
42#include <NDEVR/Connection.h>
43#include "Base/Headers/Dictionary.h"
47 class WebNetworkConnectionUI;
131 Ui::WebNetworkConnectionUI*
ui;
Defines cross-platform DLL export/import macros for the NDEVRWebSocket module.
Used to, given a Connection, generate an appropriate ConnectionDialog to allow adjustment of paramete...
A virtual dialog that provides an interface that allows the user to adjust certain parameters for a C...
ConnectionDialog(QWidget *parent=nullptr)
Constructs a ConnectionDialog.
A standard interface for all types of connections that allow transmitting and receiving of data betwe...
A light-weight base class for Log that allows processes to update, without the need for additional in...
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
The default thread class for executing concurrent sequences in the NDEVR API.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
A ConnectionDialogFactory which allows for the creation of a WebSocketConnectionDialog.
virtual bool handlesType(const StringView &connection) const override
Checks whether this factory handles the given connection type string.
virtual ConnectionDialog * createConnectionDialog() const override
Creates a new WebSocketConnectionDialog instance.
virtual TranslatedString title() const override
Returns the user-facing title for this connection dialog type.
virtual StringView icon() const override
Returns the icon name associated with WebSocket connections.
virtual ConnectionInfo connectionInfo() const override
Builds and returns a ConnectionInfo populated from the current dialog field values.
String m_fixed_protocol
When non-empty, locks the protocol to this value.
virtual void setConnectionInfo(const ConnectionInfo &connection) override
Populates the dialog fields from the given connection information.
Ui::WebNetworkConnectionUI * ui
The auto-generated UI form for WebSocket connection settings.
void setAllowLocalButton(bool allow_local)
Enables or disables the local/localhost shortcut button.
~WebSocketConnectionDialog()
Destroys the dialog and frees the UI resources.
void refreshPingVisible()
Updates the visibility of ping-related controls based on current settings.
bool m_allow_local_button
Whether the localhost shortcut button is visible.
bool m_allow_ping_logic
Whether ping-test controls are visible and active.
void updateFromDialog()
Slot that synchronizes internal state when dialog fields are modified by the user.
String protocol() const
Returns the currently selected or fixed protocol string.
bool checkIfValid() const
Validates the current dialog field values.
WebSocketConnectionDialog(QWidget *parent=nullptr)
Constructs a WebSocketConnectionDialog with an optional parent widget.
virtual void clear() override
Resets all dialog fields to their default empty state.
void setFixedProtocol(const String &mode)
Locks the protocol selector to a fixed value, preventing user changes.
void setAllowPingLogic(bool allow_ping)
Enables or disables the ping-test logic and associated UI controls.
virtual bool handlesConnection(const ConnectionInfo &connection) override
Checks whether this dialog can edit the given connection type.
void clearFixedProtocol()
Removes the fixed protocol constraint, allowing the user to choose freely.
The primary namespace for the NDEVR SDK.
A structure designed to store information about a specific Connection.