QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPConfiguration.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QString>
4#include <QtCore/QUrl>
5
7{
8 QString host;
9 int port = 2101;
10 QString username;
11 QString password;
12 QString mountpoint;
13 bool useTls = false;
17
18 bool operator==(const NTRIPConnectionConfig&) const = default;
19 [[nodiscard]] QString validationError() const;
20 [[nodiscard]] QString streamValidationError() const;
22 [[nodiscard]] QUrl url(bool withMountpoint = true) const;
24 [[nodiscard]] bool sendsCredentialsInClear() const;
26 [[nodiscard]] QString credentialsInClearWarning() const;
27};
QString streamValidationError() const
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.
bool operator==(const NTRIPConnectionConfig &) const =default
QString pinnedCertificate
"host:port|sha256-hex" of the self-signed certificate trusted on first use; other endpoints ignore it...
QUrl url(bool withMountpoint=true) const
The caster's HTTP(S) URL, with the mountpoint as its path when withMountpoint is set,...
QString validationError() const