Server: setAutoJoinChannels(), getAutojoinChannels()

This commit is contained in:
Sebastian Kaspari 2010-04-25 11:21:25 +02:00
parent d5b5b7b7b5
commit 4a03127366
1 changed files with 21 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class Server
private Identity identity;
private LinkedHashMap<String, Conversation> conversations = new LinkedHashMap<String, Conversation>();
private ArrayList<String> autoJoinChannels;
private int status = Status.DISCONNECTED;
private String selected = "";
@ -234,6 +235,26 @@ public class Server
return status;
}
/**
* Set list of channels to auto join after connect
*
* @param channels List of channel names
*/
public void setAutoJoinChannels(ArrayList<String> autoJoinChannels)
{
this.autoJoinChannels = autoJoinChannels;
}
/**
* Get list of channels to auto join after connect
*
* @return List of channel names
*/
public ArrayList<String> getAutoJoinChannels()
{
return autoJoinChannels;
}
/**
* Is disconnected?
*