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:

Public Types

enum class  FetchStatus { Idle , InProgress , Success , Error }
 

Signals

void fetchStatusChanged ()
 
void fetchErrorChanged ()
 
void mountpointModelChanged ()
 
void mountpointSelected (const QString &mountpoint)
 

Public Member Functions

 NTRIPSourceTableController (QObject *parent=nullptr)
 
 ~NTRIPSourceTableController () override
 
FetchStatus fetchStatus () const
 
QString fetchError () const
 
QAbstractListModel * mountpointModel () const
 
void fetch (const NTRIPTransportConfig &config, const QGeoCoordinate &sortCoord={})
 
Q_INVOKABLE void selectMountpoint (const QString &mountpoint)
 

Static Public Attributes

static constexpr int kCacheTtlMs = 60000
 
static constexpr int kFetchTimeoutMs = 10000
 
static constexpr qint64 kMaxSourceTableBytes = 8 * 1024 * 1024
 

Friends

class NTRIPSourceTableControllerTest
 

Detailed Description

Definition at line 18 of file NTRIPSourceTableController.h.

Member Enumeration Documentation

◆ FetchStatus

Enumerator
Idle 
InProgress 
Success 
Error 

Definition at line 29 of file NTRIPSourceTableController.h.

Constructor & Destructor Documentation

◆ NTRIPSourceTableController()

NTRIPSourceTableController::NTRIPSourceTableController ( QObject *  parent = nullptr)
explicit

Definition at line 41 of file NTRIPSourceTableController.cc.

◆ ~NTRIPSourceTableController()

NTRIPSourceTableController::~NTRIPSourceTableController ( )
override

Definition at line 47 of file NTRIPSourceTableController.cc.

Member Function Documentation

◆ fetch()

◆ fetchError()

QString NTRIPSourceTableController::fetchError ( ) const
inline

Definition at line 47 of file NTRIPSourceTableController.h.

◆ fetchErrorChanged

void NTRIPSourceTableController::fetchErrorChanged ( )
signal

◆ fetchStatus()

FetchStatus NTRIPSourceTableController::fetchStatus ( ) const
inline

Definition at line 45 of file NTRIPSourceTableController.h.

◆ fetchStatusChanged

void NTRIPSourceTableController::fetchStatusChanged ( )
signal

Referenced by fetch().

◆ mountpointModel()

QAbstractListModel * NTRIPSourceTableController::mountpointModel ( ) const

Definition at line 54 of file NTRIPSourceTableController.cc.

◆ mountpointModelChanged

void NTRIPSourceTableController::mountpointModelChanged ( )
signal

◆ mountpointSelected

void NTRIPSourceTableController::mountpointSelected ( const QString &  mountpoint)
signal

Emitted when the user picks a mountpoint. The manager/QML layer persists it to NTRIPSettings — this controller does not write settings directly.

Referenced by NTRIPManager::NTRIPManager(), and selectMountpoint().

◆ selectMountpoint()

void NTRIPSourceTableController::selectMountpoint ( const QString &  mountpoint)

Definition at line 207 of file NTRIPSourceTableController.cc.

References mountpointSelected().

Referenced by NTRIPManager::selectMountpoint().

Friends And Related Symbol Documentation

◆ NTRIPSourceTableControllerTest

friend class NTRIPSourceTableControllerTest
friend

Definition at line 63 of file NTRIPSourceTableController.h.

Member Data Documentation

◆ kCacheTtlMs

constexpr int NTRIPSourceTableController::kCacheTtlMs = 60000
staticconstexpr

Definition at line 38 of file NTRIPSourceTableController.h.

Referenced by fetch().

◆ kFetchTimeoutMs

constexpr int NTRIPSourceTableController::kFetchTimeoutMs = 10000
staticconstexpr

Definition at line 39 of file NTRIPSourceTableController.h.

Referenced by fetch().

◆ kMaxSourceTableBytes

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

Definition at line 40 of file NTRIPSourceTableController.h.


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