D23858: Introduce a class for agents to interface with KAccounts
Daniel Vrátil
noreply at phabricator.kde.org
Tue Sep 10 21:52:29 BST 2019
dvratil created this revision.
Herald added a project: KDE PIM.
Herald added a subscriber: kde-pim.
dvratil requested review of this revision.
REVISION 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 <https://phabricator.kde.org/D23856>
REPOSITORY
R165 Akonadi
BRANCH
dev/online-accounts
REVISION DETAIL
https://phabricator.kde.org/D23858
AFFECTED FILES
src/agentbase/CMakeLists.txt
src/agentbase/accountsintegration.cpp
src/agentbase/accountsintegration.h
To: dvratil
Cc: kde-pim, fbampaloukas, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20190910/1db322bc/attachment-0001.html>
More information about the kde-pim
mailing list