[Bug 36011] Add Chan.I.SMS.GetLength()
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Apr 20 21:00:23 CEST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=36011
--- Comment #6 from Will Thompson <will.thompson at collabora.co.uk> 2011-04-20 12:00:18 PDT ---
(In reply to comment #5)
> (In reply to comment #4)
>
> > Any idea how to best represent that a message will be truncated? Perhaps add a
> > b:Truncated, where, if true, Remaining_Chars indicates how many characters will
> > be truncated. Alternatively, make Remaining_Chars signed, and make negative
> > represent the number of characters that will be truncated.
>
> Problem with this second solution when we know the message will be truncated,
> but not by how much.
So how about:
GetLength ( aa{sv}: proposed content )
→ ( u: chunks to be used
, i: remaining chars for chunk
, i: estimated cost
)
If the second returned thing is negative; the message will be truncated. If
it's MIN_INT32, we don't know where it got cut off; if it's anything else,
that's how much you'll lose.
--
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