From 749c0400fa579faf37f6bfcd75d3d5991cf53cf8 Mon Sep 17 00:00:00 2001 From: juergen Date: Fri, 13 Dec 2024 22:32:04 +0100 Subject: [PATCH 1/3] new --- .idea/.gitignore | 8 + .idea/editor.xml | 483 +++++++++++++++++++++++++++++++++++++++++++++++ .idea/misc.xml | 13 ++ .idea/vcs.xml | 6 + src/ui.c | 2 +- src/ui.h | 2 +- 6 files changed, 512 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/editor.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/editor.xml b/.idea/editor.xml new file mode 100644 index 0000000..b0d69ef --- /dev/null +++ b/.idea/editor.xml @@ -0,0 +1,483 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..bedf918 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/ui.c b/src/ui.c index 38dac4d..eeb2d9c 100644 --- a/src/ui.c +++ b/src/ui.c @@ -91,7 +91,7 @@ void newTime(void) if (newtime == NULL){ printf("Die Liste ist leer?!\n"); } - printf(" Neue Zeit eigneben: "); + printf(" Neue Zeit eingeben: "); if(scanf("%d",&newTime)!=1) { dump_buffer(stdin); diff --git a/src/ui.h b/src/ui.h index 750e9bf..3eba956 100644 --- a/src/ui.h +++ b/src/ui.h @@ -6,7 +6,7 @@ typedef struct task_elements{ char name; int priority; }; -typedef struct time{ +typedef struct time_e{ int time; }; From 7da1172d3a5704b53936b1098060241fcfabccdf Mon Sep 17 00:00:00 2001 From: juergen Date: Fri, 13 Dec 2024 22:32:51 +0100 Subject: [PATCH 2/3] typos --- src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui.c b/src/ui.c index eeb2d9c..6b0458a 100644 --- a/src/ui.c +++ b/src/ui.c @@ -7,7 +7,7 @@ #include #include "ui.h" -typedef struct task_elements { +typedef struct task { char name; int priority; struct task *nextTask; @@ -16,7 +16,7 @@ typedef struct task task_1; typedef struct task* task_ptr; task_ptr firsttask = NULL; -typedef struct time_elements { +typedef struct time { int time; struct time *nextTime; }; From 8c695e4eb78c7a2783a1f53f72e924c6abe393bb Mon Sep 17 00:00:00 2001 From: juergen Date: Sat, 14 Dec 2024 10:01:08 +0100 Subject: [PATCH 3/3] integrated case 4:Kalenderlink ausgabe --- src/ui.c | 17 +++++++++++++++-- src/ui.h | 8 -------- 2 files changed, 15 insertions(+), 10 deletions(-) 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