#pragma once #include #include #include #include #include #include "selfdrive/common/params.h" #include "selfdrive/ui/qt/widgets/scrollview.h" class OffroadAlert : public QFrame { Q_OBJECT public: explicit OffroadAlert(QWidget *parent = 0); int alertCount = 0; bool updateAvailable; private: void updateAlerts(); Params params; std::map alerts; QLabel releaseNotes; QPushButton rebootBtn; ScrollView *alertsScroll; ScrollView *releaseNotesScroll; QVBoxLayout *alerts_layout; signals: void closeAlerts(); public slots: void refresh(); };