aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/calobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/calobj.h')
-rw-r--r--calendar/pcs/calobj.h38
1 files changed, 29 insertions, 9 deletions
diff --git a/calendar/pcs/calobj.h b/calendar/pcs/calobj.h
index b16fe5f850..00dbd5c63e 100644
--- a/calendar/pcs/calobj.h
+++ b/calendar/pcs/calobj.h
@@ -12,11 +12,32 @@
BEGIN_GNOME_DECLS
+enum AlarmType {
+ ALARM_MAIL,
+ ALARM_PROGRAM,
+ ALARM_DISPLAY,
+ ALARM_AUDIO
+};
+
+enum AlarmUnit {
+ ALARM_MINUTES,
+ ALARM_HOURS,
+ ALARM_DAYS
+};
+
typedef struct {
- char *alarm_audio_file;
- char *alarm_script;
- char *alarm_email;
- char *alarm_text; /* Text to be displayed */
+ enum AlarmType type;
+ int enabled;
+ int count;
+ enum AlarmUnit units;
+ char *data;
+
+ /* 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;
} CalendarAlarm;
/* Calendar object type */
@@ -65,7 +86,6 @@ typedef struct {
time_t completed;
time_t created;
GList *contact; /* type: one or more TEXT */
- char *description;
time_t dtstamp;
time_t dtstart;
time_t dtend;
@@ -90,10 +110,10 @@ typedef struct {
char *url;
time_t recurid;
- CalendarAlarm *dalarm;
- CalendarAlarm *aalarm;
- CalendarAlarm *palarm;
- CalendarAlarm *malarm;
+ CalendarAlarm dalarm;
+ CalendarAlarm aalarm;
+ CalendarAlarm palarm;
+ CalendarAlarm malarm;
} iCalObject;
iCalObject *ical_new (char *comment, char *organizer, char *summary);
222-1/+165 * - Convert NOMANCOMPRESS to NO_MANCOMPRESS to sync with srcmiwi2009-12-291-1/+1 * Fix a SIGSEGV in ps/ps.c when ps is setuid root or when run by root.cy2009-03-073-5/+38 * - Add patch to work on -CURRENTgahr2009-03-032-8/+31 * Mark BROKEN on 8: does not build after recent TTY changes.erwin2009-01-091-1/+7 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1 * - Update to 070715gahr2008-04-152-7/+6 * Fix build on CURRENT after PS_SWAPPINGOUT renamearved2007-10-051-0/+12 * - Remove the DESTDIR modifications from individual ports as we have a new,gabor2007-08-041-1/+1 * - Remove FreeBSD 4.X support from unmaintained ports in categories startinggabor2007-04-201-7/+1 * - Update to 070227miwi2007-03-2912-538/+346 * Add support for DESTDIR part I.erwin2006-08-041-1/+1 * Unbreak by s/'/"/ in sed commands list.thierry2006-07-278-1/+129 * Fix amd64 buildvd2006-02-071-0/+20 * Update to 060122mnag2006-01-242-6/+6 * - Update to 051118sem2006-01-234-155/+341