-
Notifications
You must be signed in to change notification settings - Fork 0
/
reclamation.h
48 lines (41 loc) · 1.33 KB
/
reclamation.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
#ifndef RECLAMATION_H
#define RECLAMATION_H
#include <QString>
#include <QSqlQuery>
#include <QSqlQueryModel>
#include <QDate>
#include <QSqlQuery>
#include <QSqlQueryModel>
class reclamation
{
public:
reclamation();
reclamation(int ,QString,QDate,QString,QString);
//bnj
bool ajouter();
bool modifier_reclamation(int,QString,QDate,QString,QString);
bool supprimer(int idd);
QSqlQueryModel * recherche (const QString &aux);
QSqlQueryModel * afficher();
QSqlQuery rechercher_id(int id);
QSqlQuery rechercher_salle(int salle);
QSqlQueryModel * trier(const QString &critere, const QString &mode );
int Getid_reclamation() { return id_reclamation; }
void Setid_reclamation(int val) { id_reclamation = val; }
QString Getnom() { return nom; }
void Setnom(QString val) { nom = val; }
QDate Getdater() { return dater; }
void Setdater(QDate val) { dater = val; }
QString Getmail() { return mail; }
void Setmail(QString val) { mail = val; }
QString Getmessage() { return message; }
void Setmessage(QString val) { message = val; }
protected:
private:
int id_reclamation;
QString nom;
QDate dater;
QString mail;
QString message;
};
#endif // RECLAMATION_H