WIP Add DBus API for adding contact with preset properties
The API takes an array of (key, value) pairs.
Supported keys:
These can be specified multiple times: "email-addresses", "notes", "phone-numbers"
Only the last will be stored (because this properies are unique): "alias", "full-name", "nickname"
Not all properites are supported for now because they can't be easily set via DBus because they arn't a string
Example DBus usage:
gdbus call --session --dest org.gnome.Contacts --object-path /org/gnome/Contacts --method org.gtk.Actions.Activate 'new-contact-data' '[<[("email-addresses", "julian@sparber.net"), ("phone-numbers", "+39333333"), ("email-addresses", "secondo@example.com")]>]' '{}'
This is a forward port of @jsparber downstream patch for PureOS. I've marked as WIP since it likely needs some more work but I wanted to make sure it doesn't getburried in a downstream repo.