diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-04-12 07:05:56 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-04-12 07:05:56 +0800 |
commit | 045c2a07b9516383deb591fb1e68b2b48ea1bd14 (patch) | |
tree | a787d6db99f83915c5eec5cb67260c085b61c0ea /calendar/pcs/cal-backend-file.c | |
parent | 48182f64e86638a5420b3768c13a8ae4d0dbd249 (diff) | |
download | gsoc2013-evolution-045c2a07b9516383deb591fb1e68b2b48ea1bd14.tar.gz gsoc2013-evolution-045c2a07b9516383deb591fb1e68b2b48ea1bd14.tar.zst gsoc2013-evolution-045c2a07b9516383deb591fb1e68b2b48ea1bd14.zip |
new method.
2002-04-05 Rodrigo Moya <rodrigo@ximian.com>
* pcs/cal-backend.[ch] (cal_backend_get_query): new method.
* pcs/cal-backend-file.c (cal_backend_file_get_query): new method.
* pcs/cal.c (impl_Cal_get_query): call the CalBackend's implementation
instead of calling query_new directly.
* pcs/query.[ch]: fixed headers.
svn path=/trunk/; revision=16443
Diffstat (limited to 'calendar/pcs/cal-backend-file.c')
-rw-r--r-- | calendar/pcs/cal-backend-file.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index 424912e87b..5ca5a06f0e 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -95,6 +95,9 @@ static CalBackendOpenStatus cal_backend_file_open (CalBackend *backend, const char *uristr, gboolean only_if_exists); static gboolean cal_backend_file_is_loaded (CalBackend *backend); +static Query *cal_backend_file_get_query (CalBackend *backend, + GNOME_Evolution_Calendar_QueryListener ql, + const char *sexp); static CalMode cal_backend_file_get_mode (CalBackend *backend); static void cal_backend_file_set_mode (CalBackend *backend, CalMode mode); @@ -180,6 +183,7 @@ cal_backend_file_class_init (CalBackendFileClass *class) backend_class->get_uri = cal_backend_file_get_uri; backend_class->open = cal_backend_file_open; backend_class->is_loaded = cal_backend_file_is_loaded; + backend_class->get_query = cal_backend_file_get_query; backend_class->get_mode = cal_backend_file_get_mode; backend_class->set_mode = cal_backend_file_set_mode; backend_class->get_n_objects = cal_backend_file_get_n_objects; @@ -910,6 +914,19 @@ cal_backend_file_is_loaded (CalBackend *backend) return (priv->icalcomp != NULL); } +/* get_query handler for the file backend */ +static Query * +cal_backend_file_get_query (CalBackend *backend, + GNOME_Evolution_Calendar_QueryListener ql, + const char *sexp) +{ + CalBackendFile *cbfile; + + cbfile = CAL_BACKEND_FILE (backend); + + return query_new (backend, ql, sexp); +} + /* is_remote handler for the file backend */ static CalMode cal_backend_file_get_mode (CalBackend *backend) |