I have added two new methods to the UIService:
public java.util.List<Chat> getChats();
public MetaContact getMetaContact(Chat chat);
and one method to ChatWindowManager:
public List<ChatPanel> getChatPanels()
getChats returns a list of all currently open chats by using the ChatPanels
returned by ChatWindowManager.getChatPanels().
getMetaContact returns the meta contact from a Chat if it is a one on one
chat. Otherwise it returns null
pub avalible chats.txt (13.3 KB)
getChatPanels returns a list of active ChatPanels directly from
This is required in my gsoc project geek-communicator in order to list open
chats and close them (two seperate features).
I could find no other way to get the currently open chats nor a way to alter
them. I have discussed this with Emil and this seems to be the best way.
Have a nice day!