osso-abook-merge

osso-abook-merge — Functionality for merging contacts.

Synopsis

void                (*OssoABookMergeWithCb)             (const char *uid,
                                                         gpointer user_data);
OssoABookContact*   osso_abook_merge_contacts           (GList *contacts,
                                                         GtkWindow *parent);
void                osso_abook_merge_with_dialog        (OssoABookContact *contact,
                                                         OssoABookContactModel *model,
                                                         GtkWindow *parent,
                                                         OssoABookMergeWithCb cb,
                                                         gpointer user_data);

Description

Functions that merge contacts together and deal with conflict resolution by presenting the user a dialog.

Details

OssoABookMergeWithCb ()

void                (*OssoABookMergeWithCb)             (const char *uid,
                                                         gpointer user_data);

osso_abook_merge_contacts ()

OssoABookContact*   osso_abook_merge_contacts           (GList *contacts,
                                                         GtkWindow *parent);

Merge all of the contacts provided into a single contact. If there are any conflicts in the name, then a dialog is shown so that the user can set the final name.

contacts : a GList of OssoABookContact objects
parent : an optional parent GtkWindow
Returns : a new OssoABookContact.

osso_abook_merge_with_dialog ()

void                osso_abook_merge_with_dialog        (OssoABookContact *contact,
                                                         OssoABookContactModel *model,
                                                         GtkWindow *parent,
                                                         OssoABookMergeWithCb cb,
                                                         gpointer user_data);