25#include "traffic/TrafficFactor_Abstract.h"
77 [[nodiscard]]
bool hasTraffic() {
return m_hasTraffic.value();}
89 [[nodiscard]] QList<Traffic::TrafficFactor_Abstract*>
traffic() {
return m_traffic.value();}
95 [[nodiscard]] QBindable<QList<Traffic::TrafficFactor_Abstract*>>
bindableTraffic() {
return &m_traffic;}
100 QProperty<bool> m_hasTraffic;
101 QProperty<QList<Traffic::TrafficFactor_Abstract*>> m_traffic;
Abstract base class for traffic factors.
Provides list of traffic, sorted by relevance.
bool hasTraffic
Indicates that the traffic property is not empty.
~TrafficObserver() override=default
Standard destructor.
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.
TrafficObserver(QObject *parent=nullptr)
Standard constructor.
QList< Traffic::TrafficFactor_Abstract * > traffic
List of current traffic, sorted by relevance.
QBindable< bool > bindableHasTraffic()
Getter method for property of the same name.