aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/muc/ChatRoomPresenceStatus.java
diff options
context:
space:
mode:
authorhristoterezov <hristo@jitsi.org>2013-11-07 16:34:33 +0200
committerhristoterezov <hristo@jitsi.org>2013-11-07 16:34:33 +0200
commitbe3bcff1ec1d0df18fae184761e25d3454e40e9f (patch)
tree69875dc15e5c3567cb95b8ddd780f4150e416082 /src/net/java/sip/communicator/service/muc/ChatRoomPresenceStatus.java
parent100ffddbcd0854b97e5b5e4946e35e163f2014d3 (diff)
downloadjitsi-be3bcff1ec1d0df18fae184761e25d3454e40e9f.zip
jitsi-be3bcff1ec1d0df18fae184761e25d3454e40e9f.tar.gz
jitsi-be3bcff1ec1d0df18fae184761e25d3454e40e9f.tar.bz2
Adds new MUC bundle to handle the chat rooms. Moves ChatRoomWrapper,
ChatRoomList and ChatRoomProviderWrapper classes from GUI to the MUC bundle. Moves most of ConferenceChatManager methods in MUCService.
Diffstat (limited to 'src/net/java/sip/communicator/service/muc/ChatRoomPresenceStatus.java')
-rw-r--r--src/net/java/sip/communicator/service/muc/ChatRoomPresenceStatus.java68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/muc/ChatRoomPresenceStatus.java b/src/net/java/sip/communicator/service/muc/ChatRoomPresenceStatus.java
new file mode 100644
index 0000000..7609970
--- /dev/null
+++ b/src/net/java/sip/communicator/service/muc/ChatRoomPresenceStatus.java
@@ -0,0 +1,68 @@
+/*
+ * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
+ *
+ * Distributable under LGPL license. See terms of license at gnu.org.
+ */
+package net.java.sip.communicator.service.muc;
+
+import net.java.sip.communicator.service.protocol.*;
+
+/**
+ * The chat room statuses.
+ *
+ * @author Hristo Terezov
+ */
+public class ChatRoomPresenceStatus extends PresenceStatus
+{
+ /**
+ * An integer above which all values of the status coefficient indicate
+ * eagerness to communicate
+ */
+ public static final int CHAT_ROOM_ONLINE_THRESHOLD = 86;
+
+ /**
+ * An integer above which all values of the status coefficient indicate
+ * eagerness to communicate
+ */
+ public static final int CHAT_ROOM_OFFLINE_THRESHOLD = 87;
+
+ /**
+ * Indicates that the user is connected and ready to communicate.
+ */
+ public static final String ONLINE_STATUS = "Online";
+
+ /**
+ * Indicates that the user is disconnected.
+ */
+ public static final String OFFLINE_STATUS = "Offline";
+
+ /**
+ * The Online status. Indicate that the user is able and willing to
+ * communicate in the chat room.
+ */
+ public static final ChatRoomPresenceStatus CHAT_ROOM_ONLINE
+ = new ChatRoomPresenceStatus(
+ 86,
+ ONLINE_STATUS);
+
+ /**
+ * The Offline status. Indicates the user does not seem to be connected
+ * to the chat room.
+ */
+ public static final ChatRoomPresenceStatus CHAT_ROOM_OFFLINE
+ = new ChatRoomPresenceStatus(
+ 87,
+ OFFLINE_STATUS);
+
+ /**
+ * Creates a status with the specified connectivity coeff and name for the
+ * chat rooms.
+ * @param status the connectivity coefficient for the specified status
+ * @param statusName String
+ */
+ protected ChatRoomPresenceStatus(int status, String statusName)
+ {
+ super(status, statusName);
+ }
+
+}