|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <QGCNetworkAvailabilityMonitor.h>
Inheritance diagram for QGCNetworkAvailabilityMonitor:
Collaboration diagram for QGCNetworkAvailabilityMonitor:Signals | |
| void | availableChanged (bool available) |
Public Member Functions | |
| QGCNetworkAvailabilityMonitor (QObject *parent=nullptr) | |
| bool | available () const |
Protected Member Functions | |
| QGCNetworkAvailabilityMonitor (bool available, QObject *parent) | |
| For subclasses that report availability themselves: skips the platform backend and starts at available. | |
| void | _setAvailable (bool available) |
| Emits availableChanged() only when available differs from the current state. | |
Tracks whether any network is reachable, as reported by the platform's QNetworkInformation backend. Without a backend, or once the backend is gone, the network is assumed to be available.
Definition at line 7 of file QGCNetworkAvailabilityMonitor.h.
|
explicit |
Definition at line 10 of file QGCNetworkAvailabilityMonitor.cc.
References QGCNetworkHelper::isNetworkAvailable(), and QGCNetworkHelper::networkInformation().
|
protected |
For subclasses that report availability themselves: skips the platform backend and starts at available.
Definition at line 24 of file QGCNetworkAvailabilityMonitor.cc.
|
protected |
Emits availableChanged() only when available differs from the current state.
Definition at line 29 of file QGCNetworkAvailabilityMonitor.cc.
References available(), and availableChanged().
|
inline |
Definition at line 14 of file QGCNetworkAvailabilityMonitor.h.
Referenced by _setAvailable().
|
signal |
Referenced by _setAvailable(), and NTRIPManager::NTRIPManager().