-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule.h
60 lines (49 loc) · 1.58 KB
/
schedule.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
//
// Created by MehdiRbk on 10/12/2023.
//
#ifndef PROJET2_GESTION_AGENDA_SCHEDULE_H
#define PROJET2_GESTION_AGENDA_SCHEDULE_H
#include "time.h"
typedef struct s_contact{
char* surname_name;
}t_contact;
typedef struct s_appointment{
t_date date_appointment;
t_hour hour_appointment;
t_hour duration;
char* object;
}t_appointment;
typedef struct s_appointment_cell{
t_appointment appointment;
struct s_appointment_cell* next;
}t_appointment_cell;
typedef struct s_appointment_list{
t_appointment_cell * head;
}t_appointment_list;
typedef struct s_contact_schedule {
t_contact contact;
t_appointment_list * appointment;
}t_contact_schedule;
typedef struct s_schedule_cell{
char* pseudo;
int level;
t_contact_schedule contactSchedule;
struct s_schedule_cell* next[];
}t_schedule_cell;
typedef struct s_schedule_list{
t_schedule_cell* head;
int max_level;
}t_schedule_list;
char * scanString(void);
t_contact createContact();
void displayContactAppointment(t_contact_schedule);
char* createPseudo(char *);
void deleteAppointment(t_contact_schedule* contactSchedule,int nbrAppointment);
t_appointment createAppointment();
t_contact_schedule* createContactSchedule();
t_appointment_cell* createAppointmentCell();
void insertNewAppointmentforContact(t_contact_schedule* contactSchedule);
t_schedule_cell * createScheduleCell(int level, t_contact_schedule *contactSchedule);
t_schedule_list createScheduleList();
void InsertCellOrderInScheduleList(t_schedule_list myScheduleList,t_schedule_cell *MyScheduleCell);
#endif //PROJET2_GESTION_AGENDA_SCHEDULE_H