|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <NTRIPTransportConfig.h>
Public Member Functions | |
| bool | operator== (const NTRIPTransportConfig &) const =default |
| QString | validationError () const |
| bool | isValid () const |
| bool | transportDiffers (const NTRIPTransportConfig &other) const |
| bool | udpForwardDiffers (const NTRIPTransportConfig &other) const |
| bool | whitelistDiffers (const NTRIPTransportConfig &other) const |
| QString | casterIdentity () const |
Static Public Member Functions | |
| static NTRIPTransportConfig | fromSettings (NTRIPSettings &settings) |
| static QVector< int > | parseWhitelist (const QString &csv) |
Public Attributes | |
| QString | host |
| int | port = 2101 |
| QString | username |
| QString | password |
| QString | mountpoint |
| QString | whitelist |
| bool | useTls = false |
| bool | allowSelfSignedCerts = false |
| bool | udpForwardEnabled = false |
| QString | udpTargetAddress |
| quint16 | udpTargetPort = 0 |
Definition at line 8 of file NTRIPTransportConfig.h.
| QString NTRIPTransportConfig::casterIdentity | ( | ) | const |
Identity of the caster a source table belongs to: host + port + credentials
Definition at line 61 of file NTRIPTransportConfig.cc.
|
static |
Definition at line 35 of file NTRIPTransportConfig.cc.
References config, host, and Fact::rawValue().
Referenced by NTRIPManager::fetchMountpoints().
|
inline |
Definition at line 31 of file NTRIPTransportConfig.h.
References validationError().
|
default |
|
static |
Parse a comma-separated RTCM message-id list (e.g. "1005,1077,1087") into the QVector<int> expected by RTCMParser::setWhitelist. Empty or non-numeric tokens are ignored.
Definition at line 77 of file NTRIPTransportConfig.cc.
Referenced by NTRIPHttpTransport::NTRIPHttpTransport().
| bool NTRIPTransportConfig::transportDiffers | ( | const NTRIPTransportConfig & | other | ) | const |
Hot fields: a change forces a transport reconnect (TCP/TLS handshake, HTTP GET line, auth). Excludes whitelist (parser-only) and UDP sink.
Definition at line 54 of file NTRIPTransportConfig.cc.
References allowSelfSignedCerts, host, mountpoint, password, port, username, and useTls.
| bool NTRIPTransportConfig::udpForwardDiffers | ( | const NTRIPTransportConfig & | other | ) | const |
Warm fields: the UDP sidecar can be reconfigured without tearing down the caster connection.
Definition at line 71 of file NTRIPTransportConfig.cc.
References udpForwardEnabled, udpTargetAddress, and udpTargetPort.
| QString NTRIPTransportConfig::validationError | ( | ) | const |
Returns a user-facing error string if the config is unusable, or an empty string if valid. Covers required fields plus control-character / RFC 7617 injection guards so the manager can reject before any socket is allocated.
Definition at line 9 of file NTRIPTransportConfig.cc.
References host, mountpoint, and username.
Referenced by isValid().
|
inline |
Cold field: RTCM whitelist is applied in the parser and does not require a reconnect or any sink reconfiguration.
Definition at line 46 of file NTRIPTransportConfig.h.
References whitelist.
| bool NTRIPTransportConfig::allowSelfSignedCerts = false |
Definition at line 17 of file NTRIPTransportConfig.h.
Referenced by transportDiffers().
| QString NTRIPTransportConfig::host |
Definition at line 10 of file NTRIPTransportConfig.h.
Referenced by NTRIPHttpTransport::buildHttpRequest(), casterIdentity(), fromSettings(), transportDiffers(), and validationError().
| QString NTRIPTransportConfig::mountpoint |
Definition at line 14 of file NTRIPTransportConfig.h.
Referenced by NTRIPHttpTransport::buildHttpRequest(), transportDiffers(), and validationError().
| QString NTRIPTransportConfig::password |
Definition at line 13 of file NTRIPTransportConfig.h.
Referenced by NTRIPHttpTransport::buildHttpRequest(), casterIdentity(), and transportDiffers().
| int NTRIPTransportConfig::port = 2101 |
Definition at line 11 of file NTRIPTransportConfig.h.
Referenced by casterIdentity(), and transportDiffers().
| bool NTRIPTransportConfig::udpForwardEnabled = false |
Definition at line 20 of file NTRIPTransportConfig.h.
Referenced by udpForwardDiffers().
| QString NTRIPTransportConfig::udpTargetAddress |
Definition at line 21 of file NTRIPTransportConfig.h.
Referenced by udpForwardDiffers().
| quint16 NTRIPTransportConfig::udpTargetPort = 0 |
Definition at line 22 of file NTRIPTransportConfig.h.
Referenced by udpForwardDiffers().
| QString NTRIPTransportConfig::username |
Definition at line 12 of file NTRIPTransportConfig.h.
Referenced by NTRIPHttpTransport::buildHttpRequest(), casterIdentity(), transportDiffers(), and validationError().
| bool NTRIPTransportConfig::useTls = false |
Definition at line 16 of file NTRIPTransportConfig.h.
Referenced by NTRIPHttpTransport::buildHttpRequest(), casterIdentity(), and transportDiffers().
| QString NTRIPTransportConfig::whitelist |
Definition at line 15 of file NTRIPTransportConfig.h.
Referenced by whitelistDiffers().