#ifndef CALENDAR_H
#define CALENDAR_H


#define CALENDAR_DIR "calendar"
#define EVENT_DB "event.db"

#define CALENDAR "calendar"
#define CALENDAR_SLOT "calendar_slot"
#define CALENDAR_EVENT_EDIT "calendar_event_edit"
#define CALENDAR_ERROR "calendar_error"
#define CALENDAR_PICK "calendar_pick"
#define CALENDAR_EVENT_DETAIL "calendar_event_detail"
#define CALENDAR_SYSTEM "calendar_system"
#define CALENDAR_SYSTEM_DETAIL "calendar_system_detail"


#define DOW_DATE_FORMAT "%a %m/%d/%Y"


#define MAX_CALENDAR_TITLE 25
#define MAX_END_DATE_STR 10
#define MAX_CALENDAR_DESC 250 
#define MAX_CATEGORY 25 
#define CATEGORY_1 "class"
#define CATEGORY_2 "system"



typedef struct event
{
     int id;
     char username[MAX_USERNAME +1];
     char realname[MAX_NAME +1];
     char title[MAX_CALENDAR_TITLE +1];
     char desc[MAX_CALENDAR_DESC +1];
     int year;
     int month;
     int day;
     int s_hour;
     int s_min;
     int e_hour;
     int e_min;
     char category[MAX_CATEGORY +1];
     int icon;
}EVENT;

typedef struct event_node
{
    EVENT event;
    struct event_node *next;
}EVENT_NODE;

typedef struct event_list
{
     EVENT_NODE *head;
     EVENT_NODE *current;
}EVENT_LIST;

#endif

