aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-recur.h
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-09-25 00:22:07 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-09-25 00:22:07 +0800
commitfb1cdc02878ea1c6a37671fc326145f8a20ded81 (patch)
tree2f7c4f3cabd0299a0e90f773a797082f39c1b323 /calendar/cal-util/cal-recur.h
parentbfa2f69ce5eb69f46106e443d793a732215259a4 (diff)
downloadgsoc2013-evolution-fb1cdc02878ea1c6a37671fc326145f8a20ded81.tar
gsoc2013-evolution-fb1cdc02878ea1c6a37671fc326145f8a20ded81.tar.gz
gsoc2013-evolution-fb1cdc02878ea1c6a37671fc326145f8a20ded81.tar.bz2
gsoc2013-evolution-fb1cdc02878ea1c6a37671fc326145f8a20ded81.tar.lz
gsoc2013-evolution-fb1cdc02878ea1c6a37671fc326145f8a20ded81.tar.xz
gsoc2013-evolution-fb1cdc02878ea1c6a37671fc326145f8a20ded81.tar.zst
gsoc2013-evolution-fb1cdc02878ea1c6a37671fc326145f8a20ded81.zip
set the height of the scrolled window for the description field, since the
2000-09-24 Damon Chaplin <damon@helixcode.com> * gui/dialogs/task-editor-dialog.glade: set the height of the scrolled window for the description field, since the default window height doesn't seem to be working. * cal-util/cal-component.h: added functions to get the actual icalproperty lists for RRULE and EXRULE properties. * cal-util/cal-recur.[hc]: added support for COUNT, though I need to test it a bit. Also fixed the call to generate_instances_for_year() so it uses the chunk dates. 2000-09-20 Damon Chaplin <damon@helixcode.com> * gui/event-editor.c: got rid of 1 '_' in '__Formatting'. svn path=/trunk/; revision=5562
Diffstat (limited to 'calendar/cal-util/cal-recur.h')
-rw-r--r--calendar/cal-util/cal-recur.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/calendar/cal-util/cal-recur.h b/calendar/cal-util/cal-recur.h
index 621985b71b..5adc235573 100644
--- a/calendar/cal-util/cal-recur.h
+++ b/calendar/cal-util/cal-recur.h
@@ -30,18 +30,8 @@
BEGIN_GNOME_DECLS
-typedef enum {
- CAL_RECUR_YEARLY,
- CAL_RECUR_MONTHLY,
- CAL_RECUR_WEEKLY,
- CAL_RECUR_DAILY,
- CAL_RECUR_HOURLY,
- CAL_RECUR_MINUTELY,
- CAL_RECUR_SECONDLY
-} CalRecurType;
-
typedef struct {
- CalRecurType type;
+ icalrecurrencetype_frequency freq;
int interval;
@@ -103,15 +93,18 @@ typedef gboolean (* CalRecurInstanceFn) (CalComponent *comp,
time_t instace_end,
gpointer data);
+/*
+ * Calls the given callback function for each occurrence of the event between
+ * the given start and end times. If end is 0 it continues until the event
+ * ends or forever if the event has an infinite recurrence rule.
+ * If the callback routine return 0 the occurrence generation stops.
+ */
void cal_recur_generate_instances (CalComponent *comp,
time_t start,
time_t end,
CalRecurInstanceFn cb,
gpointer cb_data);
-CalRecurrence *cal_recur_from_icalrecurrencetype (struct icalrecurrencetype *ir);
-void cal_recur_free (CalRecurrence *r);
-
END_GNOME_DECLS
#endif