diff --git a/src/ui.c b/src/ui.c index 6b0458a..8f7bdc6 100644 --- a/src/ui.c +++ b/src/ui.c @@ -2,16 +2,22 @@ * command line interface for user input * */ +/* Created by Juergen Buechel, 13.12.2024/ +*/ #include "planner.h" // for subject and event structs #include #include #include "ui.h" +#include "planner.h" +#include "iCal.h" +#include "db.h" typedef struct task { char name; int priority; struct task *nextTask; }; + typedef struct task task_1; typedef struct task* task_ptr; task_ptr firsttask = NULL; @@ -111,6 +117,11 @@ void tasklisting(void){ TaskPointer = TaskPointer->nextTask; } +void getlink (void) +{ + +} + int main(void) { int choice = 0, i = 0; @@ -119,7 +130,8 @@ int main(void) printf(" -1- Neues Fach eingeben\n"); printf(" -2- Verfuegbare Zeit eingeben\n"); printf(" -3- Alle vorhandenen Faecher aufliesten\n"); - printf(" -4- Planer beenden\n"); + printf(" -4- Kalenderlink ausgeben\n"); + printf(" -5- Planer beenden\n"); if( scanf("%d", &choice) != 1){ printf("Falsche Eingabe\n");}; choice = 0; @@ -135,8 +147,9 @@ int main(void) else{ tasklisting(); }break; + case 4: iCAl();break; } - }while (choice != 4); + }while (choice !=5); return EXIT_SUCCESS; } diff --git a/src/ui.h b/src/ui.h index 3eba956..e16c1c9 100644 --- a/src/ui.h +++ b/src/ui.h @@ -2,12 +2,4 @@ #define UI -typedef struct task_elements{ - char name; - int priority; -}; -typedef struct time_e{ - int time; -}; - #endif // !UI