From 987eeb288e6773997f38178747532d894d890d85 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sun, 30 Jun 2002 08:18:44 +0000 Subject: add pas-backend-summary.[ch]. 2002-06-29 Chris Toshok * backend/pas/Makefile.am (libpas_a_SOURCES): add pas-backend-summary.[ch]. * backend/pas/pas-backend-file.c (string_to_dbt): move this to the top of the file so it can be used in.. (build_summary): loop over the db, adding cards ot the summary. (do_summary_query): call pas_backend_summary_search and loop over the returned id's looking them up in the db. (pas_backend_file_search): call pas_backend_summary_is_summary_query, and either call do_summary_query if it's a query over just the set of attributes in the summary or use the old, slow method if not. (pas_backend_file_process_create_card): call pas_backend_summary_add_card. (pas_backend_file_process_remove_card): call pas_backend_summary_remove_card. (pas_backend_file_process_modify_card): call remove_card/add_card. (pas_backend_file_load_uri): try to load the summary file, and if it doesn't exist create it. (pas_backend_file_destroy): unref the summary. * backend/pas/pas-backend-summary.[ch]: new files, reading and writing (and querying) summaries. svn path=/trunk/; revision=17330 --- addressbook/backend/pas/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/backend/pas/Makefile.am') diff --git a/addressbook/backend/pas/Makefile.am b/addressbook/backend/pas/Makefile.am index 3f9a2627cd..237a11b83a 100644 --- a/addressbook/backend/pas/Makefile.am +++ b/addressbook/backend/pas/Makefile.am @@ -50,6 +50,8 @@ libpas_a_SOURCES = \ $(LDAP_BACKEND) \ pas-backend.c \ pas-backend.h \ + pas-backend-summary.c \ + pas-backend-summary.h \ pas-card-cursor.c \ pas-card-cursor.h -- cgit