#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include "../lib/clientmessage.h" #include "../lib/logger.h" #include "wave.h" namespace Ui { class MainWindow; } class MainWindow : public QWidget { Q_OBJECT public: explicit MainWindow(const std::string &hostname, const unsigned short port, QWidget *parent = 0); MainWindow(const MainWindow &rhs); MainWindow &operator =(const MainWindow &rhs); ~MainWindow(); public slots: void setClientmessage(const Clientmessage &msg); private: Ui::MainWindow *ui; Clientmessage _oldMessage = { }; const Wave _soundLock; const Wave _soundUnlock; const Wave _soundEmergencyUnlock; const Wave _soundZonk; const Wave _soundLockButton; const Wave _soundUnlockButton; void _LED(const bool on); }; #endif // MAINWINDOW_H