diff options
author | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-12-18 00:28:46 +0100 |
---|---|---|
committer | Danny van Heumen <danny@dannyvanheumen.nl> | 2015-01-12 22:47:08 +0100 |
commit | db41fa2525d504ee927c203b5c2a203872a3b7cf (patch) | |
tree | e5ecde44d22a1f51900cd48be6c92b28055962b8 /src/net/java/sip/communicator/service | |
parent | 1d57442c0cdf5609f96912c000ac0f4e2799e1b8 (diff) | |
download | jitsi-db41fa2525d504ee927c203b5c2a203872a3b7cf.zip jitsi-db41fa2525d504ee927c203b5c2a203872a3b7cf.tar.gz jitsi-db41fa2525d504ee927c203b5c2a203872a3b7cf.tar.bz2 |
Work-in-progress on MUC member presence.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/ChatRoomMember.java | 11 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPropertyChangeEvent.java | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/ChatRoomMember.java b/src/net/java/sip/communicator/service/protocol/ChatRoomMember.java index 82fac37..991f4be 100644 --- a/src/net/java/sip/communicator/service/protocol/ChatRoomMember.java +++ b/src/net/java/sip/communicator/service/protocol/ChatRoomMember.java @@ -89,4 +89,15 @@ public interface ChatRoomMember * to set for this member in its containing chat room. */ public void setRole(ChatRoomMemberRole role); + + /** + * Returns the status of the chat room member as per the last status update + * we've received for it. Note that this method is not to perform any + * network operations and will simply return the status received in the last + * status update message. + * + * @return the PresenceStatus that we've received in the last status update + * pertaining to this contact. + */ + public PresenceStatus getPresenceStatus(); } diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPropertyChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPropertyChangeEvent.java index f42924d..456ec44 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPropertyChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPropertyChangeEvent.java @@ -31,6 +31,11 @@ public class ChatRoomMemberPropertyChangeEvent public static final String MEMBER_NICKNAME = "MemberNickname"; /** + * The presence status of the <tt>ChatRoomMember</tt> property. + */ + public static final String MEMBER_PRESENCE = "MemberPresence"; + + /** * The <tt>ChatRoom</tt>, to which the corresponding member belongs. */ private ChatRoom memberChatRoom; |