|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <NTRIPSourceTableController.h>
Inheritance diagram for NTRIPSourceTableController:
Collaboration diagram for NTRIPSourceTableController:Classes | |
| struct | FetchAttempt |
Public Types | |
| enum class | FetchStatus { Idle , InProgress , Success , Error } |
Signals | |
| void | fetchStatusChanged () |
| void | fetchErrorChanged () |
| void | securityWarningChanged () |
| void | certificatePinned (const QString &pin) |
| A self-signed caster certificate was trusted on first use; the owner persists the pin. | |
Public Member Functions | |
| NTRIPSourceTableController (QObject *parent=nullptr, RuntimeScheduler *scheduler=nullptr) | |
| ~NTRIPSourceTableController () override | |
| FetchStatus | fetchStatus () const |
| QString | fetchError () const |
| QString | securityWarning () const |
| Set while the latest fetch sends caster credentials without TLS. | |
| QAbstractItemModel * | mountpointModel () const |
| void | fetch (const NTRIPConnectionConfig &config, const QGeoCoordinate &sortCoord={}) |
| void | cancel () |
Static Public Attributes | |
| static constexpr std::chrono::milliseconds | CACHE_TTL {60000} |
| static constexpr std::chrono::milliseconds | FETCH_TIMEOUT {10000} |
| static constexpr qint64 | MAX_SOURCE_TABLE_BYTES = 8 * 1024 * 1024 |
Friends | |
| class | NTRIPSourceTableControllerTest |
Fetches caster source tables over the same HTTP request builder and decoder as the correction stream, so HTTP/1.x and NTRIP v1 "SOURCETABLE 200 OK" responses share one path.
Definition at line 21 of file NTRIPSourceTableController.h.
|
strong |
| Enumerator | |
|---|---|
| Idle | |
| InProgress | |
| Success | |
| Error | |
Definition at line 32 of file NTRIPSourceTableController.h.
|
explicit |
Definition at line 28 of file NTRIPSourceTableController.cc.
|
override |
Definition at line 35 of file NTRIPSourceTableController.cc.
| void NTRIPSourceTableController::cancel | ( | ) |
Definition at line 192 of file NTRIPSourceTableController.cc.
References Idle, and InProgress.
Referenced by NTRIPManager::shutdown().
|
signal |
A self-signed caster certificate was trusted on first use; the owner persists the pin.
Referenced by NTRIPManager::NTRIPManager().
| void NTRIPSourceTableController::fetch | ( | const NTRIPConnectionConfig & | config, |
| const QGeoCoordinate & | sortCoord = {} |
||
| ) |
Definition at line 46 of file NTRIPSourceTableController.cc.
References MonotonicClock::age(), CACHE_TTL, config, NTRIPSourceTableModel::count(), error, MonotonicClock::fresh(), InProgress, RuntimeScheduler::nowUs(), securityWarning(), securityWarningChanged(), Success, NTRIPSourceTableModel::updateDistances(), and NTRIPConnectionConfig::validationError().
Referenced by NTRIPManager::fetchMountpoints().
|
inline |
Definition at line 50 of file NTRIPSourceTableController.h.
|
signal |
|
inline |
Definition at line 48 of file NTRIPSourceTableController.h.
|
signal |
| QAbstractItemModel * NTRIPSourceTableController::mountpointModel | ( | ) | const |
Definition at line 41 of file NTRIPSourceTableController.cc.
|
inline |
Set while the latest fetch sends caster credentials without TLS.
Definition at line 53 of file NTRIPSourceTableController.h.
References NTRIPConnectionConfig::credentialsInClearWarning().
Referenced by fetch().
|
signal |
Referenced by fetch().
|
friend |
Definition at line 68 of file NTRIPSourceTableController.h.
|
staticconstexpr |
Definition at line 41 of file NTRIPSourceTableController.h.
Referenced by fetch().
|
staticconstexpr |
Definition at line 42 of file NTRIPSourceTableController.h.
|
staticconstexpr |
Definition at line 43 of file NTRIPSourceTableController.h.