From dbb522370cefb4a7b723680bf095b88e455f1f05 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 12 May 2010 10:29:16 +0200 Subject: [PATCH] Conversation: setStatus(), getStatus() and constants Conversation.STATUS_* --- src/org/yaaic/model/Conversation.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/org/yaaic/model/Conversation.java b/src/org/yaaic/model/Conversation.java index 7d12a05..0601762 100644 --- a/src/org/yaaic/model/Conversation.java +++ b/src/org/yaaic/model/Conversation.java @@ -37,12 +37,18 @@ public abstract class Conversation public static final int TYPE_QUERY = 2; public static final int TYPE_SERVER = 3; + public static final int STATUS_DEFAULT = 1; + public static final int STATUS_SELECTED = 2; + public static final int STATUS_MESSAGE = 3; + public static final int STATUS_HIGHLIGHT = 4; + public static final int HISTORY_SIZE = 30; private LinkedList buffer; private LinkedList history; private String name; private MessageListAdapter adapter; + private int status = 1; /** * Get the type of conversation (channel, query, ..) @@ -156,4 +162,24 @@ public abstract class Conversation { return adapter; } + + /** + * Set status of conversation + * + * @param status + */ + public void setStatus(int status) + { + this.status = status; + } + + /** + * Get status of conversation + * + * @return + */ + public int getStatus() + { + return status; + } }