[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/protocol/msn/EventManager.java

emcho at dev.java.net emcho at dev.java.net
Mon Apr 23 20:12:06 CEST 2007


User: emcho   
Date: 2007-04-23 18:12:06+0000
Log:
 working on multi chat and a jabber implementation
 
 renaming MSN's event listener to MsnContactListEventListener

File Changes:

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

File [changed]: EventManager.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/protocol/msn/EventManager.java?r1=1.6&r2=1.7
Delta lines:  +14 -13
---------------------
--- EventManager.java	2007-04-23 08:18:53+0000	1.6
+++ EventManager.java	2007-04-23 18:12:04+0000	1.7
@@ -53,9 +53,9 @@
 
     /**
      * Adds listener of the modification fired events
-     * @param listener EventListener
+     * @param listener the modifification listener we're adding
      */
-    public void addModificationListener(EventListener listener)
+    public void addModificationListener(MsnContactListEventListener listener)
     {
         synchronized(listeners)
         {
@@ -67,7 +67,7 @@
      * Removes listener of the modification fired events
      * @param listener EventListener
      */
-    public void removeModificationListener(EventListener listener)
+    public void removeModificationListener(MsnContactListEventListener listener)
     {
         synchronized(listeners)
         {
@@ -246,7 +246,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).
+                ((MsnContactListEventListener)iter.next()).
                     messageDelivered(transactionID);
             }
         }
@@ -262,7 +262,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).
+                ((MsnContactListEventListener)iter.next()).
                     messageDeliveredFailed(transactionID);
             }
         }
@@ -278,7 +278,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).contactAdded(contact);
+                ((MsnContactListEventListener)iter.next()).contactAdded(contact);
             }
         }
     }
@@ -294,7 +294,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).
+                ((MsnContactListEventListener)iter.next()).
                     contactAddedInGroup(contact, group);
             }
         }
@@ -310,7 +310,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).contactRemoved(contact);
+                ((MsnContactListEventListener)iter.next()).contactRemoved(contact);
             }
         }
     }
@@ -326,7 +326,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).
+                ((MsnContactListEventListener)iter.next()).
                     contactRemovedFromGroup(contact, group);
             }
         }
@@ -342,7 +342,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).groupAdded(group);
+                ((MsnContactListEventListener)iter.next()).groupAdded(group);
             }
         }
     }
@@ -357,7 +357,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).groupRenamed(group);
+                ((MsnContactListEventListener)iter.next()).groupRenamed(group);
             }
         }
     }
@@ -372,7 +372,7 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ((EventListener)iter.next()).groupRemoved(id);
+                ((MsnContactListEventListener)iter.next()).groupRemoved(id);
             }
         }
     }
@@ -387,7 +387,8 @@
             Iterator iter = listeners.iterator();
             while (iter.hasNext())
             {
-                ( (EventListener) iter.next()).loggingFromOtherLocation();
+                ( (MsnContactListEventListener) iter.next())
+                    .loggingFromOtherLocation();
             }
         }
     }




---------------------------------------------------------------------
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