diff --git a/src/config.h b/src/config.h index 621c2bf..775bfc3 100644 --- a/src/config.h +++ b/src/config.h @@ -12,4 +12,17 @@ static const time_t pauseLenght = minutes(10); static const time_t minIntervalLen = minutes(30); +static const char *iCalHeader = "BEGIN:VCALENDAR" + "VERSION:2.0" + "PRODID:-//hacksw/handcal//NONSGML v1.0//EN"; + +static const char *iCalEvent = + "BEGIN:VEVENT" + "UID:uid1@example.com" + "ORGANIZER:CN=John Doe : MAILTO: john.doe@example.com" + "DTSTART:19970714T170000Z" + "DTEND:19970715T040000Z" + "SUMMARY:Bastille Day Party" + "END:VEVENT "; + #endif diff --git a/src/planner.c b/src/planner.c index 7980ca9..655bd4c 100644 --- a/src/planner.c +++ b/src/planner.c @@ -38,7 +38,7 @@ void printEvent(Event *s) { ctime_r(&s->plannedStartTime, st); ctime_r(&s->plannedEndTime, e); printf(eventFormat, s->task->name, st, e, s->spare); - printTask(s->task); + // printTask(s->task); } void llistPrintE(llist *head) { llist *c = head; diff --git a/src/test.c b/src/test.c index afa7130..b2fde59 100644 --- a/src/test.c +++ b/src/test.c @@ -39,7 +39,7 @@ int main() { // gnerate plan from task list in time struct tm *lc = localtime(&now); - lc->tm_hour += 12; // add available time; + lc->tm_hour += 4; // add available time; time_t maxTime = mktime(lc); // create timestamp llist *l1 = genPlan(list1, maxTime); // return inked list of event; llistPrintE(l1);