Enroute Flight Navigation
A navigation app for VFR pilots
|
Provides list of traffic, sorted by relevance. More...
#include <TrafficObserver.h>
Public Member Functions | |
TrafficObserver (QObject *parent=nullptr) | |
Standard constructor. | |
~TrafficObserver () override=default | |
Standard destructor. | |
bool | hasTraffic () |
Getter method for property of the same name. | |
QBindable< bool > | bindableHasTraffic () |
Getter method for property of the same name. | |
QList< Traffic::TrafficFactor_Abstract * > | traffic () |
Getter method for property of the same name. | |
QBindable< QList< Traffic::TrafficFactor_Abstract * > > | bindableTraffic () |
Getter method for property of the same name. | |
Properties | |
bool | hasTraffic |
Indicates that the traffic property is not empty. | |
QList< Traffic::TrafficFactor_Abstract * > | traffic |
List of current traffic, sorted by relevance. | |
Provides list of traffic, sorted by relevance.
This class monitors the global TrafficDataProvider to produce list of all traffic factors, sorted by relevance. Holding an instance of this class is relatively expensive because it needs to update and sort whenever any data in the TrafficDataProvider changes. Instances should therefore be deleted as soon as they are no longer used.
Definition at line 39 of file TrafficObserver.h.
|
explicit |
Standard constructor.
parent | Standard QObject parent |
|
inlinenodiscard |
Getter method for property of the same name.
Definition at line 83 of file TrafficObserver.h.
|
inlinenodiscard |
Getter method for property of the same name.
Definition at line 95 of file TrafficObserver.h.
|
inlinenodiscard |
Getter method for property of the same name.
Definition at line 77 of file TrafficObserver.h.
|
inlinenodiscard |
Getter method for property of the same name.
Definition at line 89 of file TrafficObserver.h.