Qt-Gebouw/mainwindow.h
2022-04-06 18:01:47 +02:00

50 lines
1009 B
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();
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