aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas/pas-backend-file.c
Commit message (Collapse)AuthorAgeFilesLines
* remove unnecessary strdup/free.Chris Toshok2000-03-291-10/+6
| | | | | | | | * addressbook/backend/pas/pas-backend-file.c (pas_backend_file_build_all_cards_list): remove unnecessary strdup/free. svn path=/trunk/; revision=2240
* Removed an infinite loop.Christopher James Lahey2000-03-291-2/+1
| | | | | | | | | | | | | | | 2000-03-28 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/pas/pas-backend-file.c: Removed an infinite loop. * addressbook/backend/ebook/test-client-list.c: New test that doesn't add an extra database item. * addressbook/backend/ebook/Makefile.am, addressbook/backend/ebook/.cvsignore: Added test-client-list. svn path=/trunk/; revision=2239
* Fixed memory allocation.Christopher James Lahey2000-03-291-10/+13
| | | | | | | | | | | | | | | | | | 2000-03-28 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/pas/pas-card-cursor.c: Fixed memory allocation. * addressbook/backend/pas/pas-backend-file.c: Fixed memory allocation. Made database stuff not do an extra entry. * addressbook/backend/ebook/test-client.c: Add test for get_all_cards functionality. Changed database name to test.db. * addressbook/backend/ebook/e-card-cursor.c: Changed bonobo_object to gtk_object in a couple of places. svn path=/trunk/; revision=2236
* create id's for entries using the following format: ("pas-id-%08lX%08X",Chris Toshok2000-03-291-1/+6
| | | | | | | | * addressbook/backend/pas/pas-backend-file.c (pas_backend_file_create_unique_id): create id's for entries using the following format: ("pas-id-%08lX%08X", time(NULL), c++). svn path=/trunk/; revision=2235
* implement function. (get_nth): implement function. (cursor_destroy): freeChris Toshok2000-03-281-9/+54
| | | | | | | | | | | | | | * addressbook/backend/pas/pas-backend-file.c (get_length): implement function. (get_nth): implement function. (cursor_destroy): free up the internal glist of vcards, and fix warning. (pas_backend_file_build_all_cards_list): new function, to build up the list of cards in the db. (pas_backend_file_process_get_all_cards): call pas_backend_file_build_+all_cards_list, and fix warning. svn path=/trunk/; revision=2210
* remove unneeded g_strdup;Chris Toshok2000-03-281-2/+0
| | | | | | | * addressbook/backend/pas/pas-backend-file.c (pas_backend_file_get_vcard): remove unneeded g_strdup; svn path=/trunk/; revision=2207
* Fixed some warnings.Christopher James Lahey2000-03-281-2/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-03-27 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/test-card.c: Fixed some warnings. * addressbook/backend/ebook/test-client.c: Added a section to test cursors and returning an id when adding. * addressbook/backend/ebook/e-card-pairs.h: Removed the address pairs since they were added to e-card.c. * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h: Made the set_id function take a const char *. * addressbook/backend/ebook/e-book-listener.c, addressbook/backend/ebook/e-book-listener.h, addressbook/backend/ebook/e-book.c, addressbook/backend/ebook/e-book.h, addressbook/backend/idl/addressbook.idl, addressbook/backend/pas/pas-backend-file.c, addressbook/backend/pas/pas-book.c, addressbook/backend/pas/pas-book.h: Added a get_all_cards function and made the response to the create_card function include the card id. * addressbook/backend/ebook/Makefile.am: Added e-card-cursor.c and e-card-cursor.h. * addressbook/backend/ebook/e-card-cursor.c, addressbook/backend/ebook/e-card-cursor.h: New class for proxying to an Evolution_CardCursor. * addressbook/backend/pas/Makefile.am: Added pas-card-cursor.c and pas-card-cursor.h. * addressbook/backend/pas/pas-card-cursor.c, addressbook/backend/pas/pas-card-cursor.h: New bonobo class for making an Evolution_CardCursor server. svn path=/trunk/; revision=2205
* include config.hSeth Alves2000-03-271-1/+2
| | | | svn path=/trunk/; revision=2185
* HAVE_DB_185_h => HAVE_DB_185_HChris Toshok2000-03-271-1/+1
| | | | svn path=/trunk/; revision=2184
* if HAVE_DB_185_H is defined, include it.Chris Toshok2000-03-271-0/+4
| | | | svn path=/trunk/; revision=2180
* (string_to_dbt): new function.Chris Toshok2000-03-271-17/+76
| | | | | | | | | | | | | | (pas_backend_file_process_create_card): use string_to_dbt (pas_backend_file_process_remove_card): likewise (pas_backend_file_process_modify_card): likewise (pas_backend_file_get_vcard): likewise (pas_backend_file_upgrade_db): new function, to upgrade a db file if we change the data format. (pas_backend_file_maybe_upgrade_db): check db version vs. current code version, and upgrade it necessary. (pas_backend_file_load_uri): call pas_backend_file_maybe_upgrade. svn path=/trunk/; revision=2178
* ChangeLogChris Toshok2000-03-271-25/+72
| | | | svn path=/trunk/; revision=2176
* add initial work on file pas backend, using db(3).Chris Toshok2000-03-261-4/+88
| | | | svn path=/trunk/; revision=2167
* Added the addressbook/backend directory.Christopher James Lahey2000-03-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-03-22 Christopher James Lahey <clahey@helixcode.com> * addressbook/Makefile.am, configure.in: Added the addressbook/backend directory. * addressbook/backend/Makefile.am: Removed the libversit directory as it's now included in the base evolution directory. * addressbook/backend/ebook/e-card-pairs.h, addressbook/backend/ebook/Makefile.am: Changed the place where libversit is looked for. * addressbook/backend/ebook/e-book-listener.c: Fixed some indentation. * addressbook/backend/ebook/e-card-pairs.h, addressbook/backend/ebook/e-card-types.h: Commented out some code to get this to compile. * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h: Turned this into a GTK+ object. * addressbook/backend/pas/pas.c, addressbook/backend/ebook/test-client.c: Include gnome.h and gnorba.h. * addressbook/backend/idl/addressbook.idl: Include Bonobo.idl instead of bonobo-unknown.idl. * addressbook/backend/pas/pas-backend-file.c, addressbook/backend/pas/pas-book.c, addressbook/contact-editor/test-editor.c, addressbook/contact-editor/e-contact-editor.c, addressbook/printing/e-contact-print.c, addressbook/printing/test-contact-print-style-editor.c, addressbook/printing/test-print.c: Killed some warnings. svn path=/trunk/; revision=2150
* More work.Nat Friedman2000-01-251-0/+272
svn path=/trunk/; revision=1626