[Telepathy] [Bug 20031] New: PendingChannel can't wait for ready

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 10 03:50:56 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20031

           Summary: PendingChannel can't wait for ready
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-qt4
        AssignedTo: telepathy at lists.freedesktop.org
        ReportedBy: simon.mcvittie at collabora.co.uk


The current implementation of PendingChannel requires library users to take two
asynchronous steps rather than one:

* call createChannel() or ensureChannel()
* wait asynchronously for the resulting PendingChannel to finish
* in the finished handler, call channel() on the PendingChannel
* call becomeReady(...) on the resulting Channel
* wait asynchronously for the resulting PendingOperation to finish

This isn't necessarily ideal, and it'd be good to have a way to squash the two
async steps into one.

However, it does have some advantages:

* a user that doesn't actually want the Channel object can avoid constructing
it altogether (a ChannelDispatcher implementation shouldn't need these objects,
only the QVariantMaps containing their immutable properties)
* it's easy for a user to make a different subclass of Channel, by passing the
info available on the PendingChannel object to some other constructor

Thoughts? When we've decided the way forward, we can close this bug as INVALID,
or fix it.


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


More information about the telepathy mailing list