aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/conduit
Commit message (Collapse)AuthorAgeFilesLines
* Set draw background to FALSE.Miguel de Icaza2000-12-252-11/+3
| | | | | | | | | | | | 2000-12-25 Miguel de Icaza <miguel@helixcode.com> * gui/widgets/e-minicard.c (e_minicard_realize): Set draw background to FALSE. * gui/widgets/e-minicard-label.c (e_minicard_label_construct): ditto. (e_minicard_label_construct): ditto svn path=/trunk/; revision=7164
* Ref the cards that get put in the change list (next_changed_item): utilJP Rosevear2000-12-221-50/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-21 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.c (cursor_cb): Ref the cards that get put in the change list (next_changed_item): util function to get the real next changed item (compute_status): really compute the status of the record (local_record_from_uid): Set the id of the temporary card (check_for_slow_setting): Make this check a little saner (card_added): Only record the CardObjectChange if the card is not archived (card_changed): ditto (card_removed): ditto (set_status_cleared): actually clear the status (for_each_modified): Clean out cruft and use next_changed_item (add_record): Set the new id properly in our local card copy (replace_record): handle the case where the record has been deleted and we need to call add. need to update the changed_hash entry (delete_record): Don't panic if the card is not found, its already been deleted. * backend/pas/pas-backend-file.c (pas_backend_file_book_view_copy): The change_context no longer has a del_cards member (pas_backend_file_book_view_free): ditto (pas_backend_file_process_get_changes): ditto (pas_backend_file_changes_foreach_key): just record the id (pas_backend_file_changes): notify_remove needs an id not a vcard svn path=/trunk/; revision=7120
* Check for null strings (e_pilot_utf8_from_pchar): dittoJP Rosevear2000-12-211-3/+5
| | | | | | | | | 2000-12-20 JP Rosevear <jpr@helixcode.com> * e-pilot-util.c (e_pilot_utf8_to_pchar): Check for null strings (e_pilot_utf8_from_pchar): ditto svn path=/trunk/; revision=7106
* Use my own wrapper functions instead of trying to *directly* access theJP Rosevear2000-12-211-2/+9
| | | | | | | | | | | 2000-12-20 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.c (match): Use my own wrapper functions instead of trying to *directly* access the the data structures my self (post_sync): Put in hack to prevent syncing the same records twice svn path=/trunk/; revision=7104
* Remove pointless commentJP Rosevear2000-12-201-40/+66
| | | | | | | | | | | | | | | | 2000-12-19 JP Rosevear <jpr@helixcode.com> * conduits/calendar/calendar-conduit.c: Remove pointless comment * conduits/todo/todo-conduit.c (is_empty_time): add utility function (comp_from_remote_record): use it 2000-12-19 JP Rosevear <jpr@helixcode.com> *conduit/address-conduit.c (ecard_from_remote_record): Convert pilot strings to utf for the e-cards. svn path=/trunk/; revision=7093
* Convert cal component strings to pilot character setJP Rosevear2000-12-201-18/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-19 JP Rosevear <jpr@helixcode.com> * conduits/calendar/calendar-conduit.c (local_record_from_comp): Convert cal component strings to pilot character set (comp_from_remote_record): vice versa * conduits/todo/todo-conduit.c: Same as above 2000-12-19 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.c (local_record_from_ecard): Convert ecard strings to pilot encodings 2000-12-19 JP Rosevear <jpr@helixcode.com> * e-pilot-util.c (e_pilot_utf8_to_pchar): Convert utf8 strings to pilot character set (e_pilot_utf8_from_pchar): vice versa * Makefile.am: Conditionally build e-pilot-util.[hc] because they depend on pilot-link stuff svn path=/trunk/; revision=7090
* Pass "" rather than NULL to e_card_new. (local_record_from_ecard): MakeJP Rosevear2000-12-081-13/+14
| | | | | | | | | | | | | 2000-12-07 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.c (local_record_from_uid): Pass "" rather than NULL to e_card_new. (local_record_from_ecard): Make sure ecard->name is valid (check_for_slow_setting): Remove hard coded test value (card_added): g_strdup the resul of e_card_get_id (card_changed): ditto svn path=/trunk/; revision=6859
* Another conduit build fixJP Rosevear2000-12-061-0/+1
| | | | | | | | 2000-12-06 JP Rosevear <jpr@helixcode.com> * conduit/Makefile.am: Another conduit build fix svn path=/trunk/; revision=6807
* Create an empty vcard with the appropriate id for deleted cardsJP Rosevear2000-12-051-35/+19
| | | | | | | | | | | | 2000-12-05 JP Rosevear <jpr@helixcode.com> * backend/pas/pas-backend-file.c (pas_backend_file_changes_foreach_key): Create an empty vcard with the appropriate id for deleted cards * conduit/address-conduit.c (ecard_from_remote_record): Ensure the address fields are added sensibly svn path=/trunk/; revision=6793
* Return a struct rather than a pointer to a struct (compare):JP Rosevear2000-11-291-37/+16
| | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-28 JP Rosevear <jpr@helixcode.com> * conduits/todo/todo-conduit.c (local_record_to_pilot_record): Return a struct rather than a pointer to a struct (compare): local_record_to_pilot_record now returns a struct (prepare): ditto (free_prepare): remove as per gnome-pilot changes (conduit_get_gpilot_conduit): don't listen for free_prepare signal * conduits/calendar/calendar-conduit.c: Same as above 2000-11-28 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.c (local_record_to_pilot_record): Return a struct rather than a pointer to a struct (view_cb): kill warning (compare): local_record_to_pilot_record now returns a struct (prepare): ditto (free_prepare): remove as per gnome-pilot changes (conduit_get_gpilot_conduit): don't listen for free_prepare signal svn path=/trunk/; revision=6708
* Remove "complete" fieldJP Rosevear2000-11-283-60/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-27 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.h: Remove "complete" field * conduit/address-conduit.c (print_local): Make it print useful debug info (print_remote): ditto (local_record_from_ecard): Make sure phone numbers get out to the pilot (ecard_from_remote_record): Set phone strings to "" if they are null (sequence_complete): unref the book view (view_cb): ref the book view (free_prepare): do nothing * backend/pas/pas-backend-file.c (pas_backend_file_book_view_free): Destroy the card lists with the rest of the view. (pas_backend_file_changes): Don't destroy the card lists here (pas_backend_file_book_view_free): Free the card/id lists in the change context here, the correct place. (pas_backend_file_changes): instead of here... 2000-11-27 JP Rosevear <jpr@helixcode.com> * conduits/todo/todo-conduit.c (free_prepare): Ditto * conduits/calendar/calendar-conduit.c (free_prepare): Adjust free_prepare to the correct signal parameters. Don't actually do anything - there is a semantic discrepancy that needs to be resolved. 2000-11-27 JP Rosevear <jpr@helixcode.com> * providers/local/.cvsignore: shush svn path=/trunk/; revision=6681
* Add changed_hash, change list and complete boolJP Rosevear2000-11-103-75/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-09 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.h: Add changed_hash, change list and complete bool * conduit/address-conduit.c (local_record_from_ecard): Add empty field checks (card_added): callback for book view (card_changed): ditto (card_removed): ditto (sequence_complete): ditto (view_cb): callback for the get changes call (pre_sync): force synchronous loading of book view (for_each): we already have the card so create the local record directly (for_each_modified): Uncomment and fix (delete_record): ditto * conduit/Makefile.am: link against gal for ebook - needs fixing * backend/ebook/e-book.c (e_book_do_response_get_changes): Properly respond to a get_changes call (e_book_check_listener_queue): define the get changes response operation * backend/ebook/e-book-listener.c (e_book_listener_queue_get_changes_response): Queue up a get changes response (impl_BookListener_respond_get_changes): Implement the get_changes method (e_book_listener_get_epv): add get_changes implementation to epv * backend/pas/pas-backend-file.c (pas_backend_file_book_view_copy): Only copy the search_context and change_context elements if they actually exist (pas_backend_file_changes): Hard code a path for now, only notify if there is something to notify about svn path=/trunk/; revision=6524
* Updated Spanish translationHector Garcia2000-11-031-0/+2
| | | | svn path=/trunk/; revision=6364
* Let the warning make sense (compute_pid): removeJP Rosevear2000-11-011-214/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-31 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.c (cursor_cb): Let the warning make sense (compute_pid): remove (local_record_from_ecard): Create local record from ecard - not finished (local_record_from_uid): Obtain local_record from uid with the proper e-book way (set_status_cleared): Add empty callback (add_archive_record): kill (delete_archive_record): kill (archive_record): Add empty callback (conduit_get_gpilot_conduit): Update signal connects * backend/pas/pas-backend-file.c (vcard_change_type): Function to determine the type of change - not finished (pas_backend_file_search_changes): Create a view and callback based on how the cards have changed (pas_backend_file_process_get_changes): Implement the get changes operation for files (pas_backend_file_process_client_requests): Add GetChanges method for processing * backend/pas/pas-book.c (pas_book_queue_get_changes): Add changes to the list (impl_Evolution_Book_get_changes): implement object method (pas_book_get_epv): Add get changes to epv (pas_book_respond_get_changes): Respond to the get changes operation * backend/pas/pas-book.h: Add GetChanges PASOperation * backend/idl/addressbook.idl: add get_changes and respond_get_changes methods * backend/ebook/e-book.c (e_book_get_changes): Client function to a view of the changed objects * backend/ebook/e-book.h: New prototype 2000-10-31 JP Rosevear <jpr@helixcode.com> * conduits/todo/todo-conduit.h: Remove add/del/mod hashes and add changed_hash. * conduits/calendar/calendar-conduit.h: ditto * conduits/todo/todo-conduit.c (next_changed_item): Utility function to get the next "really" changed item (changed status can be cleared now) (compute_status): Compute status based on changed_hash (pre_sync): Fill changed_hash and counts adds/mods/dels (set_status_cleared): New callback handler - avoid double syncing (for_each_modified): Use next_changed_item to iterate (add_archive_record): kill (delete_archive_record): kill (archive_record): New callback handler - mark/unmark archive status (conduit_get_gpilot_conduit): Adjust signal connects * conduits/calendar/calendar-conduit.c: ditto svn path=/trunk/; revision=6297
* Use new libeconduit calls and abstractionJP Rosevear2000-10-242-27/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-23 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.h: Use new libeconduit calls and abstraction * conduit/address-conduit.c: ditto 2000-10-23 JP Rosevear <jpr@helixcode.com> * conduits/todo/todo-conduit.h: Use new libeconduit calls and abstraction * conduits/calendar/calendar-conduit.c: ditto * conduits/calendar/calendar-conduit.h: ditto * conduits/todo/todo-conduit.c: ditto * conduits/calendar/Makefile.am: Add libeconduit-static.la * conduits/calendar/calendar-conduit.c (post_sync): Use e_pilot_map_write (pre_sync): Use e_pilot_map_read 2000-10-23 JP Rosevear <jpr@helixcode.com> * e-pilot-map.c: Operate with EPilotMap structure so things are abstract to the caller (e_pilot_map_pid_is_archived): Infrastructure for marking records as archived (e_pilot_map_uid_is_archived): ditto * e-pilot-map.h: Add more to public interface, including EPilotMap structure svn path=/trunk/; revision=6134
* Use e_pilot_map_read (post_sync): Use e_pilot_map_writeJP Rosevear2000-10-242-126/+16
| | | | | | | | | | | 2000-10-23 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.c (pre_sync): Use e_pilot_map_read (post_sync): Use e_pilot_map_write * conduit/Makefile.am: Link libeconduit and not libical svn path=/trunk/; revision=6121
* New structure of file - similar to calendar/todo conduitsJP Rosevear2000-10-217-1100/+984
| | | | | | | | | | | | | | | | | | | | | | 2000-10-20 JP Rosevear <jpr@helixcode.com> * conduit/address-conduit.h: New structure of file - similar to calendar/todo conduits * conduit/address-conduit.c: ditto * conduit/address-conduit-config.h: Config stuff for conduit * conduit/.cvsignore: Update * conduit/Makefile.am: Build fixes * conduit/address-conduit-control-applet.desktop: Renamed to e-address-conduit-control-applet.desktop * conduit/address.conduit.in: Renamed to e-address.conduit.in svn path=/trunk/; revision=6081
* Build fixJP Rosevear2000-10-203-0/+144
| | | | | | | | 2000-10-19 JP Rosevear <jpr@helixcode.com> * Makefile.am (DIST_SUBDIRS): Build fix svn path=/trunk/; revision=6068
* Updated Spanish translationHector Garcia2000-10-181-0/+2
| | | | svn path=/trunk/; revision=5990
* Updated French translation.Christophe Merlet2000-10-071-0/+2
| | | | svn path=/trunk/; revision=5764
* Fixed the Swedish translation.Christian Rose2000-09-201-1/+1
| | | | svn path=/trunk/; revision=5519
* Added Swedish translation.Christian Rose2000-09-131-0/+2
| | | | svn path=/trunk/; revision=5367
* Get the conduit to compile on my system.Ettore Perazzoli2000-09-011-2/+4
| | | | svn path=/trunk/; revision=5156
* Remove USING_OAF checksDan Winship2000-08-301-6/+1
| | | | svn path=/trunk/; revision=5099
* Changed this to use ECardSimple.Christopher James Lahey2000-08-202-70/+85
| | | | | | | | | | | | | | | | | 2000-08-19 Christopher James Lahey <clahey@helixcode.com> * conduit/address-conduit.c, conduit/address-conduit.h: Changed this to use ECardSimple. * contact-editor/e-contact-editor.c: Fixed a memory leak. * gui/component/addressbook.c: Added stuff to the right click menu. Activated the new search dialog that doesn't quite work yet. * gui/minicard/e-minicard-view.c: Fixed some run time warnings. svn path=/trunk/; revision=4882
* add address-conduit.hChris Toshok2000-08-141-1/+2
| | | | | | | | | | | | 2000-08-13 Chris Toshok <toshok@helixcode.com> * conduit/Makefile.am (libaddress_conduit_la_SOURCES): add address-conduit.h * Makefile.am (CONDUIT_SUBDIR): only set subdir if ENABLE_PILOT_CONDUITS is set. svn path=/trunk/; revision=4834
* add special oaf initialization hack so conduit can find wombat, and acceptChris Toshok2000-08-141-2/+34
| | | | | | | | | | 2000-08-13 Chris Toshok <toshok@helixcode.com> * conduit/address-conduit.c (conduit_get_gpilot_conduit): add special oaf initialization hack so conduit can find wombat, and accept all cookies so that we can actually talk to oaf. svn path=/trunk/; revision=4829
* implement code to encode the first email address and send to the pilot.Chris Toshok2000-08-121-11/+34
| | | | | | | | | | | 2000-08-11 Chris Toshok <toshok@helixcode.com> * conduit/address-conduit.c (transmit): implement code to encode the first email address and send to the pilot. (get_phone_label_by_flag): rename find_phone_label_for_flags to this, and implement by calling get_phone_label_by_name. svn path=/trunk/; revision=4761
* add code for handling email addresses from pilot (which stores it as aChris Toshok2000-08-121-34/+44
| | | | | | | | | | | | | | | | 2000-08-11 Chris Toshok <toshok@helixcode.com> * conduit/address-conduit.c (ecard_from_remote_record): add code for handling email addresses from pilot (which stores it as a phone number entry. go figure.) (check_for_slow_setting): #if 0 out, since we don't use it (yet). (update_record): un #if 0 the code to handle the case where the pilot info has changed for a local record. (merge_ecard_with_remote_record): implement function, but for now just return the existing (desktop) record - we still don't allow merge from the pilot. svn path=/trunk/; revision=4758
* flesh out ifdef'ed out code. need to write merge_ecard_with_remote_record.Seth Alves2000-07-271-12/+10
| | | | svn path=/trunk/; revision=4383
* add handling for phone labels, going either direction (from pilot and to pilot.)Seth Alves2000-07-271-5/+56
| | | | svn path=/trunk/; revision=4382
* remove double freeSeth Alves2000-07-271-4/+1
| | | | svn path=/trunk/; revision=4379
* bug fixesSeth Alves2000-07-272-5/+5
| | | | svn path=/trunk/; revision=4378
* more work on addressbook syncerSeth Alves2000-07-271-17/+104
| | | | svn path=/trunk/; revision=4377
* add enum for e-card pilot status.Chris Toshok2000-07-261-88/+104
| | | | | | | | | | | | | | | | | | | | | | 2000-07-25 Chris Toshok <toshok@helixcode.com> * backend/ebook/e-card-types.h: add enum for e-card pilot status. * conduit/address-conduit.c: #ifdef out all the archiving code with SUPPORT_ARCHIVING. (purge): implement correctly - deleting ecards whose pilot status is DELETED. (set_status): implement. (set_pilot_id): add gtk_main call here to change commit_card into a synchronous (delete_all): implement correctly - don't delete the records, just set their status to DELETED. (local_record_from_ecard): get the current status from the ecard. * backend/ebook/e-card.c (e_card_get_vcard): add vcard support for pilot status. (parse_pilot_status): new function. (e_card_class_init): add pilot status object arg. (e_card_set_arg): add pilot status support. (e_card_get_arg): same. (e_card_init): initialize pilot_status to 0. svn path=/trunk/; revision=4340
* add comment headers to signals that didn't have any.Chris Toshok2000-07-261-3/+88
| | | | | | | | | 2000-07-25 Chris Toshok <toshok@helixcode.com> * conduit/address-conduit.c: add comment headers to signals that didn't have any. svn path=/trunk/; revision=4338
* use the user's Contact db. not toshok's.Chris Toshok2000-07-261-2/+10
| | | | | | | | | 2000-07-25 Chris Toshok <toshok@helixcode.com> * conduit/address-conduit.c (start_address_server): use the user's Contact db. not toshok's. svn path=/trunk/; revision=4337
* build static versions of some util libraries for the conduit to link withSeth Alves2000-07-262-4/+7
| | | | svn path=/trunk/; revision=4320
* more stuff. too much to use a changelog for.Chris Toshok2000-07-255-444/+326
| | | | svn path=/trunk/; revision=4306
* Added the Turkish desktop entryFatih Demir2000-07-201-0/+2
| | | | svn path=/trunk/; revision=4228
* a building but non-functional address conduitSeth Alves2000-07-156-0/+1642
svn path=/trunk/; revision=4174