[Bug 25288] add ChannelDispatcher.CouldHandleChannel

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 18 17:07:22 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=25288

--- Comment #6 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-06-18 08:07:21 PDT ---
Thinking about it, one easy way to design this would be to assume the available
clients will change infrequently, and use this sort of pattern:

interface o.fd.T.ChannelDispatcher.Interface.PossibleHandlers

    method GetPossibleHandlers(a{sv}) -> as

        [... documented as before ...]

        Clients MAY cache the result of this method (or more practically,
        decisions based on the result of this method), and use HandlersChanged
        to detect when to update their caches.

        | For instance, the Empathy contact list has a "Share my desktop"
        | menu item, which is visible when a VNC tube handler such as Vino
        | is available.

    signal HandlersChanged()
        Emitted when the set of available handlers has changed. Clients
        that cache the results of GetPossibleHandlers SHOULD call that
        method again.

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



More information about the telepathy-bugs mailing list