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/QCoreApplication>
4#include <QtCore/QString>
5#include <QtCore/QUrl>
6
8{
9 Q_DECLARE_TR_FUNCTIONS(NTRIPConnectionConfig)
10
11public:
12 QString host;
13 int port = 2101;
14 QString username;
15 QString password;
16 QString mountpoint;
17 bool useTls = false;
21
22 bool operator==(const NTRIPConnectionConfig&) const = default;
23 [[nodiscard]] QString validationError() const;
24 [[nodiscard]] QString streamValidationError() const;
26 [[nodiscard]] QUrl url(bool withMountpoint = true) const;
28 [[nodiscard]] bool sendsCredentialsInClear() const;
30 [[nodiscard]] QString credentialsInClearWarning() const;
31};
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