aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed a bug where I was sending the wrong information to some callbacks.Christopher James Lahey2000-04-106-16/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-04-10 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-book-view.c: Fixed a bug where I was sending the wrong information to some callbacks. * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h: Added an e_card_duplicate function. Made ids get stored in vcards. Made sure to delete the url if it exists. * addressbook/backend/pas/Makefile.am: Made pas include addressbook/backend/ebook/ in the search path. * addressbook/backend/pas/pas-backend-file.c: Fixed some bugs and made the create card function store the generated id in the card being saved. * addressbook/backend/pas/pas-book-view.c: Fixed a double free bug. * addressbook/contact-editor/e-contact-editor.c: Fixed some bugs. Made the contact editor actually return a valid card when gtk_object_get(editor, "card", ...) is called. * addressbook/contact-editor/e-contact-editor.h: Fixed a copy and paste error. * addressbook/gui/component/addressbook.c: Made this get the card properly. * addressbook/gui/minicard/Makefile.am: Made this include contact-editor directory in the search path and link against libecontacteditor so that double clicking can open a dialog. * addressbook/gui/minicard/e-minicard.c: Fixed some small bugs. Made double clicking open a contact editor dialog if this minicard is contained in a minicard view. (It needs the minicard view to get the EBook to save to. * wombat/Makefile.am: Link wombat against libebook, since pas-backend-file now uses ECard. svn path=/trunk/; revision=2360
* Made the contact editor load from an ECard.Christopher James Lahey2000-04-092-4/+26
| | | | | | | | | | | | | | | | | 2000-04-08 Christopher James Lahey <clahey@helixcode.com> * addressbook/contact-editor/Makefile.am, addressbook/contact-editor/e-contact-editor.c, addressbook/contact-editor/e-contact-editor.h, addressbook/contact-editor/test-editor.c: Made the contact editor load from an ECard. * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h, addressbook/gui/minicard/e-minicard.c: Added support for the URL field. svn path=/trunk/; revision=2349
* Fixed a small typo.Christopher James Lahey2000-04-091-1/+1
| | | | | | | | | 2000-04-08 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card.c (e_card_get_vcard): Fixed a small typo. svn path=/trunk/; revision=2347
* pixmap_DATA isn't defined so don't use it as a variable.Christopher James Lahey2000-04-095-24/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-04-08 Christopher James Lahey <clahey@helixcode.com> * art/Makefile.am: pixmap_DATA isn't defined so don't use it as a variable. * addressbook/gui/component/, addressbook/gui/component/.cvsignore, addressbook/gui/Makefile.am, addressbook/gui/component/addressbook-factory.c, addressbook/gui/component/addressbook.c, addressbook/gui/component/addressbook.gnorba, addressbook/gui/component/addressbook.h: New directory to proivde the component for contact management. Simply uses an e-minicard-view. * addressbook/gui/minicard/e-minicard-view.c, addressbook/gui/minicard/e-minicard-view.h: New subclass of e-reflow-sorted that takes an EBook and uses it to compute the card data to display. * addressbook/gui/minicard/e-minicard.c, addressbook/gui/minicard/e-minicard.h: This now backends to a ECard instead of a ETableModel. * addressbook/gui/minicard/e-reflow.c, addressbook/gui/minicard/e-reflow.h: This now has a virtualized add method. * addressbook/gui/minicard/e-reflow-sorted.c, addressbook/gui/minicard/e-reflow-sorted.h: New subclass of e-reflow that allows the data to be sorted on the fly. * addressbook/gui/minicard/test-minicard-view.c: New test to test the new minicard view. * addressbook/gui/minicard/test-reflow.c: Uses the new ECard backend of the e-minicard. * addressbook/gui/minicard/.cvsignore, addressbook/gui/minicard/Makefile.am: Added new test. Fixed dependencies. Added new files. * addressbook/gui/, addressbook/gui/Makefile.am, addressbook/gui/.cvsignore: New directory for addressbook gui bits. Added subdirectories. Created an initial .cvsignore. * addressbook/Makefile.am (SUBDIRS): Removed demo and added gui. * addressbook/backend/pas/pas-backend-file.c: Added code to do notification on bookviews when changes in the backend are made. * addressbook/backend/pas/pas-book-view.c, addressbook/backend/pas/pas-book-view.h: Added helper functions to notify the view about the addition or modification of a single card. Fixed a mistaken extra free. * addressbook/backend/ebook/e-card-list-iterator.h: Fixed incorrect parent class. * addressbook/backend/ebook/test-client.c: Made this accept an optional parameter that specifies the vcard to add. * configure.in: Replaced widgets/e-minicard/Makefile and addressbook/demo/Makefile with addressbook/gui/minicard/Makefile and addressbook/gui/component/Makefile respectively. * widgets/Makefile.am: Removed e-minicard since it's being moved to addressbook/gui/minicard. * widgets/e-text/e-text.c: Fixed the border width around tooltips and made the main tooltip area yellow. From camel/ChangeLog: 2000-04-08 Christopher James Lahey <clahey@helixcode.com> * providers/smtp/.cvsignore: Added a .cvsignore file. From calendar/ChangeLog: 2000-04-08 Christopher James Lahey <clahey@helixcode.com> * gui/Makefile.am: Removed linking with libetable and libeminicard since they weren't being used. svn path=/trunk/; revision=2343
* wombat is built someplace else nowChris Toshok2000-04-071-17/+0
| | | | svn path=/trunk/; revision=2321
* correctly (well, untested) implement. (view_destroy): new function.Chris Toshok2000-04-071-27/+73
| | | | | | | | | * addressbook/backend/pas/pas-backend-file.c (pas_backend_file_process_get_book_view): correctly (well, untested) implement. (view_destroy): new function. svn path=/trunk/; revision=2320
* Changed this to backend to an ebook.Christopher James Lahey2000-04-057-42/+43
| | | | | | | | | | | | | | | | | | | | | 2000-04-04 Christopher James Lahey <clahey@helixcode.com> * addressbook/demo/e-test-model.c, addressbook/demo/e-test-model.h, addressbook/demo/Makefile.am: Changed this to backend to an ebook. * addressbook/backend/ebook/e-card-iterator.c, addressbook/backend/ebook/e-card-iterator.h, addressbook/backend/ebook/e-card-list-iterator.c, addressbook/backend/ebook/e-card-list.c, addressbook/backend/ebook/e-card-list.h, addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h: Fixed const correctness and changed a couple of functions to be external. * addressbook/Makefile.am: Fixed subdir ordering. svn path=/trunk/; revision=2287
* Fixed an incorrect function.Christopher James Lahey2000-04-0513-66/+791
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-04-04 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-book-view.c: Fixed an incorrect function. * addressbook/backend/ebook/e-book-view.h, addressbook/backend/ebook/e-book.h: Fixed some incorrect function pointer declarations. * addressbook/backend/ebook/e-card-iterator.c, addressbook/backend/ebook/e-card-iterator.h, addressbook/backend/ebook/e-card-list-iterator.c, addressbook/backend/ebook/e-card-list-iterator.h, addressbook/backend/ebook/e-card-list.c, addressbook/backend/ebook/e-card-list.h, addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h, addressbook/backend/ebook/test-card.c: Built new iterator system for getting fields with multiple entries. * addressbook/backend/ebook/Makefile.am: Added new files addressbook/backend/ebook/e-card-iterator.c, addressbook/backend/ebook/e-card-iterator.h, addressbook/backend/ebook/e-card-list-iterator.c, addressbook/backend/ebook/e-card-list-iterator.h, addressbook/backend/ebook/e-card-list.c, and addressbook/backend/ebook/e-card-list.h. svn path=/trunk/; revision=2286
* A bit of clean up.Christopher James Lahey2000-04-0321-322/+1502
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-04-03 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card-cursor.h, addressbook/backend/ebook/e-card.c: A bit of clean up. * addressbook/backend/ebook/e-book-types.h, addressbook/backend/ebook/e-book-view-listener.c, addressbook/backend/ebook/e-book-view-listener.h, addressbook/backend/ebook/e-book-view.c, addressbook/backend/ebook/e-book-view.h, addressbook/backend/pas/pas-book-view.c, addressbook/backend/pas/pas-book-view.h: New files for live views. * addressbook/backend/ebook/Makefile.am, 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/ebook/test-client-list.c, addressbook/backend/ebook/test-client.c, addressbook/backend/pas/pas-backend-file.c, addressbook/backend/pas/pas-book.c, addressbook/backend/pas/pas-book.h, addressbook/backend/idl/addressbook.idl: Added live views and searching to the interface (neither is working yet.) svn path=/trunk/; revision=2280
* Get first card (with R_FIRST) on first seq().Matthew Loper2000-03-311-2/+2
| | | | | | | | * addressbook/backend/pas/pas-backend-file.c (pas_backend_file_build_all_cards_list): Get first card (with R_FIRST) on first seq(). svn path=/trunk/; revision=2265
* new-file new fileChris Toshok2000-03-312-0/+551
| | | | | | | | | * addressbook/backend/pas/pas-backend-ldap.h: new-file * addressbook/backend/pas/pas-backend-ldap.c: new file both still in the "do not enter" stage. svn path=/trunk/; revision=2263
* Fixed management of the corba-cursor object by callingChristopher James Lahey2000-03-301-20/+29
| | | | | | | | | | | | 2000-03-29 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card-cursor.c: Fixed management of the corba-cursor object by calling CORBA_Object_duplicate on it on e-card-cursor creation and calling CORBA_Object_release on e-card-cursor destruction. Also, properly free string returned from Evolution_CardCursor_get_nth function. svn path=/trunk/; revision=2249
* + * addressbook/backend/ebook/test-client.c (get_cursor_cb): AddedMatthew Loper2000-03-304-15/+99
| | | | | | | | | | | + some debugging. + + * addressbook/backend/ebook/e-book-listener.c: Added inline + documentation for exposed functions. + * addressbook/backend/ebook/e-card-cursor.c: same. + * addressbook/backend/ebook/e-card.c: same. svn path=/trunk/; revision=2248
* + * addressbook/backend/pas/pas-book-factory.cMatthew Loper2000-03-305-11/+10
| | | | | | | | | | | | | | | | | | | | + (PAS_BOOK_FACTORY_GOAD_ID): changed to + "evolution:addressbook-server". + + * addressbook/backend/pas/Makefile.am: no need to install a + .gnorba file from here, as the wombat.gnorba file in + evolution/wombat will do its job. + + * addressbook/backend/ebook/test-client.c (ebook_create): if + ebook_new fails, print a warning and return. + + * addressbook/backend/ebook/e-book.c (CARDSERVER_GOAD_ID): changed + to "evolution:addressbook-server". The wombat in evolution/wombat will now have both the pcs and the pas in it. svn path=/trunk/; revision=2246
* use g_new0 to allocate the BonoboObjectServant.Chris Toshok2000-03-291-1/+1
| | | | | | | * addressbook/backend/pas/pas-card-cursor.c (create_cursor): use g_new0 to allocate the BonoboObjectServant. svn path=/trunk/; revision=2243
* 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-294-3/+93
| | | | | | | | | | | | | | | 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-294-21/+23
| | | | | | | | | | | | | | | | | | 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-2819-64/+911
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Load an ECard instead of a VCard and then get the VCard from that ECard.Christopher James Lahey2000-03-262-2/+6
| | | | | | | | | | | | | 2000-03-26 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/test-client.c: Load an ECard instead of a VCard and then get the VCard from that ECard. Just tests ECard and the client stuff at the same time. Also, replaces carriage returns with newlines. * addressbook/backend/ebook/e-book.c: Fixed a small parity error. svn path=/trunk/; revision=2169
* create a card and then look it up.Chris Toshok2000-03-261-1/+31
| | | | | | | * addressbook/backend/ebook/test-client.c: create a card and then look it up. svn path=/trunk/; revision=2168
* add initial work on file pas backend, using db(3).Chris Toshok2000-03-261-4/+88
| | | | svn path=/trunk/; revision=2167
* Set the card id properly when retrieving a card.Christopher James Lahey2000-03-263-2/+21
| | | | | | | | | | | | | 2000-03-26 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-book.c: Set the card id properly when retrieving a card. * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h: Added the ability to set the card's id (and made getting it work correctly also.) svn path=/trunk/; revision=2166
* pass GList* as second parameter to g_list_remove_link, not the dataChris Toshok2000-03-261-1/+2
| | | | | | | * addressbook/backend/ebook/e-book.c (e_book_pop_op): pass GList* as second parameter to g_list_remove_link, not the data pointer. svn path=/trunk/; revision=2165
* Removed the address->description field.Christopher James Lahey2000-03-264-244/+398
| | | | | | | | | | | | | | | | | 2000-03-26 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card-types.h: Removed the address->description field. * addressbook/backend/ebook/e-card.c: Added VCard output and the use of GtkArguments. * addressbook/backend/ebook/test-card.c: Updated this to use the GtkArguments. * addressbook/backend/ebook/e-book.c: Fixed a memory leak. svn path=/trunk/; revision=2164
* Added parsing and testing for name, full name, birthday, telephone, email,Christopher James Lahey2000-03-245-136/+454
| | | | | | | | | | | | | | 2000-03-23 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h, addressbook/backend/ebook/e-card-types.h, addressbook/backend/ebook/e-card-pairs.h, addressbook/backend/ebook/test-card.c: Added parsing and testing for name, full name, birthday, telephone, email, and street address properties. svn path=/trunk/; revision=2157
* Updated .cvsignore filesChris Lahey2000-03-234-0/+29
| | | | svn path=/trunk/; revision=2151
* Added the addressbook/backend directory.Christopher James Lahey2000-03-2312-44/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* dear internet,Nat Friedman2000-03-231-0/+68
| | | | | | | | | | | dear internet, here is my new file. i hope you like it. your friend, nat svn path=/trunk/; revision=2149
* The ECard tester.Nat Friedman2000-03-231-0/+71
| | | | svn path=/trunk/; revision=2148
* Added this for ChrisNat Friedman2000-03-221-0/+1
| | | | svn path=/trunk/; revision=2139
* Updated to reflect new Bonobo names.Nat Friedman2000-03-2111-60/+66
| | | | svn path=/trunk/; revision=2127
* More work.Nat Friedman2000-01-2521-570/+4677
| | | | svn path=/trunk/; revision=1626
* A precommit so Federico can see.Nat Friedman2000-01-1816-0/+1791
svn path=/trunk/; revision=1584