-
Notifications
You must be signed in to change notification settings - Fork 1
/
client_marriage.h
57 lines (46 loc) · 1.44 KB
/
client_marriage.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
#ifndef CLIENT_MARRIAGE_H
#define CLIENT_MARRIAGE_H
#include <QString>
#include <iostream>
#include <sstream>
#include <QDebug>
#include <QtDebug>
#include <QMessageBox>
#include <QSqlQueryModel>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
class client_marriage
{
private:
QString nom_m,prenom_m,email,nom_f,prenom_f;
QString budget,phone_m,phone_f,cin_m,cin_f,date;
public:
client_marriage();
client_marriage(QString,QString,QString,QString,QString,QString,QString,QString,QString,QString,QString);
// les accesseures
QString get_nom_m(){return nom_m;}
QString get_prenom_m(){return prenom_m;}
QString get_cin_m(){return cin_m;}
QString get_phone_m(){return phone_m;}
QString get_nom_f(){return nom_f;}
QString get_prenom_f(){return prenom_f;}
QString get_cin_f(){return cin_f;}
QString get_phone_f(){return phone_f;}
QString get_email(){return email;}
QString get_budget(){return budget;}
QString get_date(){return date;}
bool ajouter_client(int);
bool supprimer_client(QString );
bool update_client_info(QString);
int unique_cin_search(QString );
int count_id();
int clear_table_marriage();
QSqlQuery search_client_update(QString id);
int check_id_client(QString id);
void update_confirmation(QString id);
QSqlQuery *order_by_name();
QSqlQuery *order_by_email();
QSqlQuery *order_by_confirmation();
};
#endif // CLIENT_MARRIAGE_H