Introduce a class for agents to interface with KAccounts
ClosedPublic

Authored by dvratil on Sep 10 2019, 8:52 PM.

Details

Summary

The interface is designed so that the agents can use it even when Akonadi
is compiled without KAccounts support, so we don't have to clutter all
agents code with #ifdefs. When KAccounts support is compiled in, the class
registers org.kde.Akonadi.Accounts interface on DBus which akonadi_control
uses to tell the resoure about the KAccounts account.

It also provides a simple wrappers to retrieve the OAuth tokens or
passwords.

In the future this interface will require a wider API to allow accessing
more of the account configuration (e.g. DAV server URL, paths etc.),
but this should be good enough for now.

Test Plan

Tested together with D23856

Diff Detail

Repository
R165 Akonadi
Branch
dev/online-accounts
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16356
Build 16374: arc lint + arc unit
dvratil created this revision.Sep 10 2019, 8:52 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptSep 10 2019, 8:52 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dvratil requested review of this revision.Sep 10 2019, 8:52 PM
dvratil updated this revision to Diff 65809.Sep 10 2019, 9:34 PM
  • Add a missing ifdef
vkrause accepted this revision.Sep 10 2019, 9:49 PM
This revision is now accepted and ready to land.Sep 10 2019, 9:49 PM
This revision was automatically updated to reflect the committed changes.