|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <NTRIPSourceTable.h>
Inheritance diagram for NTRIPSourceTableModel:
Collaboration diagram for NTRIPSourceTableModel:Public Types | |
| enum | Roles { MountpointRole = Qt::UserRole + 1 , IdentifierRole , FormatRole , FormatDetailsRole , CarrierRole , NavSystemRole , NetworkRole , CountryRole , LatitudeRole , LongitudeRole , NmeaRole , SolutionRole , GeneratorRole , CompressionRole , AuthenticationRole , FeeRole , BitrateRole , DistanceKmRole } |
Signals | |
| void | countChanged () |
Public Member Functions | |
| NTRIPSourceTableModel (QObject *parent=nullptr) | |
| int | count () const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QHash< int, QByteArray > | roleNames () const override |
| void | parseSourceTable (const QString &raw) |
| void | updateDistances (const QGeoCoordinate &from) |
| void | sortByDistance () |
| void | clear () |
Single QAbstractListModel over the parsed source table. Replaces the former QObject-per-row + QmlObjectListModel double-wrapping. QML binds against the role names below (mountpoint, format, distanceKm, ...).
Definition at line 46 of file NTRIPSourceTable.h.
Definition at line 52 of file NTRIPSourceTable.h.
|
explicit |
Definition at line 62 of file NTRIPSourceTable.cc.
| void NTRIPSourceTableModel::clear | ( | ) |
Definition at line 193 of file NTRIPSourceTable.cc.
References countChanged().
|
inline |
Definition at line 76 of file NTRIPSourceTable.h.
Referenced by NTRIPSourceTableController::fetch(), and rowCount().
|
signal |
Referenced by clear(), and parseSourceTable().
|
override |
Definition at line 69 of file NTRIPSourceTable.cc.
References NTRIPMountpoint::authentication, AuthenticationRole, NTRIPMountpoint::bitrate, BitrateRole, NTRIPMountpoint::carrier, CarrierRole, NTRIPMountpoint::compression, CompressionRole, NTRIPMountpoint::country, CountryRole, NTRIPMountpoint::distanceKm, DistanceKmRole, NTRIPMountpoint::fee, FeeRole, NTRIPMountpoint::format, NTRIPMountpoint::formatDetails, FormatDetailsRole, FormatRole, NTRIPMountpoint::generator, GeneratorRole, NTRIPMountpoint::identifier, IdentifierRole, NTRIPMountpoint::latitude, LatitudeRole, NTRIPMountpoint::longitude, LongitudeRole, NTRIPMountpoint::mountpoint, MountpointRole, NTRIPMountpoint::navSystem, NavSystemRole, NTRIPMountpoint::network, NetworkRole, NTRIPMountpoint::nmea, NmeaRole, NTRIPMountpoint::solution, and SolutionRole.
| void NTRIPSourceTableModel::parseSourceTable | ( | const QString & | raw | ) |
Definition at line 141 of file NTRIPSourceTable.cc.
References countChanged(), and NTRIPMountpoint::fromSourceTableLine().
|
override |
Definition at line 117 of file NTRIPSourceTable.cc.
References AuthenticationRole, BitrateRole, CarrierRole, CompressionRole, CountryRole, DistanceKmRole, FeeRole, FormatDetailsRole, FormatRole, GeneratorRole, IdentifierRole, LatitudeRole, LongitudeRole, MountpointRole, NavSystemRole, NetworkRole, NmeaRole, and SolutionRole.
|
override |
Definition at line 64 of file NTRIPSourceTable.cc.
References count().
| void NTRIPSourceTableModel::sortByDistance | ( | ) |
Definition at line 170 of file NTRIPSourceTable.cc.
References NTRIPMountpoint::distanceKm.
Referenced by updateDistances().
| void NTRIPSourceTableModel::updateDistances | ( | const QGeoCoordinate & | from | ) |
Definition at line 162 of file NTRIPSourceTable.cc.
References sortByDistance().