Skip to content

Class QfNtripClient

ClassList > QfNtripClient

A simple NTRIP client.

  • #include <qfntripclient.h>

Inherits the following classes: QObject

Public Signals

Type Name
signal void bytesReceivedChanged
Emitted when the received bytes counts have changed.
signal void bytesSentChanged
Emitted when the sent bytes counts have changed.
signal void correctionDataReceived (const QByteArray & data)
Emmitted when correction data has been received from an NTRIP server.
signal void errorOccurred (const QString & message, bool isPermanent)
Emmitted when an error occured while communicating with an NTRIP server.
signal void streamConnected
Emitted when successfully connected to an NTRIP server.
signal void streamDisconnected
Emitted when successfully disconnected from an NTRIP server.

Public Functions

Type Name
QfNtripClient (QObject * parent=nullptr)
The NTRIP client constructor.
qint64 bytesReceived () const
qint64 bytesSent () const
void sendNmeaSentence (const QString & sentence)
Sends an NMEA sentence to the NTRIP server.
void start (const QfNtripSettings & ntripSettings, QfAbstractGnssReceiver * receiver)
void startLogging (const QString & path)
void stop ()
Stops any ongoing connection to an NTRIP server.
void stopLogging ()
Stops logging received corrections.
~QfNtripClient () noexcept override
The NTRIP client destructor.

Public Signals Documentation

signal bytesReceivedChanged

Emitted when the received bytes counts have changed.

void QfNtripClient::bytesReceivedChanged;


signal bytesSentChanged

Emitted when the sent bytes counts have changed.

void QfNtripClient::bytesSentChanged;


signal correctionDataReceived

Emmitted when correction data has been received from an NTRIP server.

void QfNtripClient::correctionDataReceived;


signal errorOccurred

Emmitted when an error occured while communicating with an NTRIP server.

void QfNtripClient::errorOccurred;


signal streamConnected

Emitted when successfully connected to an NTRIP server.

void QfNtripClient::streamConnected;


signal streamDisconnected

Emitted when successfully disconnected from an NTRIP server.

void QfNtripClient::streamDisconnected;


Public Functions Documentation

function QfNtripClient

The NTRIP client constructor.

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


function bytesReceived

inline qint64 QfNtripClient::bytesReceived () const

Returns the number of bytes received since a connection to an NTRIP server has been started.


function bytesSent

inline qint64 QfNtripClient::bytesSent () const

Returns the number of bytes sent since a connection to an NTRIP server has been started.


function sendNmeaSentence

Sends an NMEA sentence to the NTRIP server.

void QfNtripClient::sendNmeaSentence (
    const QString & sentence
) 


function start

void QfNtripClient::start (
    const QfNtripSettings & ntripSettings,
    QfAbstractGnssReceiver * receiver
) 

Starts a connection to an NTRIP server

Parameters:

  • ntripSettings the NTRIP settings object
  • receiver the GNSS receiver that will receive corrections and, optionally, forward NMEA sentence from

function startLogging

void QfNtripClient::startLogging (
    const QString & path
) 

Start logging received correction to a given folder path

Note:

the actual log file name will be generated to include the current date and time


function stop

Stops any ongoing connection to an NTRIP server.

void QfNtripClient::stop () 


function stopLogging

Stops logging received corrections.

void QfNtripClient::stopLogging () 


function ~QfNtripClient

The NTRIP client destructor.

QfNtripClient::~QfNtripClient () noexcept override



The documentation for this class was generated from the following file src/core/positioning/qfntripclient.h