[API Change] Instant room list
Tomasz Wasilczyk
tomkiewicz.groups at gmail.com
Wed Sep 12 06:19:30 EDT 2012
Yes, I think it's good approach.
2012/9/12 Eion Robb <eionrobb at gmail.com>:
> Could this be better implemented as a call similar to the get server alias
> function that's available for buddies? Or are you just talking about what
> columns are shown in the server room browser?
>
> On Sep 12, 2012 6:54 AM, "Tomasz Wasilczyk" <tomkiewicz.groups at gmail.com>
> wrote:
>>
>> Hi,
>>
>> I am currently working on conferences for Gadu-Gadu protocol and it
>> turned out, there is a need for two new features in libpurple.
>>
>> Display names vs chat room names:
>> conferences in Gadu-Gadu are identified by a single, 64-bit integer.
>> It doesn't look [1] really pretty, nor user-friendly. Original
>> Gadu-Gadu client uses [2] some chat participants to generate a name,
>> but Pidgin cannot handle it this way, because conference names
>> shouldn't change and should be unique. My idea was to provide an
>> optional "display name", used only for displaying chat name in UI. It
>> could be done just like purple_conv_chat_set_topic. Can I do it this
>> way?
>>
>> Instant room list:
>> Gadu-Gadu holds all accessible rooms list in memory, so there is no
>> need to perform any time consuming tasks to get it. That means, there
>> is no need for wait for clicking "Get list" button before displaying
>> it (more user-friendliness!). It could be performed in two ways:
>> - statically, by adding another protocol option:
>> OPT_PROTO_INSTANT_ROOM_LIST
>> - dynamically, by adding "gboolean
>> *(*roomlist_is_ready)(PurpleConnection *gc);" callback - it could be
>> useful for protocols like IRC, to make use of previously got list
>> Can I implement one of these?
>>
>> Also: purple_roomlist_set_in_progress cannot be called within
>> roomlist_get_list callback (see nullprpl). Is it a bug, or feature? I
>> just want to instantly return complete room list.
>>
>> Waiting for comments and API related decisions,
>> Tomek
>>
>> [1] http://i.imgur.com/y1YJN.png
>> [2] http://i.imgur.com/Qwg7a.png
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at pidgin.im
>> http://pidgin.im/cgi-bin/mailman/listinfo/devel
More information about the Devel
mailing list