diff options
author | JP Rosevear <jpr@ximian.com> | 2001-02-09 06:34:14 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-02-09 06:34:14 +0800 |
commit | fd277e89cfa040dcd1b79c10840e5afffaad80a4 (patch) | |
tree | b0bb54c23db4e31d508e925052d929adb8b90726 /calendar/pcs/cal-backend.h | |
parent | d85e3c92787852430d68b07da7c0398c906f7856 (diff) | |
download | gsoc2013-evolution-fd277e89cfa040dcd1b79c10840e5afffaad80a4.tar gsoc2013-evolution-fd277e89cfa040dcd1b79c10840e5afffaad80a4.tar.gz gsoc2013-evolution-fd277e89cfa040dcd1b79c10840e5afffaad80a4.tar.bz2 gsoc2013-evolution-fd277e89cfa040dcd1b79c10840e5afffaad80a4.tar.lz gsoc2013-evolution-fd277e89cfa040dcd1b79c10840e5afffaad80a4.tar.xz gsoc2013-evolution-fd277e89cfa040dcd1b79c10840e5afffaad80a4.tar.zst gsoc2013-evolution-fd277e89cfa040dcd1b79c10840e5afffaad80a4.zip |
Move the get_change code here
2001-02-08 JP Rosevear <jpr@ximian.com>
* pcs/cal-backend-file.c: Move the get_change code here
* pcs/cal-backend.c: Remove get_changes related stuff and
implement by calling the virtual method instead
* pcs/cal-backend.h: New virtual method.
* pcs/cal-backend-file.c (compute_alarm_range): Use
icaldurationtype_as_int (replace _as_timet)
(add_alarm_occurrences_cb): ditto
svn path=/trunk/; revision=8123
Diffstat (limited to 'calendar/pcs/cal-backend.h')
-rw-r--r-- | calendar/pcs/cal-backend.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/calendar/pcs/cal-backend.h b/calendar/pcs/cal-backend.h index efb7068165..3784601ddf 100644 --- a/calendar/pcs/cal-backend.h +++ b/calendar/pcs/cal-backend.h @@ -74,6 +74,7 @@ struct _CalBackendClass { CalBackendOpenStatus (* open) (CalBackend *backend, GnomeVFSURI *uri, gboolean only_if_exists); + /* General object acquirement and information related virtual methods */ int (* get_n_objects) (CalBackend *backend, CalObjType type); char *(* get_object) (CalBackend *backend, const char *uid); CalObjType(* get_type_by_uid) (CalBackend *backend, const char *uid); @@ -82,12 +83,18 @@ struct _CalBackendClass { GList *(* get_objects_in_range) (CalBackend *backend, CalObjType type, time_t start, time_t end); + /* Change related virtual methods */ + GNOME_Evolution_Calendar_CalObjChangeSeq * (* get_changes) ( + CalBackend *backend, CalObjType type, const char *change_id); + + /* Alarm related virtual methods */ GNOME_Evolution_Calendar_CalComponentAlarmsSeq *(* get_alarms_in_range) ( CalBackend *backend, time_t start, time_t end); GNOME_Evolution_Calendar_CalComponentAlarms *(* get_alarms_for_object) ( CalBackend *backend, const char *uid, time_t start, time_t end, gboolean *object_found); + /* Object manipulation virtual methods */ gboolean (* update_object) (CalBackend *backend, const char *uid, const char *calobj); gboolean (* remove_object) (CalBackend *backend, const char *uid); }; @@ -107,11 +114,12 @@ char *cal_backend_get_object (CalBackend *backend, const char *uid); GList *cal_backend_get_uids (CalBackend *backend, CalObjType type); -GNOME_Evolution_Calendar_CalObjChangeSeq * cal_backend_get_changes (CalBackend *backend, CalObjType type, const char *change_id); - GList *cal_backend_get_objects_in_range (CalBackend *backend, CalObjType type, time_t start, time_t end); +GNOME_Evolution_Calendar_CalObjChangeSeq * cal_backend_get_changes ( + CalBackend *backend, CalObjType type, const char *change_id); + GNOME_Evolution_Calendar_CalComponentAlarmsSeq *cal_backend_get_alarms_in_range ( CalBackend *backend, time_t start, time_t end, gboolean *valid_range); |