Contacts subsystem

Since 26.04

Architecture

The Contacts feature is provided by several components:

  • The Contacts App, providing the user interface.

  • qtcontacts-sqlite, the backend where address books and contacts are stored.

  • QtPIM, providing the Qt Contacts (QContacts) API to manage address books and contacts through the qtcontacts-sqlite backend.

  • Buteo Sync Framework, the service responsible for managing synchronization with remote address books.

  • Buteo Sync Plugin CardDAV, the plugin responsible for synchronizing with remote CardDAV address books.

  • Lomiri Online Accounts (Online Accounts subsystem), providing account management and authentication for online services.

Note

Migration from Evolution Data Server to qtcontacts-sqlite:

Migration has been performed by a session migration of lomiri-addressbook-app, the migration marker is stored per address book, e.g: ~/.local/share/evolution/addressbook/system/migrated_to_qtcontacts.

Storage

Database and contact’s avatars are stored under: ~/.local/share/system/privileged/Contacts/qtcontacts-sqlite

Synchronization workflow

The general synchronization workflow is:

  1. The user configures an online account through Lomiri Online Accounts.

  2. Buteo creates the corresponding synchronization profile.

  3. Buteo loads the CardDAV synchronization plugin.

  4. The plugin communicates with the remote address book provider.

  5. Changes are synchronized with the local qtcontacts-sqlite database.

  6. The Contacts App reads the updated data through QtPIM/Qt Contacts.

Debugging

For synchronization issues:

systemctl --user set-environment QT_LOGGING_RULES="buteo.*.debug=true"
systemctl --user restart msyncd.service

For Online Accounts issues:

See Lomiri Online Accounts (Online Accounts subsystem).