| Enroute Flight Navigation
    A navigation app for VFR pilots | 
This extremely simple class give accss to time and offers a few time-related functions. More...
#include <Clock.h>
 
  
| Signals | |
| void | dateChanged () | 
| Notifier signal. | |
| void | timeChanged () | 
| Notifier signal. | |
| Public Member Functions | |
| Clock (QObject *parent=nullptr) | |
| Default constructor. | |
| Public Member Functions inherited from GlobalObject | |
| GlobalObject (QObject *parent=nullptr) | |
| Standard constructor. | |
| ~GlobalObject () override=default | |
| Standard deconstructor. | |
| Static Public Member Functions | |
| static QDate | date () | 
| Getter method for property of the same name. | |
| static QString | timeAsUTCString () | 
| Getter method for property of the same name. | |
| static QDateTime | time () | 
| Getter method for property of the same name. | |
| static Q_INVOKABLE QString | describeTimeDifference (const QDateTime &pointInTime) | 
| static Q_INVOKABLE QString | describeTimeDifference (const QDateTime &pointInTime, const QDateTime ¤tTime) | 
| static Q_INVOKABLE QString | describePointInTime (const QDateTime &pointInTime, const QDateTime &now) | 
| static Q_INVOKABLE QString | describePointInTime (const QDateTime &pointInTime) | 
| 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::Clock * | clock () | 
| Pointer to appplication-wide static Navigation::Clock instance. | |
| static Q_INVOKABLE DataManagement::DataManager * | dataManager () | 
| Pointer to appplication-wide static GeoMaps::DataManager instance. | |
| static Q_INVOKABLE DemoRunner * | demoRunner () | 
| Pointer to appplication-wide static DemoRunner instance. | |
| static Q_INVOKABLE Traffic::FlarmnetDB * | flarmnetDB () | 
| Pointer to appplication-wide static FlarmnetDB instance. | |
| static Q_INVOKABLE Platform::FileExchange * | fileExchange () | 
| Pointer to appplication-wide static FileExchange instance. | |
| static Q_INVOKABLE GeoMaps::GeoMapProvider * | geoMapProvider () | 
| Pointer to appplication-wide static GeoMaps::GeoMapProvider instance. | |
| static Q_INVOKABLE GlobalSettings * | globalSettings () | 
| Pointer to appplication-wide static Settings instance. | |
| static Q_INVOKABLE Librarian * | librarian () | 
| Pointer to appplication-wide static librarian instance. | |
| static Q_INVOKABLE Platform::PlatformAdaptor_Abstract * | platformAdaptor () | 
| Pointer to appplication-wide static PlatformAdaptor instance. | |
| static Q_INVOKABLE Sensors * | sensors () | 
| Pointer to appplication-wide static Navigation::Clock instance. | |
| static Q_INVOKABLE Navigation::Navigator * | navigator () | 
| Pointer to appplication-wide static Navigation::Navigator instance. | |
| static Q_INVOKABLE Traffic::PasswordDB * | passwordDB () | 
| Pointer to appplication-wide static PasswordDB instance. | |
| static Q_INVOKABLE Positioning::PositionProvider * | positionProvider () | 
| Pointer to appplication-wide static PositionProvider instance. | |
| static Q_INVOKABLE NOTAM::NOTAMProvider * | notamProvider () | 
| Pointer to appplication-wide static notification manager instance. | |
| static Q_INVOKABLE Notifications::NotificationManager * | notificationManager () | 
| Pointer to appplication-wide static notification manager instance. | |
| static Q_INVOKABLE QNetworkAccessManager * | networkAccessManager () | 
| Pointer to appplication-wide static QNetworkAccessManager instance. | |
| static Q_INVOKABLE DataManagement::SSLErrorHandler * | sslErrorHandler () | 
| Pointer to appplication-wide static QNetworkAccessManager instance. | |
| static Q_INVOKABLE Traffic::TrafficDataProvider * | trafficDataProvider () | 
| Pointer to appplication-wide static TrafficDataProvider instance. | |
| static Q_INVOKABLE GeoMaps::WaypointLibrary * | waypointLibrary () | 
| Pointer to appplication-wide static WaypointLibrary instance. | |
| static Q_INVOKABLE Weather::WeatherDataProvider * | weatherDataProvider () | 
| Pointer to appplication-wide static WeatherDataProvider instance. | |
| Properties | |
| QDate | date | 
| Current date. | |
| QString | timeAsUTCString | 
| Current time in UTC as a string. | |
| QDateTime | time | 
| Current time. | |
| Additional Inherited Members | |
| Protected Member Functions inherited from GlobalObject | |
| virtual void | deferredInitialization () | 
| Non-constructor initialization. | |
This extremely simple class give accss to time and offers a few time-related functions.
There exists one static instance of this class, which can be accessed via Global. No other instance of this class should be used.
| 
 | explicit | 
Default constructor.
| parent | The standard QObject parent pointer | 
| 
 | inlinestaticnodiscard | 
| 
 | static | 
Describe a point in time in human-readable form
This method describes a point in time in human readable form. The method returns a localized string of the form "12. Sept., 17:51", "tomorrow 17:51", "yesterday 17:51" or "17:51". The words "tomorrow" and "yesterday" refer midnight at the current position, the numbers "17:51" refer to time in UTC.
| pointInTime | The point in time that is to be described. | 
| 
 | static | 
Describe a point in time in human-readable form
This method describes a point in time in human readable form. The method returns a localized string of the form "12. Sept., 17:51", "tomorrow 17:51", "yesterday 17:51" or "17:51". The words "tomorrow" and "yesterday" refer midnight at the current position, the numbers "17:51" refer to time in UTC.
| pointInTime | The point in time that is to be described. | 
| now | Current point in time. | 
| 
 | static | 
Describe time difference in human readable form
This method describes the difference between the current time and a given time in human readable form.
| pointInTime | A point in time that is compared to the current time | 
| 
 | static | 
Describe time difference in human readable form
This method describes the difference between the current time and a given time in human readable form.
| pointInTime | A point in time that is compared to the current time | 
| currentTime | Current time | 
| 
 | inlinestaticnodiscard | 
| 
 | staticnodiscard | 
Getter method for property of the same name.
| 
 | read | 
| 
 | read | 
| 
 | read |