[Bug 41772] TP Logger: Introduce TplEventWalker
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 11 07:19:30 CEST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=41772
--- Comment #8 from Debarshi Ray <debarshi.ray at gmail.com> 2012-07-10 22:19:30 PDT ---
(In reply to comment #7)
> The idea is that I don't want UI to keep all the data into RAM. So UIs need a
> way to forget some of the information, and request it later (in an efficient
> way).
Right.
I thought a bit on how this will be used in Empathy. As the user scrolls down,
we can start forgetting some of the older logs, and then fetch them back as the
user scrolls up.
For this to work, we need a way to tell TplLogWalker to rewind a few steps in
the other direction. eg., if 0 is the oldest event, then ...
0 ---
1 ---
2 ---
3 ---
4 ---
5 ---
6 ---
7 ---
8 ---
9 ---
... at some point we might want to forget events 0 to 4, and tell the walker to
rewind back to 4, so that the next time the users scrolls up we can again start
fetching from 4. Question is, what should the API look like? Do we provide an
offset or a message token? Or both?
Secondly, do we want to combine forward and backward iterating functionality
into the same class(es)? Or do we want to keep them separate? C++ has them as
separate types.
--
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