aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/cal_struct.h19
-rw-r--r--calendar/gui/cal_struct.h19
2 files changed, 32 insertions, 6 deletions
diff --git a/calendar/cal_struct.h b/calendar/cal_struct.h
index 77420cf9ff..411036c7aa 100644
--- a/calendar/cal_struct.h
+++ b/calendar/cal_struct.h
@@ -1,14 +1,27 @@
+#define MAX_SZ 30
+
+enum RepeatType {
+ Single,
+ Days,
+ Months,
+ WeekDays,
+ MonthDays
+};
+
+
struct actionitem {
char date[MAX_SZ];
- char time[MAX_SZ];
-}
+ int time; /* Minutes past midnight */
+};
struct event {
struct actionitem start;
struct actionitem end;
+ enum RepeatType repeat;
+ int repeatcount;
char description[MAX_SZ];
char subtype[MAX_SZ];
GList *properties;
-}
+};
diff --git a/calendar/gui/cal_struct.h b/calendar/gui/cal_struct.h
index 77420cf9ff..411036c7aa 100644
--- a/calendar/gui/cal_struct.h
+++ b/calendar/gui/cal_struct.h
@@ -1,14 +1,27 @@
+#define MAX_SZ 30
+
+enum RepeatType {
+ Single,
+ Days,
+ Months,
+ WeekDays,
+ MonthDays
+};
+
+
struct actionitem {
char date[MAX_SZ];
- char time[MAX_SZ];
-}
+ int time; /* Minutes past midnight */
+};
struct event {
struct actionitem start;
struct actionitem end;
+ enum RepeatType repeat;
+ int repeatcount;
char description[MAX_SZ];
char subtype[MAX_SZ];
GList *properties;
-}
+};