<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jun 27, 2015 at 8:48 PM, David Edmundson <span dir="ltr"><<a href="mailto:david@davidedmundson.co.uk" target="_blank">david@davidedmundson.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>I just got forwarded a link from Tiagosh regarding a new backend for Google Hangouts.<br><br><a href="https://github.com/tiagosh/telepathy-hanging/" target="_blank">https://github.com/tiagosh/telepathy-hanging/</a><br></div>it requires <a href="https://github.com/tiagosh/libhangish/" target="_blank">https://github.com/tiagosh/libhangish/</a> and up-to-date telepathy-qt.</div><div><br></div>Offline messages work, group chats work. It looks very encouraging.<br><br></div>Worth checking out and contributing to. I see that Kaffeine has already :D<br><br></div>From a KTp side we need to the account creation side, I had to create it with:<br><br><div>






<div>
mc-tool add hanging/hangouts google string:account=<a href="mailto:davidedmundson39@gmail.com" target="_blank">davidedmundson39@gmail.com</a> stri<br>ng:password=hunter2<span style="font-family:monospace"><br></span></div></div><br></div>I'm not sure how we go about adding this with the new auth stuff. <br>Martin, could you give some pointers.</div></div></blockquote><div><br></div><div>Every new account type requires a provider. That is a simple XML file with the provider definition.</div><div>You can basically imagine that provider == account (like Google etc); we use "Account" in UIs.</div><div><br></div><div>Each provider requires a service file, another XML file with description of the service. For Telepathy,</div><div>additionally the services also specify the connection manager and protocol they require (this is</div><div>for the MC plugin to pick it up).</div><div><br></div><div>Now one of these files requires an auth method set. In theory (I haven't tested), libsignon</div><div>should collect all auth methods from all services for given provider and then request a superset</div><div>of these auth methods from the UI (like signon-ui).</div><div><br></div><div>So, we already have a provider for Google, therefore all that should be needed is a new service</div><div>file for this plugin, which needs to have an auth method specified _iff_ it's different from the</div><div>one that the Google provider/service already have (I think they have only oauth2 now) and</div><div>it requires to have the connection manager and protocol set and that is all. It might also require</div><div>a UI plugin if there are some things to configure but that can come later.</div><div><br></div><div>For details see kde:ktp-accounts-kcm/data/kaccounts and kde:kaccounts-providers.</div><div><br></div><div>Cheers</div></div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">Martin Klapetek | KDE Developer</span></div></div>
</div></div>