Qt-Gebouw/mainwindow.h

50 lines
1009 B
C
Raw Normal View History

2022-02-10 16:44:22 +00:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
2022-03-29 16:38:53 +00:00
#include <QLineEdit>
#include <memory>
2022-02-10 16:44:22 +00:00
namespace Ui {
class MainWindow;
}
2022-04-06 16:01:47 +00:00
2022-02-10 16:44:22 +00:00
class Hallsensor;
class Sensor;
class Schuifdeur;
2022-02-17 23:51:34 +00:00
class draaideur;
class Deur;
2022-03-29 16:38:53 +00:00
class SleutelSlot;
2022-04-06 16:01:47 +00:00
class HerkenningsSlot;
2022-03-29 16:38:53 +00:00
class Slot;
class MainWindow : public QMainWindow{
2022-02-10 16:44:22 +00:00
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
void paintEvent(QPaintEvent *event);
~MainWindow();
private slots:
void on_schuifdeurSensorKnop_clicked();
void on_vd_clicked();
2022-02-17 23:51:34 +00:00
void on_d1_clicked();
void on_d2_clicked();
2022-03-29 16:38:53 +00:00
void on_lineEdit_returnPressed();
2022-04-06 16:01:47 +00:00
void on_Allow_clicked();
void on_Deny_clicked();
2022-03-29 16:38:53 +00:00
2022-02-10 16:44:22 +00:00
private:
Ui::MainWindow *ui;
2022-02-17 23:51:34 +00:00
Hallsensor *s1;
std::shared_ptr<Schuifdeur> *vd;
std::shared_ptr<draaideur> *d1, *d2;
2022-03-29 16:38:53 +00:00
//Slot *sleutelSlot0;
2022-02-17 23:51:34 +00:00
// std::vector<std::unique_ptr<Deur*>> deuren;
// Schuifdeur *vd;
// draaideur *d1, *d2;
2022-03-29 16:38:53 +00:00
std::vector<std::shared_ptr<Deur>> deuren;
2022-02-10 16:44:22 +00:00
};
#endif // MAINWINDOW_H