Introduce a class for agents to interface with KAccounts
ClosedPublic

Authored by dvratil on Tue, Sep 10, 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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dvratil created this revision.Tue, Sep 10, 8:52 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptTue, Sep 10, 8:52 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dvratil requested review of this revision.Tue, Sep 10, 8:52 PM
dvratil updated this revision to Diff 65809.Tue, Sep 10, 9:34 PM
  • Add a missing ifdef
vkrause accepted this revision.Tue, Sep 10, 9:49 PM
This revision is now accepted and ready to land.Tue, Sep 10, 9:49 PM
This revision was automatically updated to reflect the committed changes.