Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • GNOME Contacts GNOME Contacts
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 87
    • Issues 87
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GNOME ContactsGNOME Contacts
  • Merge requests
  • !95
The source project of this merge request has been removed.

Draft: Add dbus API for adding contact with preset properties

Closed Julian Sparber requested to merge (removed):upstream-dbus into main Oct 24, 2019
  • Overview 3
  • Pipelines 0
  • Changes 31

This is on top of !94 (merged) so only the last commit is important. This MR is based on !66 (closed) but since my editor refactor the underlying code changed, therefore I opened a new MR.

The API takes an array of (key, value) pairs.

Supported keys: This 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

The API can be used via gdbus as well 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")]>]' '{}'

Edited Jan 12, 2022 by Niels De Graef
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: upstream-dbus