aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-migrate.c
Commit message (Collapse)AuthorAgeFilesLines
* free up the list returned by e_book_get_contacts.Chris Toshok2004-02-131-0/+3
| | | | | | | | | 2004-02-12 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_contacts): free up the list returned by e_book_get_contacts. svn path=/trunk/; revision=24731
* Initialize the personal_source to NULLRodney Dawes2004-02-091-0/+1
| | | | | | | | | | | 2004-02-08 Rodney Dawes <dobey@ximian.com> * gui/component/addressbook-migrate.c (create_groups): Initialize the personal_source to NULL Fixes #54015 svn path=/trunk/; revision=24674
* don't bother using a function-wide variable to store the personal source.Chris Toshok2004-02-071-7/+5
| | | | | | | | | | | | 2004-02-06 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (create_groups): don't bother using a function-wide variable to store the personal source. also, use g_build_filename properly (because fejj is a whiner.) (migrate_local_folders): same (wrt fejj whining). svn path=/trunk/; revision=24667
* use the MigrationContext struct. (dialog_close): same.Chris Toshok2004-01-301-97/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-29 Chris Toshok <toshok@m198-139.dsl.rawbw.com> * gui/component/addressbook-migrate.c (setup_progress_dialog): use the MigrationContext struct. (dialog_close): same. (dialog_set_folder_name): same. (dialog_set_progress): same. (migrate_contacts): same, and pass it along to other functions. (migrate_contact_folder_to_source): same. (migrate_contact_folder): same. also, add the old path/uid to the folder_uid_map. (migrate_local_folders): same. (create_groups): use the MigrationContext struct. (migrate_completion_folders): if it's a file uri, look up the old path in our hash table for a uid to use. otherwise use the old behavior. (migration_context_new): new function, initialize the MigrationContext. (migration_context_free): free up everything. (addressbook_migrate): create the context, pass it to everything, destroy the context, shine toshok's shoes, etc. svn path=/trunk/; revision=24524
* set the relative_uri of a local source to be its uid.Chris Toshok2004-01-281-14/+11
| | | | | | | | | | | | | | | | | | | | | 2004-01-27 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (dialog_to_source): set the relative_uri of a local source to be its uid. * gui/component/addressbook-migrate.c (migrate_contact_folder_to_source): remove the dest_group arg, since we don't use it. (migrate_contact_folder): set the relative uri of the source to be its uid. (PERSONAL_RELATIVE_URI): "Personal" -> "system". (create_groups): don't actually make the directory hierarchy for the personal folder here. let e-d-s do that. Also remove OnThisComputer from the base uri. (migrate_local_folders): track change to migrate_contact_folder_to_source. svn path=/trunk/; revision=24478
* [ Should fix #53361 and other migration problems/crashes ] new function,Chris Toshok2004-01-271-29/+46
| | | | | | | | | | | | | | | | | | | | | 2004-01-26 Chris Toshok <toshok@ximian.com> [ Should fix #53361 and other migration problems/crashes ] * gui/component/addressbook-migrate.c (migrate_contact_folder_to_source): new function, takes most of migrate_contact_folder's contents. Fix some of the refcounting problems though, by not unreffing dest_group, and using e_group_add_source instead of e_source_set_group. (migrate_contact_folder): convert to calling migrate_contact_folder_to_source. (create_groups): add an out parameter for *personal_source. (migrate_local_folders): add personal_source as an arg, so we can get the source that create_groups created/found. Call migrate_contact_folder_to_source for the personal_source. (addressbook_migrate): pass personal_source to migrate_local_folders. svn path=/trunk/; revision=24457
* oops. (migrate_contact_folder): fix the unreffing.Chris Toshok2004-01-251-3/+9
| | | | | | | | | | 2004-01-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_local_folders): oops. (migrate_contact_folder): fix the unreffing. svn path=/trunk/; revision=24408
* use _("Personal"), not "Personal".Chris Toshok2004-01-251-1/+1
| | | | | | | | | 2004-01-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_local_folders): use _("Personal"), not "Personal". svn path=/trunk/; revision=24407
* i2004-01-24 Chris Toshok <toshok@ximian.com>Chris Toshok2004-01-251-7/+0
| | | | | | | * gui/component/addressbook-migrate.c (migrate_local_folders): don't create/add the source here. it's done in svn path=/trunk/; revision=24406
* use e_folder_map_local_folders. (find_addressbook_dirs): nuke.Chris Toshok2004-01-251-53/+5
| | | | | | | | | | 2004-01-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_local_folders): use e_folder_map_local_folders. (find_addressbook_dirs): nuke. svn path=/trunk/; revision=24404
* [ fixes bug #53184 ] handle the fact that the xml 1.4 spits out containsChris Toshok2004-01-231-0/+30
| | | | | | | | | | | 2004-01-22 Chris Toshok <toshok@ximian.com> [ fixes bug #53184 ] * gui/component/addressbook-migrate.c (migrate_contacts): handle the fact that the xml 1.4 spits out contains unescaped ';'s in the EMAIL attributes for mailing lists. svn path=/trunk/; revision=24374
* [ fixes bug #52944 ] do some massaging of contacts as we import them, toChris Toshok2004-01-231-0/+56
| | | | | | | | | | | 2004-01-22 Chris Toshok <toshok@ximian.com> [ fixes bug #52944 ] * gui/component/addressbook-migrate.c (migrate_contacts): do some massaging of contacts as we import them, to fix up the differences between 1.4 and 1.5 vcards. svn path=/trunk/; revision=24369
* new function.Chris Toshok2004-01-221-14/+154
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-21 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (addressbook_component_peek_gconf_client): new function. * gui/component/addressbook-component.h: add prototype for addressbook_component_peek_gconf_client. * gui/component/addressbook-migrate.c (migrate_completion_folders): more gross hacking. migrate the completion settings. (get_source_by_uri): function to search for an ESource given the entire uri. used for migrate_completion_folders. (migrate_ldap_servers): get_string_value -> get_string_child. same with get_integer_child. (get_string_child): rename to make it apparent it's a child, not a property. (get_integer_child): same. (addressbook_migrate): call migrate_completion_folders. svn path=/trunk/; revision=24357
* deal with the groups/sources already being there. Essentially make thisChris Toshok2004-01-211-29/+76
| | | | | | | | | | | | | | | | | | | 2004-01-20 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (create_groups): deal with the groups/sources already being there. Essentially make this function idempotent. (addressbook_migrate): unconditionally call create_groups now. move the version logic here from ipl_upgradeFromVersion, and include more versions in the set of those we upgrade from. * gui/component/addressbook-migrate.h: add major/minor/revision args to addressbook_migrate. * gui/component/addressbook-component.c (impl_upgradeFromVersion): remove the version logic from here. svn path=/trunk/; revision=24338
* remove spew. (migrate_contacts): same. (migrate_contact_folder): same.Chris Toshok2004-01-071-11/+2
| | | | | | | | | | | | 2004-01-06 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (check_for_conflict): remove spew. (migrate_contacts): same. (migrate_contact_folder): same. (migrate_local_folders): same, and plug a leak. svn path=/trunk/; revision=24080
* add addressbook-migrate.[ch].Chris Toshok2004-01-071-0/+559
2004-01-06 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): add addressbook-migrate.[ch]. * gui/component/addressbook-component.c (addressbook_component_init): remove the source creation from here, it's in the migration code now. (impl_upgradeFromVersion): new function, call the addressbook-migration stuff. (addressbook_component_class_init): fill in epv->upgradeFromVersion, and call smime_component_init. (addressbook_component_peek_base_directory): new function. (addressbook_component_peek_source_list): same. * gui/component/addressbook-component.h: add prototypes for _peek_base_directory and _peek_source_list. * gui/component/addressbook-migrate.[ch]: add migration code to convert stuff from 1.x over to 1.5/2.0. svn path=/trunk/; revision=24079