From 34eff34dd935025d733904b03b20c764637d688a Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Mon, 6 Mar 2000 00:10:24 +0000 Subject: stubs for client side access to alarm structures. this will probably * cal-client/cal-client-alarm.c: stubs for client side access to alarm structures. this will probably change, since i don't know what i'm doing. * cal-util/alarm-enums.h: enums for alarms needed by both the client and the server * remaining source files in calendar/... have been moved to calendar/gui. * gui/alarm.c: start to decouple the view from the model in the alarm editing code svn path=/trunk/; revision=2062 --- calendar/gui/alarm.h | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'calendar/gui/alarm.h') diff --git a/calendar/gui/alarm.h b/calendar/gui/alarm.h index 6bb5c1afa5..7e16952240 100644 --- a/calendar/gui/alarm.h +++ b/calendar/gui/alarm.h @@ -2,12 +2,25 @@ #define ALARM_H #include -#include "pcs/calobj.h" +#include "cal-client/cal-client-alarm.h" -typedef void (*AlarmFunction)(time_t time, CalendarAlarm *which, void *closuse); +typedef struct { + /* Widgets */ + void *w_count; /* A GtkEntry */ + void *w_enabled; /* A GtkChecButton */ + void *w_timesel; /* A GtkMenu */ + void *w_entry; /* A GnomeEntryFile/GtkEntry for PROGRAM/MAIL */ + void *w_label; -void alarm_init (void); -gboolean alarm_add (CalendarAlarm *alarm, AlarmFunction fn, void *closure); -int alarm_kill (void *closure); + AlarmHandle alarm_handle; /* something that hooks to the server */ +} CalendarAlarmUI; + +typedef void (*AlarmFunction) (time_t time, + CalendarAlarmUI *which, + void *closuse); + +void alarm_init (void); +gboolean alarm_add (CalendarAlarmUI *alarm, AlarmFunction fn, void *closure); +int alarm_kill (void *closure); #endif -- cgit v1.2.3