2024-12-09 11:33:10 +01:00
|
|
|
# Data strucures
|
|
|
|
|
2024-12-09 13:32:32 +01:00
|
|
|
Possible data structure layout
|
|
|
|
|
2024-12-09 11:33:10 +01:00
|
|
|
```C
|
|
|
|
typedef struct Subject{
|
|
|
|
char * name;
|
|
|
|
time_t * created;
|
|
|
|
time_t * deadline;
|
2024-12-09 21:12:41 +01:00
|
|
|
int priority;
|
2024-12-10 22:06:49 +01:00
|
|
|
unsigned long long spare;
|
2024-12-09 11:33:10 +01:00
|
|
|
} Subject;
|
|
|
|
|
2024-12-09 21:12:41 +01:00
|
|
|
|
2024-12-09 11:33:10 +01:00
|
|
|
typedef struct Event {
|
2024-12-09 21:12:41 +01:00
|
|
|
Subject subject;
|
2024-12-09 11:33:10 +01:00
|
|
|
time_t plannedStartTime;
|
|
|
|
time_t plannedEndTime;
|
2024-12-10 22:06:49 +01:00
|
|
|
unsigned long long spare;
|
2024-12-09 11:33:10 +01:00
|
|
|
}Event;
|
|
|
|
```
|
2024-12-09 13:32:32 +01:00
|
|
|
|
|
|
|
## Functionality
|
|
|
|
|
|
|
|
Day plan can either be crated from user input or read from file to continue previous day.
|
|
|
|
|
|
|
|
priority and available time are used to create dayplan which is exported as iCal
|
|
|
|
|
|
|
|
after task is completed and priorities are updated for next day and stored in file.
|