Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / libecal / e-cal-recur.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Evolution calendar recurrence rule functions
4  *
5  * Copyright (C) 2000 Ximian, Inc.
6  *
7  * Author: Damon Chaplin <damon@ximian.com>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of version 2 of the GNU Lesser General Public
11  * License as published by the Free Software Foundation.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  */
22
23 #ifndef E_CAL_RECUR_H
24 #define E_CAL_RECUR_H
25
26 #include <glib.h>
27 #include <libecal/e-cal-component.h>
28
29 G_BEGIN_DECLS
30
31 typedef gboolean (* ECalRecurInstanceFn) (ECalComponent *comp,
32                                          time_t        instance_start,
33                                          time_t        instance_end,
34                                          gpointer      data);
35
36 typedef icaltimezone* (* ECalRecurResolveTimezoneFn)    (const char   *tzid,
37                                                          gpointer      data);
38
39 void    e_cal_recur_generate_instances  (ECalComponent          *comp,
40                                          time_t                  start,
41                                          time_t                  end,
42                                          ECalRecurInstanceFn     cb,
43                                          gpointer                cb_data,
44                                          ECalRecurResolveTimezoneFn tz_cb,
45                                          gpointer                  tz_cb_data,
46                                          icaltimezone           *default_timezone);
47
48 /* Localized nth-day-of-month strings. (Use with _() ) */
49 #ifdef G_OS_WIN32
50 extern const char **e_cal_get_recur_nth (void);
51 #define e_cal_recur_nth (e_cal_get_recur_nth ())
52 #else
53 extern const char *e_cal_recur_nth[31];
54 #endif
55
56 G_END_DECLS
57
58 #endif