[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/protocol/jabber/, /sip-communicator/src/net/java/sip/communicator/service/protocol...

yanas at dev.java.net yanas at dev.java.net
Tue Apr 24 14:31:27 CEST 2007


User: yanas   
Date: 2007-04-24 12:31:27+0000
Removed:
   sip-communicator/src/net/java/sip/communicator/service/protocol/event/ChatRoomParticipantStatusListener.java
   sip-communicator/src/net/java/sip/communicator/service/protocol/event/ChatRoomParticipantStatusChangeEvent.java

Modified:
   sip-communicator/src/net/java/sip/communicator/impl/protocol/jabber/ChatRoomJabberImpl.java
   sip-communicator/src/net/java/sip/communicator/service/protocol/ChatRoom.java

Log:
 ChatRoomParticipantStatusListener replaced by ChatRoomMemberListener

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/protocol/jabber/
================================================================================

File [changed]: ChatRoomJabberImpl.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/protocol/jabber/ChatRoomJabberImpl.java?r1=1.2&r2=1.3
Delta lines:  +8 -10
--------------------
--- ChatRoomJabberImpl.java	2007-04-23 18:12:14+0000	1.2
+++ ChatRoomJabberImpl.java	2007-04-24 12:31:24+0000	1.3
@@ -46,7 +46,7 @@
      * Listeners that will be notified of changes in our status in the
      * room such as us being kicked, banned, or granted admin permissions.
      */
-    private Vector participantStatusListeners = new Vector();
+    private Vector memberListeners = new Vector();
 
     /**
      * The protocol provider that created us
@@ -196,13 +196,12 @@
      *
      * @param listener a participant status listener.
      */
-    public void addParticipantStatusListener(
-                    ChatRoomMemberListener listener)
+    public void addMemberListener(ChatRoomMemberListener listener)
     {
-        synchronized(participantStatusListeners)
+        synchronized(memberListeners)
         {
-            if (!participantStatusListeners.contains(listener))
-                participantStatusListeners.add(listener);
+            if (!memberListeners.contains(listener))
+                memberListeners.add(listener);
         }
     }
 
@@ -213,12 +212,11 @@
      *
      * @param listener a participant status listener.
      */
-    public void removeParticipantStatusListener(
-        ChatRoomMemberListener listener)
+    public void removeMemberListener(ChatRoomMemberListener listener)
     {
-        synchronized(participantStatusListeners)
+        synchronized(memberListeners)
         {
-            participantStatusListeners.remove(listener);
+            memberListeners.remove(listener);
         }
 
     }

Directory: /sip-communicator/src/net/java/sip/communicator/service/protocol/event/
==================================================================================

File [removed]: ChatRoomParticipantStatusListener.java

File [removed]: ChatRoomParticipantStatusChangeEvent.java

Directory: /sip-communicator/src/net/java/sip/communicator/service/protocol/
============================================================================

File [changed]: ChatRoom.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/service/protocol/ChatRoom.java?r1=1.3&r2=1.4
Delta lines:  +2 -3
-------------------
--- ChatRoom.java	2007-04-23 18:12:36+0000	1.3
+++ ChatRoom.java	2007-04-24 12:31:25+0000	1.4
@@ -186,8 +186,7 @@
     *
     * @param listener a participant status listener.
     */
-    public void addParticipantStatusListener(
-                                    ChatRoomMemberListener listener);
+    public void addMemberListener(ChatRoomMemberListener listener);
 
    /**
     * Removes a listener that was being notified of changes in the status of
@@ -196,7 +195,7 @@
     *
     * @param listener a participant status listener.
     */
-    public void removeParticipantStatusListener(
+    public void removeMemberListener(
                                     ChatRoomMemberListener listener);
 
     /**




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list