Bug 34964 - TpBaseClient: add DelayApprovers support
Summary: TpBaseClient: add DelayApprovers support
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/ca...
Whiteboard:
Keywords: patch
Depends on: 32267
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-03 02:34 UTC by Guillaume Desmottes
Modified: 2011-03-04 05:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Guillaume Desmottes 2011-03-03 02:34:12 UTC
Once Observer.DelayApprovers has been merged and implemented (bug #32267), TpBaseClient should implement it as well.
Comment 1 Jonny Lamb 2011-03-03 02:49:34 UTC
Depends on bug #32267 and the spec being merged and released blah blah blah you know the boring drill.
Comment 2 Guillaume Desmottes 2011-03-03 03:33:48 UTC
What do you think about this wording for the doc ?


/**
 * tp_base_client_set_observer_delay_approvers:
 * @self: a #TpBaseClient
 * @delay: the value of the Observer.DelayApprovers property
 *
 * Set whether the channel dispatcher should wait for
 * #TpBaseClientClass.observe_channels to return before calling
 * #TpBaseClientClass.add_dispatch_operation on appropriate Approvers.
 *
 * This is implemented by setting the value of the DelayApprovers
 * D-Bus property.
 *
 * This method may only be called before tp_base_client_register() is
 * called, and may only be called on objects whose class implements
 * #TpBaseClientClass.observe_channels.
 *
 * Since: 0.13.UNRELEASED
 */
Comment 3 Guillaume Desmottes 2011-03-03 04:42:56 UTC
I added a test to your branch: http://git.collabora.co.uk/?p=user/cassidy/telepathy-glib;a=shortlog;h=refs/heads/delay-approvers-34964

Btw, your commit actually break the test as get_observer_prop_cb checks the number of Observer properties announced. So we should idally squash these 2 commits together.
Comment 4 Jonny Lamb 2011-03-03 04:51:14 UTC
(In reply to comment #2)
>  * Set whether the channel dispatcher should wait for
>  * #TpBaseClientClass.observe_channels to return before calling
>  * #TpBaseClientClass.add_dispatch_operation on appropriate Approvers.

But ObserveChannels doesn't return when TpBaseClientClass.observe_channels returns, it's when one of the tp_observe_channels_context_* functions is called.

Other than that it looks fine. Sorry for breaking the test!
Comment 5 Guillaume Desmottes 2011-03-03 05:06:57 UTC
Fixed in the new version of the branch. I'll merge it once we have a spec release out and tp-glib has been synced to it.
Comment 6 Guillaume Desmottes 2011-03-04 05:47:15 UTC
spec released. Merged, will be in 0.13.16.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.