#ifndef LEDS_H #define LEDS_H #include #include #include #include namespace Ui { class Leds; } struct ivmshmem { uint8_t leds[3]; } __attribute__((packed)); class Leds : public QMainWindow { Q_OBJECT public: explicit Leds(QWidget *parent = 0); ~Leds(); int init(void); private: Ui::Leds *ui; QRadioButton *radioButton[3]; QTimer timer; struct ivmshmem *shm; public slots: void poll_shm(void); }; #endif // LEDS_H