7#include <QtCore/QAbstractItemModel>
8#include <QtCore/QObject>
9#include <QtCore/QString>
10#include <QtPositioning/QGeoCoordinate>
11#include <QtQmlIntegration/QtQmlIntegration>
41 static constexpr std::chrono::milliseconds
CACHE_TTL{60000};
70 void _onSourceTableReceived(
const QString& table);
71 void _onFetchError(
const QString&
error);
76 void _armFetchTimeout();
77 void _readReply(
const QByteArray& bytes);
78 void _finishFetch(
const QString&
error = {});
84 std::unique_ptr<FetchAttempt> _attempt;
86 QGeoCoordinate _sortCoord;
89 std::optional<quint64> _cacheStoredAtUs;
void fetch(const NTRIPConnectionConfig &config, const QGeoCoordinate &sortCoord={})
static constexpr std::chrono::milliseconds CACHE_TTL
~NTRIPSourceTableController() override
void fetchStatusChanged()
QString fetchError() const
friend class NTRIPSourceTableControllerTest
void certificatePinned(const QString &pin)
A self-signed caster certificate was trusted on first use; the owner persists the pin.
void securityWarningChanged()
static constexpr qint64 MAX_SOURCE_TABLE_BYTES
QAbstractItemModel * mountpointModel() const
static constexpr std::chrono::milliseconds FETCH_TIMEOUT
FetchStatus fetchStatus() const
QString securityWarning() const
Set while the latest fetch sends caster credentials without TLS.
QString credentialsInClearWarning() const
The user-visible warning when credentials go to the caster without TLS; empty otherwise.