diff options
Diffstat (limited to 'calendar/gui/alarm.h')
-rw-r--r-- | calendar/gui/alarm.h | 23 |
1 files changed, 18 insertions, 5 deletions
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 <time.h> -#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 |