Summary: | Need way to request SMS channel | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Danielle Madeley <danielle> |
Component: | tp-spec | Assignee: | Danielle Madeley <danielle> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://git.collabora.co.uk/?p=user/danni/telepathy-spec.git;a=shortlog;h=refs/heads/sms | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: |
Description
Danielle Madeley
2010-11-28 18:48:34 UTC
API sketch: http://git.collabora.co.uk/?p=user/danni/telepathy-spec.git;a=shortlog;h=refs/heads/sms http://people.freedesktop.org/~danni/telepathy-spec-sms/spec/Channel_Interface_SMS.html I have also wondered about a different approach using a "Transport" property with associated enum: Unknown, Network, SMS; which then allows for future expansion (to what?). The property should perhaps be tp:immutable="sometimes" - on some protocols it'll be immutable. You could add tp:immutable="yes" to Flash while you're there. I think having a boolean rather than a tristate enum is reasonable. One concern I have about this branch is that it changes the semantics of a channel that implements Chan.I.SMS from "this channel carries SMSs" to "this channel might conceivably carry SMSs". I think that's probably OK, but it should be specifically stated in the intro docstring: something like this? The presence of this interface on a channel does not imply that messages will be delivered via SMS. This interface SHOULD NOT appear in the _Interfaces_ property of channels where SMSChannel would be immutable and false. It SHOULD appear on channels where SMSChannel is immutable and true, and also on channels where SMSChannel is mutable (i.e. channels that might fall back to sending SMS at any time, such as on MSN). (or the first SHOULD NOT could be a MAY, if you'd prefer those semantics) I prefer MAY, because it makes it slightly easier for channel implementors (you can just make it a fixed interface). Updated with your feedback. This looks OK to me. Merged. |
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.