Re: Question about change to Buddy List

Graham Booker <[email protected]> Sun, 5 Jun 2005 13:23:37 -0500
Newsgroups gmane.network.fire.devel
Message-ID <[email protected]>
Ok, I guess there is enough of an outcry that I can't get rid of the  
toolbar.  Oh well, guess I have to figure it out. Anyway, so that  
others know what is going on, especially since I have just dropped a  
few hints about what I was doing:

In 2.0's architecture, I changed the buddy list so that all  
interactions between the rest of Fire and the buddy list are done  
through a protocol.  This allows us to swap out the buddy list code  
with a completely different implementation without having to change a  
single line of code in the rest of Fire.  So, I created a new buddy  
list without changing any of the BuddyController class.  The new  
system is now laid out in the following manner.

Three new classes:
NewBuddyList (likely to be renamed)
ConversationBrowser (which implements the buddy list protocol and  
contains an instance of NewBuddyList within it)
BuddyListWindow (which is a window designed to contain a buddy list)

This split allows for some interesting interactions.  Say, for  
example, someone does not like the Conversation Browser.  They can  
used the BuddyListWindow with the NewBuddyList without using the  
ConversationBroswer at all.  In this case, there isn't even a bar for  
the split view in the display.  Now if one wants the conversation  
browser, then they use the ConversationBrowser as the buddy list  
(which uses the NewBuddyList within it), and they have the  
conversation browser.

Now for the problem that I had with the toolbar: The toolbar is  
entirely dependent on the buddy list, but it needs to be set by the  
class for the window.  Currently I am thinking about setting up and  
managing the toolbar items within the NewBuddyList class and sending  
it up to the window class to assign it to the window.  Not sure if  
this will work, but I am trying it out.

Anyway, I hope to put this within CVS in about a week or so. I  
currently have the buddy list working flawlessly without the toolbar,  
conversation browser, and preferences.

So, if anyone has any other ideas, now is the time to suggest them.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20