QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPConnectionConfig Struct Reference

#include <NTRIPConfiguration.h>

Public Member Functions

bool operator== (const NTRIPConnectionConfig &) const =default
QString validationError () const
QString streamValidationError () const
QUrl url (bool withMountpoint=true) const
 The caster's HTTP(S) URL, with the mountpoint as its path when withMountpoint is set, else "/".
bool sendsCredentialsInClear () const
 Credentials go to the caster without TLS.
QString credentialsInClearWarning () const
 The user-visible warning when credentials go to the caster without TLS; empty otherwise.

Public Attributes

QString host
int port = 2101
QString username
QString password
QString mountpoint
bool useTls = false
bool allowSelfSignedCerts = false
QString pinnedCertificate
 "host:port|sha256-hex" of the self-signed certificate trusted on first use; other endpoints ignore it.

Detailed Description

Definition at line 7 of file NTRIPConfiguration.h.

Member Function Documentation

◆ credentialsInClearWarning()

QString NTRIPConnectionConfig::credentialsInClearWarning ( ) const
nodiscard

The user-visible warning when credentials go to the caster without TLS; empty otherwise.

Definition at line 64 of file NTRIPConfiguration.cc.

References sendsCredentialsInClear().

◆ operator==()

bool NTRIPConnectionConfig::operator== ( const NTRIPConnectionConfig & ) const
default

◆ sendsCredentialsInClear()

bool NTRIPConnectionConfig::sendsCredentialsInClear ( ) const
nodiscard

Credentials go to the caster without TLS.

Definition at line 59 of file NTRIPConfiguration.cc.

References password, username, and useTls.

Referenced by credentialsInClearWarning().

◆ streamValidationError()

QString NTRIPConnectionConfig::streamValidationError ( ) const
nodiscard

Definition at line 38 of file NTRIPConfiguration.cc.

References mountpoint, and validationError().

Referenced by NTRIPHttpRequest::build().

◆ url()

QUrl NTRIPConnectionConfig::url ( bool withMountpoint = true) const
nodiscard

The caster's HTTP(S) URL, with the mountpoint as its path when withMountpoint is set, else "/".

Definition at line 49 of file NTRIPConfiguration.cc.

References host, mountpoint, port, url(), and useTls.

Referenced by NTRIPHttpRequest::build(), and url().

◆ validationError()

QString NTRIPConnectionConfig::validationError ( ) const
nodiscard

Member Data Documentation

◆ allowSelfSignedCerts

bool NTRIPConnectionConfig::allowSelfSignedCerts = false

Definition at line 18 of file NTRIPConfiguration.h.

Referenced by NTRIPHttpSession::open().

◆ host

QString NTRIPConnectionConfig::host

Definition at line 12 of file NTRIPConfiguration.h.

Referenced by NTRIPHttpSession::open(), url(), and validationError().

◆ mountpoint

QString NTRIPConnectionConfig::mountpoint

◆ password

QString NTRIPConnectionConfig::password

Definition at line 15 of file NTRIPConfiguration.h.

Referenced by NTRIPHttpRequest::build(), and sendsCredentialsInClear().

◆ pinnedCertificate

QString NTRIPConnectionConfig::pinnedCertificate

"host:port|sha256-hex" of the self-signed certificate trusted on first use; other endpoints ignore it.

Definition at line 20 of file NTRIPConfiguration.h.

Referenced by NTRIPHttpSession::open().

◆ port

int NTRIPConnectionConfig::port = 2101

Definition at line 13 of file NTRIPConfiguration.h.

Referenced by NTRIPHttpSession::open(), url(), and validationError().

◆ username

QString NTRIPConnectionConfig::username

◆ useTls

bool NTRIPConnectionConfig::useTls = false

Definition at line 17 of file NTRIPConfiguration.h.

Referenced by NTRIPHttpSession::open(), sendsCredentialsInClear(), and url().


The documentation for this struct was generated from the following files: