|
Enroute Flight Navigation
A navigation app for VFR pilots
|
This extremely simple class holds a the data item of a NOTAM. More...
#include <NOTAM.h>
Public Member Functions | |
| NOTAM ()=default | |
| Constructs an invalid NOTAM. | |
| NOTAM (const QJsonObject &jsonObject) | |
| Constructs a NOTAM from GeoJSON data, as provided by the FAA. | |
| Q_REQUIRED_RESULT QString | affectedFIR () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QString | cancels () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QGeoCoordinate | coordinate () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QDateTime | effectiveEnd () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QDateTime | effectiveStart () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QJsonObject | GeoJSON () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QString | icaoLocation () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT bool | isValid () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QString | number () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QGeoCircle | region () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QString | text () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QString | traffic () const |
| Getter function for the property with the same name. | |
| Q_REQUIRED_RESULT QString | category () const |
| Category of this NOTAM for map icon selection. | |
| Q_REQUIRED_RESULT Q_INVOKABLE bool | operator== (const NOTAM &rhs) const =default |
| Comparison. | |
| Q_REQUIRED_RESULT bool | isOutdated () const |
| Check if effectiveEnd is valid and earlier than currentTime. | |
| Q_REQUIRED_RESULT Q_INVOKABLE QString | richText () const |
| Rich text description of the NOTAM. | |
| void | updateSectionTitle () |
| Update section title according to the current time. | |
Properties | |
| QString | affectedFIR |
| Flight Information Region of this NOTAM. | |
| QString | cancels |
| Cancels other NOTAM. | |
| QGeoCoordinate | coordinate |
| Coordinates of the NOTAM. | |
| QDateTime | effectiveEnd |
| Effective end of the NOTAM, if date is given. | |
| QDateTime | effectiveStart |
| Effective start of the NOTAM, if date is given. | |
| QJsonObject | GeoJSON |
| Waypoint in GeoJSON format. | |
| QString | icaoLocation |
| ICAO location of this NOTAM. | |
| bool | isValid |
| Validity of this NOTAM. | |
| QString | number |
| Number of this NOTAM. | |
| QGeoCircle | region |
| Region where this NOTAM is valid. | |
| QString | sectionTitle |
| Section title. | |
| QString | text |
| Plain text of the NOTAM. | |
| QString | traffic |
| Traffic entry of the NOTAM. | |
Friends | |
| QDataStream & | operator<< (QDataStream &stream, const NOTAM ¬am) |
| Serialization. | |
| QDataStream & | operator>> (QDataStream &stream, NOTAM ¬am) |
| Deserialization. | |
This extremely simple class holds a the data item of a NOTAM.
|
explicit |
Constructs a NOTAM from GeoJSON data, as provided by the FAA.
| jsonObject | JSON object, as provided by the FAA |
|
inline |
| Q_REQUIRED_RESULT QString NOTAM::NOTAM::cancels | ( | ) | const |
Getter function for the property with the same name.
| Q_REQUIRED_RESULT QString NOTAM::NOTAM::category | ( | ) | const |
Category of this NOTAM for map icon selection.
Returns a category string based on the ICAO Q-code (selectionCode). See ICAO Doc 8400, Chapter 7. Possible values: "NOTAM" (default), "NOTAM-PJE" (parachute jumping), "NOTAM-OBST" (obstacle), "NOTAM-UAS" (unmanned aircraft / model flying), "NOTAM-RA" (restricted/prohibited/danger area).
|
inline |
|
inline |
|
inline |
| Q_REQUIRED_RESULT QJsonObject NOTAM::NOTAM::GeoJSON | ( | ) | const |
Getter function for the property with the same name.
|
inline |
|
inline |
| Q_REQUIRED_RESULT bool NOTAM::NOTAM::isValid | ( | ) | const |
Getter function for the property with the same name.
|
inline |
|
nodiscarddefault |
Comparison.
| rhs | Right hand side of the comparison |
|
inline |
| Q_REQUIRED_RESULT Q_INVOKABLE QString NOTAM::NOTAM::richText | ( | ) | const |
|
inline |
|
inline |
| void NOTAM::NOTAM::updateSectionTitle | ( | ) |
Update section title according to the current time.
This method uses the current time to set the NOTAM's section title to one of "Marked as read", "Current", "Next 24h", "Next 90 days", "> 90 days" or "NOTAM".
|
friend |
Serialization.
There is no checks for errors of any kind.
|
friend |
Deserialization.
There is no checks for errors of any kind.
|
read |
|
read |
|
read |
| QString NOTAM::NOTAM::sectionTitle |
|
read |
Plain text of the NOTAM.
Unlike richText(), this is the raw text without any markup, which makes it suitable for filtering.