aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm.h
blob: 7e1695224078c762763a810d3bee32c85761eaf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef ALARM_H
#define ALARM_H

#include <time.h>
#include "cal-client/cal-client-alarm.h"

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;

        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