#pragma once #include "PrtCnvThread.hpp" #include "PrtCnvRadioThread.hpp" #include #include namespace PrtCnv { class PrtCnvRadioTrafficThread final : public PrtCnvThread { Q_OBJECT public: explicit PrtCnvRadioTrafficThread(PrtCnvThreadStarter* a_parent); void newTelegramArrived(unsigned int size); int32_t start() override; protected Q_SLOTS: void onCalculateTrafficLoad(); void onCleanupTimeout(); protected: PrtCnvRadioThread::E_TrafficLoad m_receiveLoad; unsigned int m_fullLoad; unsigned int m_highLoad; unsigned int m_hystLoad; int m_calcTimeout; int m_cleanupTimeout; QMutex m_mutex; QMap m_data; QMap m_telegrams; }; }