aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2010-09-02 15:21:43 +0000
committerDamian Minkov <damencho@jitsi.org>2010-09-02 15:21:43 +0000
commit0423ead8cce878d6e0e34e5ac24b3c07ebca3525 (patch)
tree70e9dfa09c56003c5c587d6e0ab713bd2e7d41d7 /src/net/java/sip/communicator/service/protocol
parentee6ed1fc66f652700394ca09f2d7b06a30c70a30 (diff)
downloadjitsi-0423ead8cce878d6e0e34e5ac24b3c07ebca3525.zip
jitsi-0423ead8cce878d6e0e34e5ac24b3c07ebca3525.tar.gz
jitsi-0423ead8cce878d6e0e34e5ac24b3c07ebca3525.tar.bz2
Integrate choosing and setting avatar image for protocols (currently only for msn and jabber). This work is done as part of Google Summer of Code 2009 by Shashank Tyagi and his mentor Damien Roth.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol')
-rw-r--r--src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageReceivedEvent.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageReceivedEvent.java
index d980d92..0fdd67f 100644
--- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageReceivedEvent.java
+++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageReceivedEvent.java
@@ -64,6 +64,11 @@ public class ChatRoomMessageReceivedEvent
private final int eventType;
/**
+ * Some services can fill our room with message history.
+ */
+ private boolean historyMessage = false;
+
+ /**
* Creates a <tt>MessageReceivedEvent</tt> representing reception of the
* <tt>source</tt> message received from the specified <tt>from</tt>
* contact.
@@ -138,4 +143,23 @@ public class ChatRoomMessageReceivedEvent
{
return eventType;
}
+
+ /**
+ * Is current event for history message.
+ * @return is current event for history message.
+ */
+ public boolean isHistoryMessage()
+ {
+ return historyMessage;
+ }
+
+ /**
+ * Changes property, whether this event is for a history message.
+ *
+ * @param historyMessage whether its event for history message.
+ */
+ public void setHistoryMessage(boolean historyMessage)
+ {
+ this.historyMessage = historyMessage;
+ }
}