[Bug 29981] Support power saving interface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 14 18:50:23 CEST 2010


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

--- Comment #10 from Will Thompson <will.thompson at collabora.co.uk> 2010-09-14 09:50:23 PDT ---
(In reply to comment #7)
> I see Conn.I.PowerSaving being useful for offline connections as well, but I am
> not totally convinced about it. You could sway me either way. If we use this
> iface on offline accounts, we don't need to piggyback on top of google:roster,
> we will just always sport the iface, and raise NotAvailable if the service does
> not support it. Added bonus - non-google servers could support google:queue and
> we would interop with them, even if they don't support google:roster.

I would make it raise NotAvailable() until Connected, using
TP_BASE_CONNECTION_ERROR_IF_NOT_CONNECTED(). When we get the server features,
check for 'google:queue' or 'google:roster'; if either is present, add the
interface using tp_base_connection_add_interfaces().

By checking for both features we would do the right thing with the deployed
server that implements this feature, and allow for hypothetical servers to do
the right thing.

This would mean MC should check for this interface only once the connection is
connected. That seems fine: we can't exactly save power during the connection
process. :)

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



More information about the telepathy-bugs mailing list