QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPSourceTableController Class Reference

#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
 

Detailed Description

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.

Member Enumeration Documentation

◆ FetchStatus

Enumerator
Idle 
InProgress 
Success 
Error 

Definition at line 32 of file NTRIPSourceTableController.h.

Constructor & Destructor Documentation

◆ NTRIPSourceTableController()

NTRIPSourceTableController::NTRIPSourceTableController ( QObject *  parent = nullptr,
RuntimeScheduler *  scheduler = nullptr 
)
explicit

Definition at line 28 of file NTRIPSourceTableController.cc.

◆ ~NTRIPSourceTableController()

NTRIPSourceTableController::~NTRIPSourceTableController ( )
override

Definition at line 35 of file NTRIPSourceTableController.cc.

Member Function Documentation

◆ cancel()

void NTRIPSourceTableController::cancel ( )

Definition at line 192 of file NTRIPSourceTableController.cc.

References Idle, and InProgress.

Referenced by NTRIPManager::shutdown().

◆ certificatePinned

void NTRIPSourceTableController::certificatePinned ( const QString &  pin)
signal

A self-signed caster certificate was trusted on first use; the owner persists the pin.

Referenced by NTRIPManager::NTRIPManager().

◆ fetch()

◆ fetchError()

QString NTRIPSourceTableController::fetchError ( ) const
inline

Definition at line 50 of file NTRIPSourceTableController.h.

◆ fetchErrorChanged

void NTRIPSourceTableController::fetchErrorChanged ( )
signal

◆ fetchStatus()

FetchStatus NTRIPSourceTableController::fetchStatus ( ) const
inline

Definition at line 48 of file NTRIPSourceTableController.h.

◆ fetchStatusChanged

void NTRIPSourceTableController::fetchStatusChanged ( )
signal

◆ mountpointModel()

QAbstractItemModel * NTRIPSourceTableController::mountpointModel ( ) const

Definition at line 41 of file NTRIPSourceTableController.cc.

◆ securityWarning()

QString NTRIPSourceTableController::securityWarning ( ) const
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().

◆ securityWarningChanged

void NTRIPSourceTableController::securityWarningChanged ( )
signal

Referenced by fetch().

Friends And Related Symbol Documentation

◆ NTRIPSourceTableControllerTest

friend class NTRIPSourceTableControllerTest
friend

Definition at line 68 of file NTRIPSourceTableController.h.

Member Data Documentation

◆ CACHE_TTL

constexpr std::chrono::milliseconds NTRIPSourceTableController::CACHE_TTL {60000}
staticconstexpr

Definition at line 41 of file NTRIPSourceTableController.h.

Referenced by fetch().

◆ FETCH_TIMEOUT

constexpr std::chrono::milliseconds NTRIPSourceTableController::FETCH_TIMEOUT {10000}
staticconstexpr

Definition at line 42 of file NTRIPSourceTableController.h.

◆ MAX_SOURCE_TABLE_BYTES

constexpr qint64 NTRIPSourceTableController::MAX_SOURCE_TABLE_BYTES = 8 * 1024 * 1024
staticconstexpr

Definition at line 43 of file NTRIPSourceTableController.h.


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