diff options
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/event')
60 files changed, 453 insertions, 143 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/event/AccountManagerEvent.java b/src/net/java/sip/communicator/service/protocol/event/AccountManagerEvent.java index 30c2f9e..16817f4 100644 --- a/src/net/java/sip/communicator/service/protocol/event/AccountManagerEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/AccountManagerEvent.java @@ -12,12 +12,16 @@ import net.java.sip.communicator.service.protocol.*; /**
* Represents a notifying event fired by a specific {@link AccountManager}.
- *
+ *
* @author Lubomir Marinov
*/
public class AccountManagerEvent
extends EventObject
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
/**
* The type of event notifying that the loading of the stored accounts of a
@@ -42,7 +46,7 @@ public class AccountManagerEvent * specific <code>AccountManager</code> in order to notify of an event of a
* specific type occurring while working on a specific
* <code>ProtocolProviderFactory</code>.
- *
+ *
* @param accountManager the <code>AccountManager</code> issuing the
* notification i.e. the source of the event
* @param type the type of the event which is one of
@@ -62,7 +66,7 @@ public class AccountManagerEvent /**
* Gets the <code>ProtocolProviderFactory</code> being worked on at the time
* this event has been fired.
- *
+ *
* @return the <code>ProtocolProviderFactory</code> being worked on at the
* time this event has been fired
*/
@@ -74,7 +78,7 @@ public class AccountManagerEvent /**
* Gets the (detail) type of this event which is one of
* <code>STORED_ACCOUNTS_LOADED</code>.
- *
+ *
* @return the (detail) type of this event which is one of
* <code>STORED_ACCOUNTS_LOADED</code>
*/
diff --git a/src/net/java/sip/communicator/service/protocol/event/AdHocChatRoomParticipantPresenceChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/AdHocChatRoomParticipantPresenceChangeEvent.java index eb3795d..759fbc4 100644 --- a/src/net/java/sip/communicator/service/protocol/event/AdHocChatRoomParticipantPresenceChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/AdHocChatRoomParticipantPresenceChangeEvent.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.protocol.*; /** * Dispatched to notify interested parties that a change in the presence of an - * ad-hoc chat room participant has occurred. Changes may include the + * ad-hoc chat room participant has occurred. Changes may include the * participant being join, left... * * @author Valentin Martinet @@ -65,10 +65,10 @@ public class AdHocChatRoomParticipantPresenceChangeEvent * Creates an <tt>AdHocChatRoomParticipantPresenceChangeEvent</tt> * representing that a change in the presence of an <tt>Contact</tt> * has occurred. Changes may include the participant being join, left, etc. - * - * @param sourceAdHocRoom the <tt>AdHocChatRoom</tt> that produced this + * + * @param sourceAdHocRoom the <tt>AdHocChatRoom</tt> that produced this * event - * @param sourceParticipant the <tt>Contact</tt> that this event is about + * @param sourceParticipant the <tt>Contact</tt> that this event is about * @param eventType the event type; one of the CONTACT_XXX constants * @param reason the reason explaining why this event might have occurred */ @@ -96,7 +96,7 @@ public class AdHocChatRoomParticipantPresenceChangeEvent /** * Returns the participant that this event is about. - * + * * @return the <tt>Contact</tt> that this event is about. */ public Contact getParticipant() @@ -118,7 +118,7 @@ public class AdHocChatRoomParticipantPresenceChangeEvent /** * Gets the indicator which determines whether this event has occurred with * the well-known reason of listing all users in a <code>ChatRoom</code>. - * + * * @return <tt>true</tt> if this event has occurred with the well-known * reason of listing all users in a <code>ChatRoom</code> i.e. * {@link #getReason()} returns a value of {@link #REASON_USER_LIST}; @@ -143,6 +143,8 @@ public class AdHocChatRoomParticipantPresenceChangeEvent /** * Returns a String representation of this event. + * + * @return string representation of this event */ public String toString() { diff --git a/src/net/java/sip/communicator/service/protocol/event/AvatarEvent.java b/src/net/java/sip/communicator/service/protocol/event/AvatarEvent.java index 90c8677..0428e37 100644 --- a/src/net/java/sip/communicator/service/protocol/event/AvatarEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/AvatarEvent.java @@ -12,13 +12,18 @@ import net.java.sip.communicator.service.protocol.*; /** * Instances of this class represent a change avatar of a protocol - * + * * @author Damien Roth */ public class AvatarEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The new avatar */ private byte[] newAvatar; @@ -31,7 +36,7 @@ public class AvatarEvent /** * Creates an event instance indicating that the specified protocol * has changed its avatar to <tt>newAvatar</tt>. - * + * * @param sourceOp the operation set that generated this event * @param sourceProvider the protocol provider that the contact belongs to * @param newAvatar the new avatar @@ -77,7 +82,7 @@ public class AvatarEvent /** * Returns a String representation of this AvatarEvent - * + * * @return a <tt>String</tt> representation of this <tt>AvatarEvent</tt>. */ public String toString() diff --git a/src/net/java/sip/communicator/service/protocol/event/CallChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallChangeEvent.java index d43e17c..374afaa 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallChangeEvent.java @@ -19,6 +19,9 @@ import net.java.sip.communicator.service.protocol.*; public class CallChangeEvent extends java.beans.PropertyChangeEvent { + /** + * Serial version UID. + */ private static final long serialVersionUID = 0L; /** diff --git a/src/net/java/sip/communicator/service/protocol/event/CallEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallEvent.java index b6ee61b..83ca589 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallEvent.java @@ -20,6 +20,11 @@ public class CallEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event id value indicating that this event has been triggered as a * result of an outgoing call. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerChangeEvent.java index 29f7c0d..c684107 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerChangeEvent.java @@ -33,6 +33,11 @@ public class CallPeerChangeEvent extends java.beans.PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event type indicating that the corresponding event is caused by a * change of the CallPeer's status. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerConferenceEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerConferenceEvent.java index 8c58c7e..ede9bd2 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerConferenceEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerConferenceEvent.java @@ -21,6 +21,10 @@ import net.java.sip.communicator.service.protocol.*; public class CallPeerConferenceEvent extends EventObject { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * The ID of <code>CallPeerConferenceEvent</code> which notifies diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerControlEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerControlEvent.java index 824c6e3..45ab215 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerControlEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerControlEvent.java @@ -26,6 +26,11 @@ import net.java.sip.communicator.service.protocol.*; public class CallPeerControlEvent extends java.util.EventObject { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private final String targetURI; /** diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerEvent.java index 68cbeb6..ed3923d 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerEvent.java @@ -18,6 +18,11 @@ public class CallPeerEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The call that the source call peer is associated with. */ private final Call sourceCall; diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java index 1afc111..dbd14c8 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java @@ -21,6 +21,11 @@ public class CallPeerSecurityMessageEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * This is a information message. Security will be established. */ public static final int INFORMATION = 0; diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOffEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOffEvent.java index b9684af..330389a 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOffEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOffEvent.java @@ -17,6 +17,10 @@ import net.java.sip.communicator.service.protocol.*; public class CallPeerSecurityOffEvent extends CallPeerSecurityStatusEvent { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * The event constructor. diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOnEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOnEvent.java index da22635..c02b24c 100755 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOnEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityOnEvent.java @@ -18,6 +18,11 @@ import net.java.sip.communicator.service.protocol.*; public class CallPeerSecurityOnEvent extends CallPeerSecurityStatusEvent { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private final String securityString; private final boolean isVerified; diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityStatusEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityStatusEvent.java index 76e07e7..d36297b 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityStatusEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityStatusEvent.java @@ -17,6 +17,11 @@ public abstract class CallPeerSecurityStatusEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Constant value defining that security is enabled. */ public static final int AUDIO_SESSION = 1; diff --git a/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java index 91ba5d7..5317a98 100644 --- a/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/CallReceivedEvent.java @@ -18,6 +18,9 @@ import net.java.sip.communicator.service.protocol.*; public class CallReceivedEvent extends EventObject { + /** + * Serial version UID. + */ private static final long serialVersionUID = 0L; public CallReceivedEvent(Call call) diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationReceivedEvent.java index fae17d1..38ad202 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationReceivedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationReceivedEvent.java @@ -12,7 +12,7 @@ import net.java.sip.communicator.service.protocol.*; /** * <tt>ChatRoomInvitationReceivedEvent</tt>s indicate reception of an * invitation to join a chat room. - * + * * @author Emil Ivov * @author Stephane Remy * @author Yana Stamcheva @@ -21,10 +21,15 @@ public class ChatRoomInvitationReceivedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The invitation corresponding to this event. */ private final ChatRoomInvitation invitation; - + /** * A timestamp indicating the exact date when the event occurred. */ @@ -50,17 +55,17 @@ public class ChatRoomInvitationReceivedEvent this.invitation = invitation; this.timestamp = timestamp; } - + /** * Returns the multi user chat operation set that dispatches this event. - * + * * @return the multi user chat operation set that dispatches this event. */ public OperationSetMultiUserChat getSourceOperationSet() { return (OperationSetMultiUserChat) getSource(); } - + /** * Returns the <tt>ChatRoomInvitation</tt> that this event is for. * @@ -70,7 +75,7 @@ public class ChatRoomInvitationReceivedEvent { return invitation; } - + /** * A timestamp indicating the exact date when the event ocurred. * diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationRejectedEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationRejectedEvent.java index ed953d7..6559e1c 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationRejectedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomInvitationRejectedEvent.java @@ -21,26 +21,31 @@ public class ChatRoomInvitationRejectedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The <tt>ChatRoom</tt> for which the initial invitation was. */ private ChatRoom chatRoom; - + /** * The invitee that rejected the invitation. */ private String invitee; - + /** * The reason why this invitation is rejected or null if there is no reason * specified. */ private String reason; - + /** * The exact date at which this event occured. */ private Date timestamp; - + /** * Creates a <tt>ChatRoomInvitationRejectedEvent</tt> representing the * rejection of an invitation, rejected by the given <tt>invitee</tt>. @@ -60,33 +65,33 @@ public class ChatRoomInvitationRejectedEvent Date timestamp) { super(source); - + this.chatRoom = chatRoom; this.invitee = invitee; this.reason = reason; this.timestamp = timestamp; } - + /** * Returns the multi user chat operation set that dispatches this event. - * + * * @return the multi user chat operation set that dispatches this event */ public OperationSetMultiUserChat getSourceOperationSet() { return (OperationSetMultiUserChat)getSource(); } - + /** * Returns the <tt>ChatRoom</tt> for which the initial invitation was. - * + * * @return the <tt>ChatRoom</tt> for which the initial invitation was */ public ChatRoom getChatRoom() { return chatRoom; } - + /** * Returns the name of the invitee that rejected the invitation. * @@ -96,7 +101,7 @@ public class ChatRoomInvitationRejectedEvent { return invitee; } - + /** * Returns the reason for which the <tt>ChatRoomInvitation</tt> is rejected. * @@ -106,7 +111,7 @@ public class ChatRoomInvitationRejectedEvent { return reason; } - + /** * A timestamp indicating the exact date when the event ocurred. * @return a Date indicating when the event ocurred. diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomLocalUserRoleChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomLocalUserRoleChangeEvent.java index 8acac38..f7ba6c8 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomLocalUserRoleChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomLocalUserRoleChangeEvent.java @@ -13,7 +13,7 @@ import net.java.sip.communicator.service.protocol.*; * Dispatched to notify interested parties that a change in our role in the * source chat room has occurred. Changes may include us being granted admin * permissions, or other permissions. - * + * * @see ChatRoomMemberRole * * @author Emil Ivov @@ -21,35 +21,40 @@ import net.java.sip.communicator.service.protocol.*; */ public class ChatRoomLocalUserRoleChangeEvent extends EventObject -{ +{ + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + /** * The previous role that local participant had. */ private ChatRoomMemberRole previousRole = null; - + /** * The new role that local participant get. */ private ChatRoomMemberRole newRole = null; - + /** * Creates a <tt>ChatRoomLocalUserRoleChangeEvent</tt> representing that * a change in local participant role in the source chat room has * occured. - * + * * @param sourceRoom the <tt>ChatRoom</tt> that produced the event * @param previousRole the previous role that local participant had * @param newRole the new role that local participant get */ public ChatRoomLocalUserRoleChangeEvent(ChatRoom sourceRoom, ChatRoomMemberRole previousRole, - ChatRoomMemberRole newRole) + ChatRoomMemberRole newRole) { super(sourceRoom); this.previousRole = previousRole; this.newRole = newRole; } - + /** * Returns the new role the local participant get. * @@ -59,7 +64,7 @@ public class ChatRoomLocalUserRoleChangeEvent { return newRole; } - + /** * Returns the previous role that local participant had. * @@ -69,7 +74,7 @@ public class ChatRoomLocalUserRoleChangeEvent { return previousRole; } - + /** * Returns the <tt>ChatRoom</tt>, where this event occured. * diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPresenceChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPresenceChangeEvent.java index a4ac041..220b7d0 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPresenceChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPresenceChangeEvent.java @@ -21,6 +21,11 @@ public class ChatRoomMemberPresenceChangeEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that this event was triggered as a result of the participant * joining the source chat room. */ @@ -78,9 +83,9 @@ public class ChatRoomMemberPresenceChangeEvent * Creates a <tt>ChatRoomMemberPresenceChangeEvent</tt> representing that * a change in the presence of a <tt>ChatRoomMember</tt> has occurred. * Changes may include the participant being kicked, join, left, etc. - * + * * @param sourceRoom the <tt>ChatRoom</tt> that produced this event - * @param sourceMember the <tt>ChatRoomMember</tt> that this event is about + * @param sourceMember the <tt>ChatRoomMember</tt> that this event is about * @param eventType the event type; one of the MEMBER_XXX constants * @param reason the reason explaining why this event might have occurred */ @@ -96,11 +101,11 @@ public class ChatRoomMemberPresenceChangeEvent * Creates a <tt>ChatRoomMemberPresenceChangeEvent</tt> representing that * a change in the presence of a <tt>ChatRoomMember</tt> has occurred. * Changes may include the participant being kicked, join, left, etc. - * + * * @param sourceRoom the <tt>ChatRoom</tt> that produced this event * @param sourceMember the <tt>ChatRoomMember</tt> that this event is about * @param actorMember the <tt>ChatRoomMember</tt> that participated as an - * actor in this event + * actor in this event * @param eventType the event type; one of the MEMBER_XXX constants * @param reason the reason explaining why this event might have occurred */ @@ -129,7 +134,7 @@ public class ChatRoomMemberPresenceChangeEvent /** * Returns the chat room member that this event is about. - * + * * @return the <tt>ChatRoomMember</tt> that this event is about. */ public ChatRoomMember getChatRoomMember() @@ -151,7 +156,7 @@ public class ChatRoomMemberPresenceChangeEvent /** * Gets the indicator which determines whether this event has occurred with * the well-known reason of listing all users in a <code>ChatRoom</code>. - * + * * @return <tt>true</tt> if this event has occurred with the well-known * reason of listing all users in a <code>ChatRoom</code> i.e. * {@link #getReason()} returns a value of {@link #REASON_USER_LIST}; @@ -176,6 +181,8 @@ public class ChatRoomMemberPresenceChangeEvent /** * Returns a String representation of this event. + * + * @return String representation of this event */ public String toString() { 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 83f621d..458edb1 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPropertyChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberPropertyChangeEvent.java @@ -10,8 +10,8 @@ import net.java.sip.communicator.service.protocol.*; /** * A <tt>ChatRoomMemberPropertyChangeEvent</tt> is issued whenever a chat room - * member property has changed (such as the nickname for example). Event codes - * defined in this class describe properties whose changes are being announced + * member property has changed (such as the nickname for example). Event codes + * defined in this class describe properties whose changes are being announced * through this event. * * @author Emil Ivov @@ -21,6 +21,11 @@ public class ChatRoomMemberPropertyChangeEvent extends java.beans.PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The nick name of the <tt>ChatRoomMember</tt> property. */ public static final String MEMBER_NICKNAME = "MemberNickname"; @@ -31,12 +36,13 @@ public class ChatRoomMemberPropertyChangeEvent private ChatRoom memberChatRoom; /** - * Creates a <tt>ChatRoomMemberPropertyChangeEvent</tt> indicating that a + * Creates a <tt>ChatRoomMemberPropertyChangeEvent</tt> indicating that a * change has occurred for property <tt>propertyName</tt> in the - * <tt>source</tt> chat room member and that its value has changed from + * <tt>source</tt> chat room member and that its value has changed from * <tt>oldValue</tt> to <tt>newValue</tt>. * <p> * @param source the <tt>ChatRoomMember</tt> whose property has changed. + * @param memberChatRoom the <tt>ChatRoom</tt> of the member * @param propertyName the name of the property that has changed. * @param oldValue the value of the property before the change occurred. * @param newValue the value of the property after the change. @@ -77,6 +83,8 @@ public class ChatRoomMemberPropertyChangeEvent /** * Returns a String representation of this event. + * + * @return String representation of this event */ public String toString() { diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberRoleChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberRoleChangeEvent.java index fd93f8f..398d641 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberRoleChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMemberRoleChangeEvent.java @@ -14,7 +14,7 @@ import net.java.sip.communicator.service.protocol.*; * Dispatched to notify interested parties that a change in a member role in the * source room has occurred. Changes may include member being granted admin * permissions, or other permissions. - * + * * @see ChatRoomMemberRole * * @author Emil Ivov @@ -24,24 +24,29 @@ public class ChatRoomMemberRoleChangeEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The member that the event relates to. */ private ChatRoomMember sourceMember = null; - + /** * The previous role that this member had. */ private ChatRoomMemberRole previousRole = null; - + /** * The new role that this member get. */ private ChatRoomMemberRole newRole = null; - + /** * Creates a <tt>ChatRoomMemberRoleChangeEvent</tt> representing that * a change in member role in the source chat room has occured. - * + * * @param sourceRoom the <tt>ChatRoom</tt> that produced this event * @param sourceMember the <tt>ChatRoomMember</tt> that this event is about * @param previousRole the previous role that member had @@ -50,14 +55,14 @@ public class ChatRoomMemberRoleChangeEvent public ChatRoomMemberRoleChangeEvent(ChatRoom sourceRoom, ChatRoomMember sourceMember, ChatRoomMemberRole previousRole, - ChatRoomMemberRole newRole) + ChatRoomMemberRole newRole) { super(sourceRoom); this.sourceMember = sourceMember; this.previousRole = previousRole; this.newRole = newRole; } - + /** * Returns the new role given to the member that this event is about. * @@ -67,7 +72,7 @@ public class ChatRoomMemberRoleChangeEvent { return newRole; } - + /** * Returns the previous role the member that this event is about had. * @@ -77,7 +82,7 @@ public class ChatRoomMemberRoleChangeEvent { return previousRole; } - + /** * Returns the chat room that produced this event. * @@ -87,7 +92,7 @@ public class ChatRoomMemberRoleChangeEvent { return (ChatRoom)getSource(); } - + /** * Returns the member that this event is about. * @return the <tt>ChatRoomMember</tt> that this event is about diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveredEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveredEvent.java index 981ae34..a8d1512 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveredEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveredEvent.java @@ -21,6 +21,11 @@ public class ChatRoomMessageDeliveredEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event type indicating that the message being received is a standard * conversation message sent by another member of the chat room to all * current participants. diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveryFailedEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveryFailedEvent.java index f3243fe..2a3163c 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveryFailedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageDeliveryFailedEvent.java @@ -21,6 +21,11 @@ public class ChatRoomMessageDeliveryFailedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The chat room member that this message has been sent to. */ private ChatRoomMember to = null; @@ -114,7 +119,7 @@ public class ChatRoomMessageDeliveryFailedEvent { return to; } - + /** * Returns the received message. * @return the <tt>Message</tt> that triggered this event. 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 0fdd67f..1fcc5d0 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageReceivedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomMessageReceivedEvent.java @@ -20,6 +20,11 @@ public class ChatRoomMessageReceivedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event type indicating that the message being received is a standard * conversation message sent by another member of the chatroom to all * current participants. diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeEvent.java index 043c1d6..cf3f052 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeEvent.java @@ -20,15 +20,20 @@ public class ChatRoomPropertyChangeEvent extends java.beans.PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The name of the <tt>ChatRoom</tt> subject property. */ public static final String CHAT_ROOM_SUBJECT = "ChatRoomSubject"; - + /** * The name of the <tt>ChatRoom</tt> subject property. */ public static final String CHAT_ROOM_USER_NICKNAME = "ChatRoomUserNickname"; - + /** * Creates a <tt>ChatRoomPropertyChangeEvent</tt> indicating that a change * has occurred for property <tt>propertyName</tt> in the <tt>source</tt> @@ -58,9 +63,11 @@ public class ChatRoomPropertyChangeEvent { return (ChatRoom)getSource(); } - + /** * Returns a String representation of this event. + * + * @return String representation of this event */ public String toString() { diff --git a/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeFailedEvent.java b/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeFailedEvent.java index 37265c6..35ce982 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeFailedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ChatRoomPropertyChangeFailedEvent.java @@ -14,28 +14,33 @@ import net.java.sip.communicator.service.protocol.*; * Dispatched to indicate that a change of a chat room property has failed. * The modification of a property could fail, because the implementation * doesn't support such a property. - * + * * @author Yana Stamcheva */ public class ChatRoomPropertyChangeFailedEvent extends PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that the current implementation doesn't support the given * property. */ public static final int PROPERTY_NOT_SUPPORTED = 0; - + /** * The reason of the failure. */ private final String reason; - + /** * Indicates why the failure occurred. */ private final int reasonCode; - + /** * Creates a <tt>ChatRoomPropertyChangeEvent</tt> indicating that a change * has occurred for property <tt>propertyName</tt> in the <tt>source</tt> @@ -49,7 +54,7 @@ public class ChatRoomPropertyChangeFailedEvent * @param reasonCode the code indicating the reason for the failure * @param reason more detailed explanation of the failure */ - public ChatRoomPropertyChangeFailedEvent( ChatRoom source, + public ChatRoomPropertyChangeFailedEvent( ChatRoom source, String propertyName, Object propertyValue, Object expectedValue, @@ -57,7 +62,7 @@ public class ChatRoomPropertyChangeFailedEvent String reason) { super(source, propertyName, propertyValue, expectedValue); - + this.reasonCode = reasonCode; this.reason = reason; } @@ -72,27 +77,27 @@ public class ChatRoomPropertyChangeFailedEvent { return (ChatRoom)getSource(); } - + /** * Returns the value of the property. - * + * * @return the value of the property. */ public Object getPropertyValue() { - return getOldValue(); + return getOldValue(); } - + /** * Return the expected after the change value of the property. - * + * * @return the expected after the change value of the property */ public Object getExpectedValue() { return getNewValue(); } - + /** * Returns the code of the failure. One of the static constants declared in * this class. @@ -103,7 +108,7 @@ public class ChatRoomPropertyChangeFailedEvent { return reasonCode; } - + /** * Returns the reason of the failure. * @return the reason of the failure @@ -112,9 +117,11 @@ public class ChatRoomPropertyChangeFailedEvent { return reason; } - + /** * Returns a String representation of this event. + * + * @return String representation of this event */ public String toString() { diff --git a/src/net/java/sip/communicator/service/protocol/event/ConferenceMembersSoundLevelEvent.java b/src/net/java/sip/communicator/service/protocol/event/ConferenceMembersSoundLevelEvent.java index 2436107..c716299 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ConferenceMembersSoundLevelEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ConferenceMembersSoundLevelEvent.java @@ -22,6 +22,11 @@ public class ConferenceMembersSoundLevelEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The maximum level that can be reported for a participant in a conference. * Level values should be distributed among MAX_LEVEL and MIN_LEVEL in a * way that would appear uniform to users. diff --git a/src/net/java/sip/communicator/service/protocol/event/ContactCapabilitiesEvent.java b/src/net/java/sip/communicator/service/protocol/event/ContactCapabilitiesEvent.java index ee32d90..da12de3 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ContactCapabilitiesEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ContactCapabilitiesEvent.java @@ -13,7 +13,7 @@ import net.java.sip.communicator.service.protocol.*; /** * Represents an event/<tt>EventObject</tt> fired by * <tt>OperationSetClientCapabilities</tt> in order to notify about changes in - * the list of the <tt>OperationSet</tt> capabilities of a <tt>Contact</tt>. + * the list of the <tt>OperationSet</tt> capabilities of a <tt>Contact</tt>. * * @author Lubomir Marinov */ @@ -21,6 +21,11 @@ public class ContactCapabilitiesEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The ID of the <tt>ContactCapabilitiesEvent</tt> which notifies about * changes in the list of the <tt>OperationSet</tt> capabilities of a * <tt>Contact</tt>. diff --git a/src/net/java/sip/communicator/service/protocol/event/ContactPresenceStatusChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ContactPresenceStatusChangeEvent.java index a09ee93..4ce2d1f 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ContactPresenceStatusChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ContactPresenceStatusChangeEvent.java @@ -17,9 +17,20 @@ import net.java.sip.communicator.service.protocol.*; */ public class ContactPresenceStatusChangeEvent extends PropertyChangeEvent { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** + * The contact's <tt>ProtocolProviderService</tt>. + */ private ProtocolProviderService sourceProvider = null; - private ContactGroup parentGroup = null; + /** + * The parent group of the contact. + */ + private ContactGroup parentGroup = null; /** * Creates an event instance indicating that the specified source contact diff --git a/src/net/java/sip/communicator/service/protocol/event/ContactPropertyChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ContactPropertyChangeEvent.java index cd6ee66..6f324bc 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ContactPropertyChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ContactPropertyChangeEvent.java @@ -13,6 +13,11 @@ public class ContactPropertyChangeEvent extends java.beans.PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that a change has occurred in the display name of the source * contact. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/FileTransferCreatedEvent.java b/src/net/java/sip/communicator/service/protocol/event/FileTransferCreatedEvent.java index 8656f8b..feaeff0 100644 --- a/src/net/java/sip/communicator/service/protocol/event/FileTransferCreatedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/FileTransferCreatedEvent.java @@ -13,13 +13,18 @@ import net.java.sip.communicator.service.protocol.*; /** * The <tt>FileTransferCreatedEvent</tt> indicates the creation of a file * transfer. - * + * * @author Yana Stamcheva */ public class FileTransferCreatedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The timestamp indicating the exact date when the event occurred. */ private final Date timestamp; @@ -43,7 +48,7 @@ public class FileTransferCreatedEvent /** * Returns the file transfer that triggered this event. - * + * * @return the <tt>FileTransfer</tt> that triggered this * event. */ @@ -54,7 +59,7 @@ public class FileTransferCreatedEvent /** * A timestamp indicating the exact date when the event occurred. - * + * * @return a Date indicating when the event occurred. */ public Date getTimestamp() diff --git a/src/net/java/sip/communicator/service/protocol/event/FileTransferProgressEvent.java b/src/net/java/sip/communicator/service/protocol/event/FileTransferProgressEvent.java index b8c57ef..0a8157c 100644 --- a/src/net/java/sip/communicator/service/protocol/event/FileTransferProgressEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/FileTransferProgressEvent.java @@ -13,13 +13,18 @@ import net.java.sip.communicator.service.protocol.*; /** * The <tt>FileTransferProgressEvent</tt> indicates the progress of a file * transfer. - * + * * @author Yana Stamcheva */ public class FileTransferProgressEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates the progress of a file transfer in bytes. */ private long progress; @@ -33,7 +38,7 @@ public class FileTransferProgressEvent * Creates a <tt>FileTransferProgressEvent</tt> by specifying the source * file transfer object, that triggered the event and the new progress * value. - * + * * @param fileTransfer the source file transfer object, that triggered the * event * @param timestamp when this event occured @@ -51,7 +56,7 @@ public class FileTransferProgressEvent /** * Returns the source <tt>FileTransfer</tt> that triggered this event. - * + * * @return the source <tt>FileTransfer</tt> that triggered this event */ public FileTransfer getFileTransfer() @@ -61,7 +66,7 @@ public class FileTransferProgressEvent /** * Returns the progress of the file transfer in transferred bytes. - * + * * @return the progress of the file transfer */ public long getProgress() @@ -71,7 +76,7 @@ public class FileTransferProgressEvent /** * Returns the timestamp when this event initially occured. - * + * * @return the timestamp when this event initially occured */ public long getTimestamp() diff --git a/src/net/java/sip/communicator/service/protocol/event/FileTransferRequestEvent.java b/src/net/java/sip/communicator/service/protocol/event/FileTransferRequestEvent.java index 551ac96..9c04de8 100644 --- a/src/net/java/sip/communicator/service/protocol/event/FileTransferRequestEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/FileTransferRequestEvent.java @@ -13,7 +13,7 @@ import net.java.sip.communicator.service.protocol.*; /** * The <tt>FileTransferRequestEvent</tt> indicates the reception of a file * transfer request. - * + * * @author Nicolas Riegel * @author Yana Stamcheva */ @@ -21,6 +21,11 @@ public class FileTransferRequestEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The request that triggered this event. */ private final IncomingFileTransferRequest request; @@ -53,7 +58,7 @@ public class FileTransferRequestEvent /** * Returns the <tt>OperationSetFileTransfer</tt>, where this event initially * occurred. - * + * * @return the <tt>OperationSetFileTransfer</tt>, where this event initially * occurred */ @@ -64,7 +69,7 @@ public class FileTransferRequestEvent /** * Returns the incoming file transfer request that triggered this event. - * + * * @return the <tt>IncomingFileTransferRequest</tt> that triggered this * event. */ @@ -75,7 +80,7 @@ public class FileTransferRequestEvent /** * A timestamp indicating the exact date when the event occurred. - * + * * @return a Date indicating when the event occurred. */ public Date getTimestamp() diff --git a/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java index ee5daf3..d886773 100644 --- a/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/FileTransferStatusChangeEvent.java @@ -13,13 +13,18 @@ import net.java.sip.communicator.service.protocol.*; /** * The <tt>FileTransferStatusChangeEvent</tt> is the event indicating of a * change in the state of a file transfer. - * + * * @author Yana Stamcheva */ public class FileTransferStatusChangeEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that the file transfer has been completed. */ public static final int COMPLETED = 0; @@ -73,7 +78,7 @@ public class FileTransferStatusChangeEvent /** * Creates a <tt>FileTransferStatusChangeEvent</tt> by specifying the * source <tt>fileTransfer</tt>, the old transfer status and the new status. - * + * * @param fileTransfer the source file transfer, for which this status * change occured * @param oldStatus the old status @@ -94,7 +99,7 @@ public class FileTransferStatusChangeEvent /** * Returns the source <tt>FileTransfer</tt> that triggered this event. - * + * * @return the source <tt>FileTransfer</tt> that triggered this event */ public FileTransfer getFileTransfer() @@ -104,7 +109,7 @@ public class FileTransferStatusChangeEvent /** * Returns the state of the file transfer before this event occured. - * + * * @return the old state */ public int getOldStatus() @@ -114,7 +119,7 @@ public class FileTransferStatusChangeEvent /** * The new state of the file transfer. - * + * * @return the new state */ public int getNewStatus() diff --git a/src/net/java/sip/communicator/service/protocol/event/GeolocationEvent.java b/src/net/java/sip/communicator/service/protocol/event/GeolocationEvent.java index 2db6329..819796a 100644 --- a/src/net/java/sip/communicator/service/protocol/event/GeolocationEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/GeolocationEvent.java @@ -18,6 +18,10 @@ import net.java.sip.communicator.service.protocol.*; public class GeolocationEvent extends EventObject { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * The provider that has generated the event. diff --git a/src/net/java/sip/communicator/service/protocol/event/LocalUserChatRoomPresenceChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/LocalUserChatRoomPresenceChangeEvent.java index 3a11278..ccba82d 100644 --- a/src/net/java/sip/communicator/service/protocol/event/LocalUserChatRoomPresenceChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/LocalUserChatRoomPresenceChangeEvent.java @@ -21,6 +21,11 @@ public class LocalUserChatRoomPresenceChangeEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that this event was triggered as a result of the local * participant joining a chat room. */ @@ -43,7 +48,7 @@ public class LocalUserChatRoomPresenceChangeEvent * participant being kicked from a chat room. */ public static final String LOCAL_USER_KICKED = "LocalUserKicked"; - + /** * Indicates that this event was triggered as a result of the local * participant beeing disconnected from the server brutally, or ping timeout. @@ -54,7 +59,7 @@ public class LocalUserChatRoomPresenceChangeEvent * The <tt>ChatRoom</tt> to which the change is related. */ private ChatRoom chatRoom = null; - + /** * The type of this event. */ @@ -70,7 +75,7 @@ public class LocalUserChatRoomPresenceChangeEvent * Creates a <tt>ChatRoomLocalUserPresenceChangeEvent</tt> representing that * a change in local participant presence in the source chat room has * occured. - * + * * @param source the <tt>OperationSetMultiUserChat</tt>, which produced this * event * @param chatRoom the <tt>ChatRoom</tt> that this event is about @@ -83,7 +88,7 @@ public class LocalUserChatRoomPresenceChangeEvent String reason) { super(source); - + this.chatRoom = chatRoom; this.eventType = eventType; this.reason = reason; @@ -100,7 +105,7 @@ public class LocalUserChatRoomPresenceChangeEvent { return (OperationSetMultiUserChat) getSource(); } - + /** * Returns the <tt>ChatRoom</tt>, that this event is about. * @@ -135,6 +140,8 @@ public class LocalUserChatRoomPresenceChangeEvent /** * Returns a String representation of this event. + * + * @return String representation of this event */ public String toString() { diff --git a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java index b1812a4..3a75227 100644 --- a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java @@ -20,6 +20,11 @@ public class MessageDeliveredEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The contact that has sent this message. */ private Contact to = null; diff --git a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java index 1146ef3..15ca49e 100644 --- a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java @@ -20,6 +20,11 @@ public class MessageDeliveryFailedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The contact that this message has been sent to. */ private Contact to = null; @@ -142,7 +147,7 @@ public class MessageDeliveryFailedEvent { return (Message) getSource(); } - + /** * Returns an error code descibing the reason for the failure of the * message delivery. @@ -158,7 +163,7 @@ public class MessageDeliveryFailedEvent * A timestamp indicating the exact date when the event ocurred (in this * case it is the moment when it was determined that message delivery has * failed). - * + * * @return a long indicating when the event ocurred in the form of * date timestamp. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/MessageEvent.java b/src/net/java/sip/communicator/service/protocol/event/MessageEvent.java index 2b9a7d7..3b76914 100644 --- a/src/net/java/sip/communicator/service/protocol/event/MessageEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/MessageEvent.java @@ -9,6 +9,16 @@ import java.util.*; public class MessageEvent extends EventObject { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** + * Construcs a new <tt>MessageEvent</tt> instance. + * + * @param source Object on which the Event initially occurred + */ public MessageEvent(Object source) { super(source); diff --git a/src/net/java/sip/communicator/service/protocol/event/MessageReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/MessageReceivedEvent.java index be62256..c7e3246 100644 --- a/src/net/java/sip/communicator/service/protocol/event/MessageReceivedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/MessageReceivedEvent.java @@ -19,6 +19,11 @@ public class MessageReceivedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event type indicating that the message being received is a standard * conversation message sent by another contact. */ @@ -62,19 +67,19 @@ public class MessageReceivedEvent */ public MessageReceivedEvent(Message source, Contact from, long timestamp) { - this(source, from, timestamp, CONVERSATION_MESSAGE_RECEIVED); + this(source, from, timestamp, CONVERSATION_MESSAGE_RECEIVED); } - + /** * Creates a <tt>MessageReceivedEvent</tt> representing reception of the * <tt>source</tt> message received from the specified <tt>from</tt> * contact. - * + * * @param source the <tt>Message</tt> whose reception this event represents. * @param from the <tt>Contact</tt> that has sent this message. * @param timestamp the exact date when the event occurred. * @param eventType the type of message event that this instance represents - * (one of the XXX_MESSAGE_RECEIVED static fields). + * (one of the XXX_MESSAGE_RECEIVED static fields). */ public MessageReceivedEvent(Message source, Contact from, long timestamp, int eventType) @@ -85,7 +90,7 @@ public class MessageReceivedEvent this.timestamp = timestamp; this.eventType = eventType; } - + /** * Returns a reference to the <tt>Contact</tt> that has send the * <tt>Message</tt> whose reception this event represents. @@ -100,7 +105,7 @@ public class MessageReceivedEvent /** * Returns the message that triggered this event - * + * * @return the <tt>Message</tt> that triggered this event. */ public Message getSourceMessage() @@ -110,19 +115,19 @@ public class MessageReceivedEvent /** * A timestamp indicating the exact date when the event occurred. - * + * * @return a Date indicating when the event occurred. */ public long getTimestamp() { return timestamp; } - + /** * Returns the type of message event represented by this event instance. * Message event type is one of the XXX_MESSAGE_RECEIVED fields of this * class. - * + * * @return one of the XXX_MESSAGE_RECEIVED fields of this class indicating * the type of this event. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/ProviderPresenceStatusChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ProviderPresenceStatusChangeEvent.java index ceac4f9..5d448a7 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ProviderPresenceStatusChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ProviderPresenceStatusChangeEvent.java @@ -17,6 +17,10 @@ import net.java.sip.communicator.service.protocol.*; */ public class ProviderPresenceStatusChangeEvent extends PropertyChangeEvent { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * Creates an event instance indicating a change of the property diff --git a/src/net/java/sip/communicator/service/protocol/event/ProviderStatusChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ProviderStatusChangeEvent.java index e52521f..304cf24 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ProviderStatusChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ProviderStatusChangeEvent.java @@ -17,6 +17,10 @@ import net.java.sip.communicator.service.protocol.*; */ public class ProviderStatusChangeEvent extends PropertyChangeEvent { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * Creates an event instance indicating a change of the property diff --git a/src/net/java/sip/communicator/service/protocol/event/RegistrationStateChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/RegistrationStateChangeEvent.java index 4469363..e2e93ec 100644 --- a/src/net/java/sip/communicator/service/protocol/event/RegistrationStateChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/RegistrationStateChangeEvent.java @@ -30,6 +30,11 @@ import net.java.sip.communicator.service.protocol.*; public class RegistrationStateChangeEvent extends PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that no reason is specified for this event transition. */ public static final int REASON_NOT_SPECIFIED = -1; diff --git a/src/net/java/sip/communicator/service/protocol/event/ServerStoredGroupEvent.java b/src/net/java/sip/communicator/service/protocol/event/ServerStoredGroupEvent.java index daf823a..c3e25a0 100644 --- a/src/net/java/sip/communicator/service/protocol/event/ServerStoredGroupEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/ServerStoredGroupEvent.java @@ -20,6 +20,11 @@ public class ServerStoredGroupEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that a contact group has been successfully created. */ public static final int GROUP_CREATED_EVENT = 1; diff --git a/src/net/java/sip/communicator/service/protocol/event/SizeChangeVideoEvent.java b/src/net/java/sip/communicator/service/protocol/event/SizeChangeVideoEvent.java index f868303..8ecea31 100644 --- a/src/net/java/sip/communicator/service/protocol/event/SizeChangeVideoEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/SizeChangeVideoEvent.java @@ -18,6 +18,11 @@ public class SizeChangeVideoEvent extends VideoEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The type of a <tt>VideoEvent</tt> which notifies about an update to the * size of a specific visual <tt>Component</tt> depicting video. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/SoundLevelChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/SoundLevelChangeEvent.java index f6aa124..c27956f 100644 --- a/src/net/java/sip/communicator/service/protocol/event/SoundLevelChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/SoundLevelChangeEvent.java @@ -28,6 +28,11 @@ public class SoundLevelChangeEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The maximum level that can be reported for a participant. * Level values should be distributed among MAX_LEVEL and MIN_LEVEL in a * way that would appear uniform to users. diff --git a/src/net/java/sip/communicator/service/protocol/event/SubscriptionEvent.java b/src/net/java/sip/communicator/service/protocol/event/SubscriptionEvent.java index 3d480a1..3469db4 100644 --- a/src/net/java/sip/communicator/service/protocol/event/SubscriptionEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/SubscriptionEvent.java @@ -22,6 +22,11 @@ import net.java.sip.communicator.service.protocol.*; public class SubscriptionEvent extends EventObject { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private int eventID = -1; /** diff --git a/src/net/java/sip/communicator/service/protocol/event/SubscriptionMovedEvent.java b/src/net/java/sip/communicator/service/protocol/event/SubscriptionMovedEvent.java index 85c9c2c..a4bfc88 100644 --- a/src/net/java/sip/communicator/service/protocol/event/SubscriptionMovedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/SubscriptionMovedEvent.java @@ -22,6 +22,11 @@ import net.java.sip.communicator.service.protocol.*; public class SubscriptionMovedEvent extends EventObject { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private ContactGroup oldParent = null; private ContactGroup newParent = null; private ProtocolProviderService sourceProvider = null; diff --git a/src/net/java/sip/communicator/service/protocol/event/TypingNotificationEvent.java b/src/net/java/sip/communicator/service/protocol/event/TypingNotificationEvent.java index 9b2a8f2..f5e3917 100644 --- a/src/net/java/sip/communicator/service/protocol/event/TypingNotificationEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/TypingNotificationEvent.java @@ -21,6 +21,11 @@ import net.java.sip.communicator.service.protocol.*; public class TypingNotificationEvent extends EventObject { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private int typingState = OperationSetTypingNotifications.STATE_UNKNOWN; /** diff --git a/src/net/java/sip/communicator/service/protocol/event/VideoEvent.java b/src/net/java/sip/communicator/service/protocol/event/VideoEvent.java index 19ca41c..28c97f7 100644 --- a/src/net/java/sip/communicator/service/protocol/event/VideoEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/VideoEvent.java @@ -19,6 +19,10 @@ import java.util.*; public class VideoEvent
extends EventObject
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
/**
* The video origin of a <code>VideoEvent</code> which is local to the
diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardChangeEvent.java index 3eebaa1..c4c8bd0 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardChangeEvent.java @@ -21,6 +21,11 @@ public class WhiteboardChangeEvent extends java.beans.PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event type indicating that the corresponding event is caused by a * change of the Whiteboard state. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationReceivedEvent.java index 127ed68..28cb530 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationReceivedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationReceivedEvent.java @@ -12,17 +12,22 @@ import net.java.sip.communicator.service.protocol.*; /** * <tt>WhiteboardInvitationReceivedEvent</tt>s indicate reception of an * invitation to join a whiteboard. - * + * * @author Yana Stamcheva */ public class WhiteboardInvitationReceivedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The invitation corresponding to this event. */ private WhiteboardInvitation invitation; - + /** * A timestamp indicating the exact date when the event occurred. */ @@ -49,17 +54,17 @@ public class WhiteboardInvitationReceivedEvent this.invitation = invitation; this.timestamp = timestamp; } - + /** * Returns the whiteboarding operation set that dispatches this event. - * + * * @return the whiteboarding operation set that dispatches this event. */ public OperationSetWhiteboarding getSourceOperationSet() { return (OperationSetWhiteboarding) getSource(); } - + /** * Returns the <tt>WhiteboardInvitation</tt> that this event is for. * @@ -69,7 +74,7 @@ public class WhiteboardInvitationReceivedEvent { return invitation; } - + /** * A timestamp indicating the exact date when the event ocurred. * diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationRejectedEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationRejectedEvent.java index d5ee190..b313c62 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationRejectedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardInvitationRejectedEvent.java @@ -19,26 +19,31 @@ public class WhiteboardInvitationRejectedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The <tt>WhiteboardSession</tt> for which the initial invitation was. */ private WhiteboardSession whiteboardSession; - + /** * The invitee that rejected the invitation. */ private String invitee; - + /** * The reason why this invitation is rejected or null if there is no reason * specified. */ private String reason; - + /** * The exact date at which this event occured. */ private Date timestamp; - + /** * Creates a <tt>WhiteboardInvitationRejectedEvent</tt> representing the * rejection of an invitation, rejected by the given <tt>invitee</tt>. @@ -65,21 +70,21 @@ public class WhiteboardInvitationRejectedEvent this.reason = reason; this.timestamp = timestamp; } - + /** * Returns the whiteboarding operation set that dispatches this event. - * + * * @return the whiteboarding operation set that dispatches this event */ public OperationSetWhiteboarding getSourceOperationSet() { return (OperationSetWhiteboarding) getSource(); } - + /** * Returns the <tt>WhiteboardSession</tt> for which the initial invitation * was. - * + * * @return the <tt>WhiteboardSession</tt> for which the initial invitation * was */ @@ -87,7 +92,7 @@ public class WhiteboardInvitationRejectedEvent { return whiteboardSession; } - + /** * Returns the name of the invitee that rejected the invitation. * @@ -97,7 +102,7 @@ public class WhiteboardInvitationRejectedEvent { return invitee; } - + /** * Returns the reason for which the <tt>ChatRoomInvitation</tt> is rejected. * @@ -107,7 +112,7 @@ public class WhiteboardInvitationRejectedEvent { return reason; } - + /** * A timestamp indicating the exact date when the event ocurred. * @return a Date indicating when the event ocurred. diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeletedEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeletedEvent.java index 838d67f..bd44706 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeletedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeletedEvent.java @@ -21,20 +21,25 @@ public class WhiteboardObjectDeletedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The contact that has sent this wbObject. */ private Contact from = null; - + /** * A timestamp indicating the exact date when the event occurred. */ private Date timestamp = null; - + /** * A String that uniquely identifies this WhiteboardObject. */ private String id; - + /** * Creates a <tt>WhiteboardObjectReceivedEvent</tt> * representing reception of the <tt>source</tt> WhiteboardObject @@ -60,7 +65,7 @@ public class WhiteboardObjectDeletedEvent /** * Returns the source white-board session, to which the received object * belongs. - * + * * @return the source white-board session, to which the received object * belongs */ @@ -80,7 +85,7 @@ public class WhiteboardObjectDeletedEvent { return from; } - + /** * Returns the identification of the deleted WhiteboardObject * that triggered this event @@ -91,7 +96,7 @@ public class WhiteboardObjectDeletedEvent { return id; } - + /** * A timestamp indicating the exact date when the event ocurred. * @return a Date indicating when the event ocurred. diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveredEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveredEvent.java index 4f6e4fa..359c8ad 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveredEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveredEvent.java @@ -22,6 +22,11 @@ public class WhiteboardObjectDeliveredEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The contact that has sent this wbObject. */ private Contact to = null; diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveryFailedEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveryFailedEvent.java index d6de770..7a05f44 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveryFailedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectDeliveryFailedEvent.java @@ -22,6 +22,11 @@ public class WhiteboardObjectDeliveryFailedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The contact that this whiteboard object has been sent to. */ private Contact to = null; diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectModifiedEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectModifiedEvent.java index bb69030..3308fdd 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectModifiedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectModifiedEvent.java @@ -22,6 +22,11 @@ public class WhiteboardObjectModifiedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The contact that has sent this wbObject. */ private Contact from = null; @@ -59,7 +64,7 @@ public class WhiteboardObjectModifiedEvent /** * Returns the source white-board session, to which the received object * belongs. - * + * * @return the source white-board session, to which the received object * belongs */ diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectReceivedEvent.java index e118a5f..398eead 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectReceivedEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardObjectReceivedEvent.java @@ -22,6 +22,11 @@ public class WhiteboardObjectReceivedEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The contact that has sent this wbObject. */ private Contact from = null; @@ -60,7 +65,7 @@ public class WhiteboardObjectReceivedEvent /** * Returns the source white-board session, to which the received object * belongs. - * + * * @return the source white-board session, to which the received object * belongs */ diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantChangeEvent.java index a4267fb..80c67cb 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantChangeEvent.java @@ -29,6 +29,11 @@ public class WhiteboardParticipantChangeEvent extends java.beans.PropertyChangeEvent { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event type indicating that the corresponding event is caused by a * change of the WhiteboardParticipant's status. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantEvent.java index dfebb50..ee97955 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardParticipantEvent.java @@ -21,6 +21,11 @@ public class WhiteboardParticipantEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * An event id value indicating that this event is about the fact that * the source whiteboard participant has joined the source whiteboard. */ diff --git a/src/net/java/sip/communicator/service/protocol/event/WhiteboardSessionPresenceChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/WhiteboardSessionPresenceChangeEvent.java index 4b445e7..f75d083 100644 --- a/src/net/java/sip/communicator/service/protocol/event/WhiteboardSessionPresenceChangeEvent.java +++ b/src/net/java/sip/communicator/service/protocol/event/WhiteboardSessionPresenceChangeEvent.java @@ -20,6 +20,11 @@ public class WhiteboardSessionPresenceChangeEvent extends EventObject { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Indicates that this event was triggered as a result of the local * participant joining a whiteboard. */ @@ -42,7 +47,7 @@ public class WhiteboardSessionPresenceChangeEvent * participant being kicked from a whiteboard. */ public static final String LOCAL_USER_KICKED = "LocalUserKicked"; - + /** * Indicates that this event was triggered as a result of the local * participant beeing disconnected from the server brutally, or ping timeout. @@ -53,7 +58,7 @@ public class WhiteboardSessionPresenceChangeEvent * The <tt>WhiteboardSession</tt> to which the change is related. */ private WhiteboardSession whiteboardSession = null; - + /** * The type of this event. */ @@ -69,7 +74,7 @@ public class WhiteboardSessionPresenceChangeEvent * Creates a <tt>WhiteboardSessionPresenceChangeEvent</tt> representing that * a change in local participant presence in the source white-board has * occured. - * + * * @param source the <tt>OperationSetWhiteboarding</tt>, which produced this * event * @param session the <tt>WhiteboardSession</tt> that this event is about @@ -82,7 +87,7 @@ public class WhiteboardSessionPresenceChangeEvent String reason) { super(source); - + this.whiteboardSession = session; this.eventType = eventType; this.reason = reason; @@ -99,7 +104,7 @@ public class WhiteboardSessionPresenceChangeEvent { return (OperationSetWhiteboarding) getSource(); } - + /** * Returns the <tt>WhiteboardSession</tt>, that this event is about. * @@ -134,6 +139,8 @@ public class WhiteboardSessionPresenceChangeEvent /** * Returns a String representation of this event. + * + * @return String representation of this event */ public String toString() { |