-
Notifications
You must be signed in to change notification settings - Fork 0
/
securite.h
120 lines (79 loc) · 2.48 KB
/
securite.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#ifndef SECURITE_H
#define SECURITE_H
#include <QWidget>
#include "securite/membre.h"
#include "securite/admin.h"
#include "securite/porte.h"
#include "securite/fenetre.h"
#include "arduino.h"
#include "smtp.h"
namespace Ui {
class Securite;
}
class Securite : public QWidget
{
Q_OBJECT
public:
explicit Securite(QWidget *parent = nullptr);
~Securite();
void setId(int id);
private slots:
void sendMail();
//void mailSent(QString status);
void mail(); // slot permettant la mise à jour du label état de la lampe 1,
// ce slot est lancé à chaque réception d'un message de Arduino
void espaceMembre();
void verifier();
void on_pushButton_41_clicked();
void on_pushButton_40_clicked();
void on_pushButton_38_clicked();
void on_pushButton_34_clicked();
void on_pushButton_30_clicked();
void on_pushButton_jardin_clicked();
void on_pushButton_frigo_clicked();
void on_pushButton_chambre_clicked();
void on_pushButton_historique_clicked();
void on_pushButton_membre_clicked();
void on_pushButton_admin_clicked();
void on_pushButton_porte_clicked();
void on_pushButton_setting_clicked();
void on_pushButton_8_clicked();
void on_pushButton_2_clicked();
void on_pushButton_22_clicked();
void on_pushButton_15_clicked();
void on_pushButton_17_clicked();
void on_pushButton_18_clicked();
void on_pushButton_13_clicked();
void on_pushButton_29_clicked();
void on_pushButton_28_clicked();
void on_pushButton_33_clicked();
void on_pushButton_32_clicked();
void on_pushButton_37_clicked();
void on_pushButton_36_clicked();
void on_lineEdit_12_textChanged(const QString &arg1);
void on_pushButton_mail_clicked();
void on_pushButton_mail_2_clicked();
void on_pushButton_setting_2_clicked();
void on_pushButton_active_clicked();
void on_pushButton_clicked();
void on_lineEdit_2_textChanged(const QString &arg1);
void on_pushButton_3_clicked();
signals :
void clicAccueilSecurite();
void clicParkingSecurite();
void clicLoginSecurite();
void clicCloseSecurite();
void clicChembreSecurite();
void clicSecuriteSecurite();
void clicFrigoSecurite();
void clicJardinSecurite();
private:
Ui::Securite *ui;
Membre m;
Membre me;
Admin a;
QByteArray data; // variable contenant les données reçues
Arduino Ar; // objet temporaire
//Membre *membre;
};
#endif // SECURITE_H