Enroute Flight Navigation
A navigation app for VFR pilots
Navigation::Navigator Class Reference

Main hub for navigation data. More...

#include <Navigator.h>

Inheritance diagram for Navigation::Navigator:
GlobalObject

Public Types

enum  FlightStatus : quint8 { Ground , Flight , Unknown }
 FlightStatus. More...

Signals

void aircraftChanged ()
 Notifier signal.
void airspaceAltitudeLimitAdjusted ()
 Emitted when the airspaceAltitudeLimit is adjusted.
void flightStatusChanged ()
 Notifier signal.
void windChanged ()
 Notifier signal.

Public Member Functions

 Navigator (QObject *parent=nullptr)
 Standard constructor.
void deferredInitialization () override
 Non-constructor initialization.
 ~Navigator () override=default
 Standard destructor.
Public Member Functions inherited from GlobalObject
 GlobalObject (QObject *parent=nullptr)
 Standard constructor.
 ~GlobalObject () override=default
 Standard deconstructor.

Properties

Navigation::Aircraft aircraft
 Current aircraft.
bool hasAviationMapForCurrentLocation
 Indicates whether an aviation map is installed for the current location.
Navigation::FlightRouteflightRoute
 Current flight route.
FlightStatus flightStatus
 Estimate whether the device is flying or on the ground.
Navigation::RemainingRouteInfo remainingRouteInfo
 Up-to-date information about the remaining route.
Weather::Wind wind
 Current wind.

Additional Inherited Members

Static Public Member Functions inherited from GlobalObject
static void clear ()
 Deletes all globally defined objects.
static Q_INVOKABLE bool canConstruct ()
 Indicates if the static methods are ready to be used.
static Q_INVOKABLE Navigation::Clockclock ()
 Pointer to appplication-wide static Navigation::Clock instance.
static Q_INVOKABLE DataManagement::DataManagerdataManager ()
 Pointer to appplication-wide static GeoMaps::DataManager instance.
static Q_INVOKABLE DemoRunnerdemoRunner ()
 Pointer to appplication-wide static DemoRunner instance.
static Q_INVOKABLE Traffic::FlarmnetDBflarmnetDB ()
 Pointer to appplication-wide static FlarmnetDB instance.
static Q_INVOKABLE Platform::FileExchangefileExchange ()
 Pointer to appplication-wide static FileExchange instance.
static Q_INVOKABLE GeoMaps::GeoMapProvidergeoMapProvider ()
 Pointer to appplication-wide static GeoMaps::GeoMapProvider instance.
static Q_INVOKABLE GlobalSettingsglobalSettings ()
 Pointer to appplication-wide static Settings instance.
static Q_INVOKABLE Librarianlibrarian ()
 Pointer to appplication-wide static librarian instance.
static Q_INVOKABLE Platform::PlatformAdaptorplatformAdaptor ()
 Pointer to appplication-wide static PlatformAdaptor instance.
static Q_INVOKABLE Sensorssensors ()
 Pointer to appplication-wide static Navigation::Clock instance.
static Q_INVOKABLE Navigation::Navigatornavigator ()
 Pointer to appplication-wide static Navigation::Navigator instance.
static Q_INVOKABLE Traffic::PasswordDBpasswordDB ()
 Pointer to appplication-wide static PasswordDB instance.
static Q_INVOKABLE Positioning::PositionProviderpositionProvider ()
 Pointer to appplication-wide static PositionProvider instance.
static Q_INVOKABLE NOTAM::NOTAMProvidernotamProvider ()
 Pointer to appplication-wide static notification manager instance.
static Q_INVOKABLE Notifications::NotificationManagernotificationManager ()
 Pointer to appplication-wide static notification manager instance.
static Q_INVOKABLE QNetworkAccessManager * networkAccessManager ()
 Pointer to appplication-wide static QNetworkAccessManager instance.
static Q_INVOKABLE DataManagement::SSLErrorHandlersslErrorHandler ()
 Pointer to appplication-wide static QNetworkAccessManager instance.
static Q_INVOKABLE Traffic::TrafficDataProvidertrafficDataProvider ()
 Pointer to appplication-wide static TrafficDataProvider instance.
static Q_INVOKABLE GeoMaps::WaypointLibrarywaypointLibrary ()
 Pointer to appplication-wide static WaypointLibrary instance.
static Q_INVOKABLE Weather::WeatherDataProviderweatherDataProvider ()
 Pointer to appplication-wide static WeatherDataProvider instance.

Detailed Description

Main hub for navigation data.

This class collects all data items that are relevant for navigation.

The methods in this class are reentrant, but not thread safe.

Definition at line 42 of file Navigator.h.

Member Enumeration Documentation

◆ FlightStatus

FlightStatus.

Enumerator
Ground 

Device is on the ground

Flight 

Device is flying

Unknown 

Unknown

Definition at line 50 of file Navigator.h.

Constructor & Destructor Documentation

◆ Navigator()

Navigation::Navigator::Navigator ( QObject * parent = nullptr)
explicit

Standard constructor.

Parameters
parentThe standard QObject parent pointer

Member Function Documentation

◆ airspaceAltitudeLimitAdjusted

void Navigation::Navigator::airspaceAltitudeLimitAdjusted ( )
signal

Emitted when the airspaceAltitudeLimit is adjusted.

To ensure that all relevant airspaces are visible on the moving map, the navigator class will automatically adjust the property airspaceAltitudeLimit of the global settings object whenever (ownship true altitude + 1000ft) is higher than the present airspaceAltitudeLimit.

This signal is emitted whenever that happens.

◆ deferredInitialization()

void Navigation::Navigator::deferredInitialization ( )
overridevirtual

Non-constructor initialization.

This method is called by the static methods that create global instances immediately after the constructor returns. This class can be re-implemented to perform initialization steps that refer to other singleton objects.

Reimplemented from GlobalObject.

Property Documentation

◆ aircraft

Navigation::Aircraft Navigation::Navigator::aircraft
readwrite

Current aircraft.

The aircraft returned here is owned by this class and must not be deleted. QML ownership has been set to QQmlEngine::CppOwnership.

Definition at line 95 of file Navigator.h.

◆ flightRoute

Navigation::FlightRoute* Navigation::Navigator::flightRoute
read

Current flight route.

This flight route returned here is owned by this class and must not be deleted. QML ownership has been set to QQmlEngine::CppOwnership.

Definition at line 114 of file Navigator.h.

◆ flightStatus

FlightStatus Navigation::Navigator::flightStatus
read

Estimate whether the device is flying or on the ground.

This property holds an estimate, as to whether the device is flying or on the ground.

Definition at line 122 of file Navigator.h.

◆ hasAviationMapForCurrentLocation

bool Navigation::Navigator::hasAviationMapForCurrentLocation
read

Indicates whether an aviation map is installed for the current location.

For performance reasons, this method only checks whether the approximate last valid coordinate provided by PositionProvider is contained in the bounding box of one of the installed aviation maps.

Definition at line 105 of file Navigator.h.


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