<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 19, 2016 at 4:54 AM, Elvis Angelaccio <span dir="ltr"><<a href="mailto:elvis.angelaccio@kde.org" target="_blank">elvis.angelaccio@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
</div></div>Hi Martin,<br>
I'm planning to integrate KAccounts with kio-gdrive, so your email is<br>
very much appreciated.<br>
What exactly is "Kaccounts" in the first place? Are we talking about<br>
the kaccounts-integration repo?<br></blockquote><div><br></div><div>KAccounts is basically just the KDE UI for the Accounts-SSO system.</div><div>It's a collection of KCM, which allows you to manage those accounts</div><div>and also KDED daemon which allows to load custom plugins that</div><div>react on those account changes and/or service changes (each account</div><div>has a set of services).</div><div><br></div><div>So for example, in the KCM you add a Google account and then the</div><div>KDED module is notified of this and it will pass this info to all its loaded</div><div>plugins. The plugins would then check if the account is of interest and if</div><div>yes, then do something, like set up the calendar integration, for example.</div><div><br></div><div>The KDED module also watches for services change, so eg. if in the</div><div>KCM you disable the calendar service, the Google plugin would disable</div><div>the calendar (but not remove). At least that's the idea.</div><div><br></div><div>In the case of the kio-gdrive, I'm not sure if you'd need such plugin at all.</div><div>I mean, if you don't need to configure anything, then you won't. You can</div><div>just query the credentials data from KAccounts directly from the kio.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A tutorial would be great, but maybe is enough to look at the KDE<br>
Telepathy usage. Could you share more details about this?<br></blockquote><div><br></div><div>KDE Telepathy is a bit special case. It builds a lot on the existing upstream</div><div>code, which is basically a Mission Control plugin that does exactly what the</div><div>KDED is doing. Ie. there is no KTp KDED plugin, this is all handled by Telepathy</div><div>itself.</div><div><br></div><div>I'd recommend looking at the kaccounts-mobile repo, which has some code</div><div>for ownCloud stuff, like importing CardDAV contacts iirc.</div></div><br clear="all"><div>Cheers</div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><span style="color:rgb(102,102,102)">Martin Klapetek</span></div></div></div></div>
</div></div>