Calendar subsystem ================== Since 26.04 ----------- Architecture ------------ The Calendar feature is provided by several components: * The `Calendar App `_, providing the user interface. * `mkcal `_, the backend where calendar collections and events are stored. * `QtPIM `_, the Organizer API to manage collections and events * `QtPIM mkcal `_, the QtPIM API to mkcal bridge * `Buteo Sync Framework `_, the service responsible for managing synchronization with remote calendars. * `Buteo Sync Plugin CalDAV `_, the plugin responsible for synchronizing with remote WebDAV/CalDAV calendars. * `Buteo Sync Plugin Social `_, the plugin responsible for synchronizing with Google calendars. * Lomiri Online Accounts (:doc:`/systemdev/online-accounts`), providing account management and authentication for online services. .. note:: Migration from Evolution Data Server (:doc:`/systemdev/calendars-legacy`) to mkcal: Migration has been performed by a single shot service `lomiri-eds2mkcal-service`, the migration marker is stored in: `/home/phablet/.config/lomiri/mkcal_migration_has_run`. A per-calendar marker is also created, e.g: `/home/phablet/.local/share/evolution/calendar/system/migrated_to_mkcal` Synchronization workflow ------------------------ The general synchronization workflow is: #. The user configures an online account through Lomiri Online Accounts. #. Buteo creates the corresponding synchronization profile and stores it in `~/.local/share/system/privileged/msyncd/sync` #. Buteo loads the appropriate synchronization plugin (CalDAV or Social). #. The plugin communicates with the remote calendar provider. #. Changes are synchronized with the local mkcal database. `~/.local/share/system/privileged/Calendar/mkcal` #. The Calendar App reads the updated data through QtPIM/QtOrganizer. Debugging --------- For mkcal issues: .. code-block:: bash systemctl --user set-environment QT_LOGGING_RULES="org.kde.pim.mkcal.*=true" For synchronisation issues: .. code-block:: bash systemctl --user set-environment QT_LOGGING_RULES="buteo.*.debug=true" systemctl --user restart msyncd.service For Online Accounts issues: see Lomiri Online Accounts (:doc:`/systemdev/online-accounts`)