mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 17:02:21 -05:00
Added ServerInfo window
This commit is contained in:
parent
ec85ac51b7
commit
6e99800a21
@ -43,6 +43,7 @@ public class Channel extends Conversation
|
||||
/**
|
||||
* Get the type of this conversation
|
||||
*/
|
||||
@Override
|
||||
public int getType()
|
||||
{
|
||||
return Conversation.TYPE_CHANNEL;
|
||||
|
@ -41,6 +41,14 @@ public class Server
|
||||
|
||||
private int status = Status.DISCONNECTED;
|
||||
|
||||
/**
|
||||
* Create a new server object
|
||||
*/
|
||||
public Server()
|
||||
{
|
||||
conversations.put(ServerInfo.DEFAULT_NAME, new ServerInfo());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get unique id of server
|
||||
*
|
||||
|
50
src/org/yaaic/model/ServerInfo.java
Normal file
50
src/org/yaaic/model/ServerInfo.java
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
Yaaic - Yet Another Android IRC Client
|
||||
|
||||
Copyright 2009 Sebastian Kaspari
|
||||
|
||||
This file is part of Yaaic.
|
||||
|
||||
Yaaic is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Yaaic is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.yaaic.model;
|
||||
|
||||
/**
|
||||
* ServerInfo for all messages regarding the server
|
||||
*
|
||||
* @author Sebastian Kaspari <sebastian@yaaic.org>
|
||||
*/
|
||||
public class ServerInfo extends Conversation
|
||||
{
|
||||
public static final String DEFAULT_NAME = "";
|
||||
|
||||
/**
|
||||
* Create a new ServerInfo object
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public ServerInfo()
|
||||
{
|
||||
super(DEFAULT_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the type of this conversation
|
||||
*/
|
||||
@Override
|
||||
public int getType()
|
||||
{
|
||||
return Conversation.TYPE_SERVER;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user