[Bug 291869] Auth handler should also be an observer (aka non-interractive approver)

George Kiagiadakis kiagiadakis.george at gmail.com
Thu Jan 19 13:25:37 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=291869





--- Comment #2 from George Kiagiadakis <kiagiadakis george gmail com>  2012-01-19 13:25:37 ---
(In reply to comment #1)
> I don't fully understand this.
> 
> How does one switch from being an observer to a handler? 

By calling Claim() in the ChannelDispatchOperation. It's explained in the spec.

> What happens when "it lets the channel be dispatched normally"? 
> Surely MC will look for an valid handlers running, and choose ours which is
> running rather than the empathy-auth-client which is only an observer.

Maybe I wasn't clear on this. empathy-auth-client is both an observer and a
handler. As an observer, it only checks if the channel can be handled with
itself and if it can, it calls Claim() and handles it as a handler. If not,
then it returns from ObserveChannels() and lets MC pick a handler, but since it
is itself a handler as well (which is also running at that time), MC has high
chances of using it as a handler.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KDE-Telepathy mailing list