add_contact_sync


Description:

public bool add_contact_sync (Contact contact, BookOperationFlags opflags, out string out_added_uid, Cancellable? cancellable = null) throws Error

Adds contact to this and sets out_added_uid to a UID of a newly added contact.

This string should be freed with g_free.

Note: This is not modifying original contact, thus if it's needed, then use e_contact_set (contact, E_CONTACT_UID, new_uid).

Parameters:

this

an BookClient

contact

an Contact

opflags

bit-or of BookOperationFlags

out_added_uid

UID of a newly added contact; can be null

cancellable

a Cancellable; can be null

Returns:

true if successful, false otherwise.