<table><tr><td style="">dvratil created this revision.<br />Herald added a project: KDE PIM.<br />Herald added a subscriber: kde-pim.<br />dvratil requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23858">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The interface is designed so that the agents can use it even when Akonadi<br />
is compiled without KAccounts support, so we don't have to clutter all<br />
agents code with #ifdefs. When KAccounts support is compiled in, the class<br />
registers org.kde.Akonadi.Accounts interface on DBus which akonadi_control<br />
uses to tell the resoure about the KAccounts account.</p>

<p>It also provides a simple wrappers to retrieve the OAuth tokens or<br />
passwords.</p>

<p>In the future this interface will require a wider API to allow accessing<br />
more of the account configuration (e.g. DAV server URL, paths etc.),<br />
but this should be good enough for now.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested together with <a href="https://phabricator.kde.org/D23856" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D23856</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R165 Akonadi </div></div></div><br /><div><strong>BRANCH</strong><div><div>dev/online-accounts</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23858">https://phabricator.kde.org/D23858</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/agentbase/CMakeLists.txt<br />
src/agentbase/accountsintegration.cpp<br />
src/agentbase/accountsintegration.h</div></div></div><br /><div><strong>To: </strong>dvratil<br /><strong>Cc: </strong>kde-pim, fbampaloukas, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>