integrated case 4:Kalenderlink ausgabe

ui.c
Jürgen Büchel 2024-12-14 10:01:08 +01:00
parent 36a3f8d28c
commit 8c695e4eb7
2 changed files with 15 additions and 10 deletions

View File

@ -2,16 +2,22 @@
* command line interface for user input * command line interface for user input
* *
*/ */
/* Created by Juergen Buechel, 13.12.2024/
*/
#include "planner.h" // for subject and event structs #include "planner.h" // for subject and event structs
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "ui.h" #include "ui.h"
#include "planner.h"
#include "iCal.h"
#include "db.h"
typedef struct task { typedef struct task {
char name; char name;
int priority; int priority;
struct task *nextTask; struct task *nextTask;
}; };
typedef struct task task_1; typedef struct task task_1;
typedef struct task* task_ptr; typedef struct task* task_ptr;
task_ptr firsttask = NULL; task_ptr firsttask = NULL;
@ -111,6 +117,11 @@ void tasklisting(void){
TaskPointer = TaskPointer->nextTask; TaskPointer = TaskPointer->nextTask;
} }
void getlink (void)
{
}
int main(void) int main(void)
{ {
int choice = 0, i = 0; int choice = 0, i = 0;
@ -119,7 +130,8 @@ int main(void)
printf(" -1- Neues Fach eingeben\n"); printf(" -1- Neues Fach eingeben\n");
printf(" -2- Verfuegbare Zeit eingeben\n"); printf(" -2- Verfuegbare Zeit eingeben\n");
printf(" -3- Alle vorhandenen Faecher aufliesten\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){ if( scanf("%d", &choice) != 1){
printf("Falsche Eingabe\n");}; printf("Falsche Eingabe\n");};
choice = 0; choice = 0;
@ -135,8 +147,9 @@ int main(void)
else{ else{
tasklisting(); tasklisting();
}break; }break;
case 4: iCAl();break;
} }
}while (choice != 4); }while (choice !=5);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -2,12 +2,4 @@
#define UI #define UI
typedef struct task_elements{
char name;
int priority;
};
typedef struct time_e{
int time;
};
#endif // !UI #endif // !UI