-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
218 lines (126 loc) · 4.46 KB
/
mainwindow.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMessageBox>
#include "employee.h"
#include "session.h"
#include "maintenance.h"
#include "main_voiture.h"
#include <QPrinter>
#include <QPrintDialog>
#include <smtp.h>
#include <QSortFilterProxyModel>
#include <QTextTableFormat>
#include <QStandardItemModel>
#include <QDialog>
#include <QFileDialog>
#include <QDialog>
#include <QDesktopWidget>
#include <QSettings>
#include <QTextStream>
#include <QFile>
#include <QDataStream>
#include "arduino.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
bool validerSaisie(QString cineffacer);
private slots:
//*****client youusef**//
void on_pb_ajouter_clicked();
void on_pb_supprimer_clicked();
void on_pb_update_clicked();
void on_pb_avertissement_clicked();
void on_pb_avertissement_2_clicked();
void on_pushButton_pdf_client_clicked();
void on_pushButton_dec_tri_clicked();
void on_pushButton_croiss_tri_clicked();
void on_pushButton_search_client_clicked();
void on_pushButton_effacertout_clie_clicked();
void on_pushButton_stat_client_clicked();
void on_pushButton_tester_clientclicked();
//*****************//
//********************SESSION raslen****************************//
void on_pushButton_ajouter_session_clicked();
void on_pushButton_effacer_session_clicked();
void on_pushButton_modif_session_clicked();
void on_pushButton_PDF_session_clicked();
void on_pushButton_tri_session_2_clicked();
void on_lineEdit_2_textChanged(const QString &arg1);
void on_mode_charge_session_clicked();
void on_pushButton_arduino_session_clicked();
void on_pushButton_stat_session_clicked();
void on_pushButton_effacer_tout_sess_clicked();
void on_pushButton_chercher_session_clicked();
//************************************************************//
//**********************MAITENANCE ALA****************//
void update_label(); // 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 on_pushButton_ajout_maint_clicked();
void on_pushButton_3_maint_clicked();
void on_pushButton_4_modifier_maint_clicked();
// void on_lineEdit_3_textChanged(const QString &arg1);
void on_recherche_textChanged(const QString &arg1);
void on_comboBox_3_currentIndexChanged(const QString &arg1);
void on_pushButton_7_maint_clicked();
void on_pushButton_8_maint_clicked();
void on_pushButton_9_maint_clicked();
// void onReadyRead();
//*******************************//
//***** VOITURE FUNCTIONS ********//
void on_pushButton_supp_voit_clicked();
void on_pushButton_voiture_clicked();
void on_pushButton_update_voit_clicked();
void on_pushButton_PDF_voit_clicked();
void on_pushButton_historique_clicked();
void on_pushButton_TRI_voit_clicked();
void on_lineEdit_recherche_textChanged(const QString &arg1);
void on_pushButton_STAT_clicked();
void on_pushButton_charge_clicked();
void update_card();
void readCard();
void on_pushButton_12_clicked();
//************************//
//***** VOITURE EMPLOYE JASSER ********//
void on_pushButton_supprimer_clicked();
void on_pushButton_ajouter_clicked();
void on_pushButton_modifier_clicked();
void on_pushButton_modifier_2_clicked();
void on_pushButton_tri_clicked();
void on_pushButton_5_clicked();
void on_pushButton_7_clicked();
void on_pushButton_de_clicked();
void sendMail();
void mailSent(QString);
void browse();
bool pdf();
void on_pushButton_8_clicked();
void on_pushButton_9_clicked();
void on_pushButton_clicked();
//************************//
private:
Ui::MainWindow *ui;
employee semp;
employee e;
bool cinExists(QString cin);
void rechercherEmployeParId(QString id);
QStringList files;
arduino a;
//zeyda taa voiture Fares *********
voiture Etmp;
int currentBatteryLevel;
int maxBatteryLevel;
//** zyeda taa ala maintenance
QList<maintenance> maintenances;
maintenance Etmp1 ;
void trier_par_id_maintenance();
QByteArray data; // variable contenant les données reçues
session Etmp2;
};
#endif // MAINWINDOW_H