Qt-Gebouw/mainwindow.h
2022-04-06 23:33:11 +02:00

59 lines
1.2 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLineEdit>
#include <memory>
namespace Ui {
class MainWindow;
}
class Hallsensor;
class Sensor;
class Schuifdeur;
class draaideur;
class Deur;
class SleutelSlot;
class HerkenningsSlot;
class Slot;
class MainWindow : public QMainWindow{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
void paintEvent(QPaintEvent *event);
~MainWindow();
private slots:
void on_schuifdeurSensorKnop_clicked();
void on_vd_clicked();
void on_d1_clicked();
void on_d2_clicked();
void on_lineEdit_returnPressed();
void on_Allow_clicked();
void on_Deny_clicked();
void on_HerkenningAdd_2_returnPressed();
void on_addIdCard_clicked();
void on_deleteIdCard_clicked();
void on_idKaart_returnPressed();
void on_idVoegToe_clicked();
private:
Ui::MainWindow *ui;
Hallsensor *s1;
std::shared_ptr<Schuifdeur> *vd;
std::shared_ptr<draaideur> *d1, *d2;
//Slot *sleutelSlot0;
// std::vector<std::unique_ptr<Deur*>> deuren;
// Schuifdeur *vd;
// draaideur *d1, *d2;
std::vector<std::shared_ptr<Deur>> deuren;
};
#endif // MAINWINDOW_H