1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-01 06:57:04 +01:00
doorlockd-mirror/doorlockd/client/mainwindow.h

47 lines
886 B
C
Raw Normal View History

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
2015-09-30 15:26:28 +02:00
#include <QWidget>
2015-10-02 19:39:47 +02:00
#include "../lib/clientmessage.h"
#include "../lib/logger.h"
#include "wave.h"
2015-09-30 15:26:28 +02:00
namespace Ui {
class MainWindow;
}
2015-09-30 15:26:28 +02:00
class MainWindow : public QWidget
{
2015-09-30 15:26:28 +02:00
Q_OBJECT
2015-09-29 02:13:48 +02:00
2015-09-30 15:26:28 +02:00
public:
explicit MainWindow(const std::string &hostname,
const unsigned short port,
QWidget *parent = 0);
MainWindow(const MainWindow &rhs);
MainWindow &operator =(const MainWindow &rhs);
2015-09-30 15:26:28 +02:00
~MainWindow();
public slots:
2015-10-02 19:39:47 +02:00
void setClientmessage(const Clientmessage &msg);
private:
2015-09-30 15:26:28 +02:00
Ui::MainWindow *ui;
2015-10-05 23:59:18 +02:00
Clientmessage _oldMessage = { };
const Wave _soundLock;
const Wave _soundUnlock;
const Wave _soundEmergencyUnlock;
const Wave _soundZonk;
const Wave _soundLockButton;
const Wave _soundUnlockButton;
2015-10-06 00:22:35 +02:00
void _LED(const bool on);
};
2015-09-30 15:26:28 +02:00
#endif // MAINWINDOW_H