From 3532a74349645ca733bafe1417822ba2bfb9bd26 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 19 Jan 2001 14:57:09 +0000 Subject: create a new cal component alarm (cal_component_add_alarm): add alarm to 2001-01-19 JP Rosevear * cal-util/cal-component.c (cal_component_alarm_new): create a new cal component alarm (cal_component_add_alarm): add alarm to the cal component (cal_component_remove_alarm): remove alarm from the cal component (remove_alarm): remove alarm from hash * cal-util/cal-component.h: new protos * conduits/calendar/calendar-conduit.c (comp_from_remote_record): add alarm information, still needs to be hacked to replace an already existing alarm. questions abound about the heuristic for doing this. 2001-01-17 JP Rosevear * README: Update package requirements svn path=/trunk/; revision=7647 --- .../tmpl/evolution-cal-client-unused.sgml | 42 ++-- .../calendar/cal-util/evolution-cal-util-decl.txt | 269 +++++++++++---------- .../cal-util/tmpl/evolution-cal-util-unused.sgml | 164 ++++++------- 3 files changed, 245 insertions(+), 230 deletions(-) (limited to 'doc/devel/calendar') diff --git a/doc/devel/calendar/cal-client/tmpl/evolution-cal-client-unused.sgml b/doc/devel/calendar/cal-client/tmpl/evolution-cal-client-unused.sgml index 56bcf3aff5..f8f1f1408e 100644 --- a/doc/devel/calendar/cal-client/tmpl/evolution-cal-client-unused.sgml +++ b/doc/devel/calendar/cal-client/tmpl/evolution-cal-client-unused.sgml @@ -1,14 +1,13 @@ - + @client: -@uid: -@pilot_id: -@pilot_status: +@str_uri: +@Returns: - + @@ -17,19 +16,6 @@ @str_uri: @Returns: - - - These values describe the status of a calendar load or create - request. After asking a calendar factory to load or create a - calendar, the provided listener will get notification about the - result in asynchronous fashion. Such notification is represented - by one of these enumeration values. For values other than - #CAL_CLIENT_LOAD_SUCCESS, the #CalClient object will not accept - any other operations on the calendar and it should just be - destroyed. - - - @@ -63,14 +49,28 @@ @client: @Returns: - + @client: -@str_uri: -@Returns: +@uid: +@pilot_id: +@pilot_status: + + + + These values describe the status of a calendar load or create + request. After asking a calendar factory to load or create a + calendar, the provided listener will get notification about the + result in asynchronous fashion. Such notification is represented + by one of these enumeration values. For values other than + #CAL_CLIENT_LOAD_SUCCESS, the #CalClient object will not accept + any other operations on the calendar and it should just be + destroyed. + + diff --git a/doc/devel/calendar/cal-util/evolution-cal-util-decl.txt b/doc/devel/calendar/cal-util/evolution-cal-util-decl.txt index 114129515b..9439f57fac 100644 --- a/doc/devel/calendar/cal-util/evolution-cal-util-decl.txt +++ b/doc/devel/calendar/cal-util/evolution-cal-util-decl.txt @@ -1,3 +1,128 @@ + +CalRecurInstanceFn +gboolean +CalComponent *comp, + time_t instance_start, + time_t instance_end, + gpointer data + + +cal_recur_generate_instances +void +CalComponent *comp,time_t start,time_t end,CalRecurInstanceFn cb,gpointer cb_data + + +CalObjInstance +typedef struct { + char *uid; /* UID of the object */ + time_t start; /* Start time of instance */ + time_t end; /* End time of instance */ +} CalObjInstance; + + +cal_obj_instance_list_free +void +GList *list + + +CalObjType +typedef enum { + CALOBJ_TYPE_EVENT = 1 << 0, + CALOBJ_TYPE_TODO = 1 << 1, + CALOBJ_TYPE_JOURNAL = 1 << 2, + CALOBJ_TYPE_ANY = 0x07 +} CalObjType; + + +cal_obj_uid_list_free +void +GList *list + + +isodate_from_time_t +char * +time_t t + + +time_add_minutes +time_t +time_t time, int minutes + + +time_add_day +time_t +time_t time, int days + + +time_add_week +time_t +time_t time, int weeks + + +time_add_month +time_t +time_t time, int months + + +time_add_year +time_t +time_t time, int years + + +time_days_in_month +int +int year, int month + + +time_from_day +time_t +int year, int month, int day + + +time_year_begin +time_t +time_t t + + +time_year_end +time_t +time_t t + + +time_month_begin +time_t +time_t t + + +time_month_end +time_t +time_t t + + +time_week_begin +time_t +time_t t + + +time_week_end +time_t +time_t t + + +time_day_begin +time_t +time_t t + + +time_day_end +time_t +time_t t + + +print_time_t +void +time_t t + CAL_COMPONENT_TYPE #define CAL_COMPONENT_TYPE (cal_component_get_type ()) @@ -594,6 +719,16 @@ typedef struct { CalComponent *comp +cal_component_add_alarm +void +CalComponent *comp, CalComponentAlarm *alarm + + +cal_component_remove_alarm +void +CalComponent *comp, const char *auid + + cal_component_get_alarm_uids GList * CalComponent *comp @@ -604,16 +739,16 @@ CalComponent *comp CalComponent *comp, const char *auid -cal_component_alarm_free -void -CalComponentAlarm *alarm - - cal_component_alarms_free void CalComponentAlarms *alarms +cal_component_alarm_new +CalComponentAlarm * +void + + cal_component_alarm_get_uid const char * CalComponentAlarm *alarm @@ -638,128 +773,8 @@ CalComponentAlarm *alarm, CalAlarmTrigger *trigger void CalComponentAlarm *alarm, CalAlarmTrigger trigger - -CalRecurInstanceFn -gboolean -CalComponent *comp, - time_t instance_start, - time_t instance_end, - gpointer data - - -cal_recur_generate_instances -void -CalComponent *comp,time_t start,time_t end,CalRecurInstanceFn cb,gpointer cb_data - - -CalObjInstance -typedef struct { - char *uid; /* UID of the object */ - time_t start; /* Start time of instance */ - time_t end; /* End time of instance */ -} CalObjInstance; - - -cal_obj_instance_list_free -void -GList *list - - -CalObjType -typedef enum { - CALOBJ_TYPE_EVENT = 1 << 0, - CALOBJ_TYPE_TODO = 1 << 1, - CALOBJ_TYPE_JOURNAL = 1 << 2, - CALOBJ_TYPE_ANY = 0x07 -} CalObjType; - - -cal_obj_uid_list_free -void -GList *list - - -isodate_from_time_t -char * -time_t t - - -time_add_minutes -time_t -time_t time, int minutes - - -time_add_day -time_t -time_t time, int days - - -time_add_week -time_t -time_t time, int weeks - - -time_add_month -time_t -time_t time, int months - - -time_add_year -time_t -time_t time, int years - - -time_days_in_month -int -int year, int month - - -time_from_day -time_t -int year, int month, int day - - -time_year_begin -time_t -time_t t - - -time_year_end -time_t -time_t t - - -time_month_begin -time_t -time_t t - - -time_month_end -time_t -time_t t - -time_week_begin -time_t -time_t t - - -time_week_end -time_t -time_t t - - -time_day_begin -time_t -time_t t - - -time_day_end -time_t -time_t t - - -print_time_t +cal_component_alarm_free void -time_t t +CalComponentAlarm *alarm diff --git a/doc/devel/calendar/cal-util/tmpl/evolution-cal-util-unused.sgml b/doc/devel/calendar/cal-util/tmpl/evolution-cal-util-unused.sgml index ff68fae99d..93625da7df 100644 --- a/doc/devel/calendar/cal-util/tmpl/evolution-cal-util-unused.sgml +++ b/doc/devel/calendar/cal-util/tmpl/evolution-cal-util-unused.sgml @@ -1,44 +1,38 @@ - - - - - -@CAL_COMPONENT_ALARM_TRIGGER_RELATED_START: -@CAL_COMPONENT_ALARM_TRIGGER_RELATED_END: - - + -@r: +@CAL_COMPONENT_ALARM_NONE: +@CAL_COMPONENT_ALARM_AUDIO: +@CAL_COMPONENT_ALARM_DISPLAY: +@CAL_COMPONENT_ALARM_EMAIL: +@CAL_COMPONENT_ALARM_PROCEDURE: +@CAL_COMPONENT_ALARM_UNKNOWN: - + -@CAL_RECUR_YEARLY: -@CAL_RECUR_MONTHLY: -@CAL_RECUR_WEEKLY: -@CAL_RECUR_DAILY: -@CAL_RECUR_HOURLY: -@CAL_RECUR_MINUTELY: -@CAL_RECUR_SECONDLY: +@str: +@Returns: - + +@comp: +@pilot_status: - + -@comp: -@pilot_id: +@ir: +@Returns: @@ -48,28 +42,29 @@ @t: @Returns: - + -@trigger: +@start: +@duration: +@Returns: - + -@t: -@hour: -@Returns: +@CAL_RECUR_YEARLY: +@CAL_RECUR_MONTHLY: +@CAL_RECUR_WEEKLY: +@CAL_RECUR_DAILY: +@CAL_RECUR_HOURLY: +@CAL_RECUR_MINUTELY: +@CAL_RECUR_SECONDLY: - + @@ -77,113 +72,108 @@ End: @str: @Returns: - + @comp: -@pilot_status: +@pilot_id: - + -@year: -@month: -@day: -@hour: -@minute: -@second: +@CAL_COMPONENT_ALARM_TRIGGER_RELATED_START: +@CAL_COMPONENT_ALARM_TRIGGER_RELATED_END: - + +@str: +@Returns: - + -@CAL_COMPONENT_ALARM_TRIGGER_RELATIVE: -@CAL_COMPONENT_ALARM_TRIGGER_ABSOLUTE: +@r: - + -@ir: +@itt: @Returns: - + -@list: +@t: +@hour: +@Returns: - + -@str: +@comp: @Returns: - + -@comp: -@Returns: - + +@secs: +@Returns: - + -@comp: -@Returns: +@trigger: - + -@itt: -@Returns: - + -@CAL_COMPONENT_ALARM_NONE: -@CAL_COMPONENT_ALARM_AUDIO: -@CAL_COMPONENT_ALARM_DISPLAY: -@CAL_COMPONENT_ALARM_EMAIL: -@CAL_COMPONENT_ALARM_PROCEDURE: -@CAL_COMPONENT_ALARM_UNKNOWN: +@list: - + -@start: -@duration: -@Returns: +@comp: +@pilot_status: @@ -193,13 +183,17 @@ End: @comp: @pilot_id: - + -@secs: -@Returns: +@year: +@month: +@day: +@hour: +@minute: +@second: @@ -210,19 +204,25 @@ End: @use_am_pm: @Returns: - + @comp: -@pilot_status: +@Returns: - + + + + + +@CAL_COMPONENT_ALARM_TRIGGER_RELATIVE: +@CAL_COMPONENT_ALARM_TRIGGER_ABSOLUTE: + + -@str: -@Returns: -- cgit