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

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


User: emcho   
Date: 2007-04-23 18:12:38+0000
Log:
 working on multi chat and a jabber implementation
 
 renamed some methods and fixed javadocs

File Changes:

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.2&r2=1.3
Delta lines:  +18 -9
--------------------
--- ChatRoom.java	2007-03-10 14:34:08+0000	1.2
+++ ChatRoom.java	2007-04-23 18:12:36+0000	1.3
@@ -147,7 +147,7 @@
      * @return the nickname currently being used by the local user in the
      * context of the local chat room.
      */
-    public String getNickname();
+    public String getUserNickname();
 
     /**
      * Changes the the local user's nickname in the context of this chatroom.
@@ -187,7 +187,7 @@
     * @param listener a participant status listener.
     */
     public void addParticipantStatusListener(
-                                    ChatRoomParticipantStatusListener listener);
+                                    ChatRoomMemberListener listener);
 
    /**
     * Removes a listener that was being notified of changes in the status of
@@ -197,7 +197,7 @@
     * @param listener a participant status listener.
     */
     public void removeParticipantStatusListener(
-                                    ChatRoomParticipantStatusListener listener);
+                                    ChatRoomMemberListener listener);
 
     /**
      * Invites another user to this room.
@@ -214,11 +214,11 @@
     public void invite(String userAddress, String reason);
 
     /**
-     * Returns a <tt>List</tt> of <tt>Contact</tt>s corresponding to all
+     * Returns a <tt>List</tt> of <tt>ChatRoomMember</tt>s corresponding to all
      * members currently participating in this room.
      *
-     * @return a <tt>List</tt> of <tt>Contact</tt> corresponding to all room
-     * members.
+     * @return a <tt>List</tt> of <tt>ChatRoomMember</tt> instances
+     * corresponding to all room members.
      * @throws OperationFailedException if we fail retrieving the list of room
      * participants.
      */
@@ -271,11 +271,20 @@
      * Sends the <tt>message</tt> to the destination indicated by the
      * <tt>to</tt> contact.
      * @param message the <tt>Message</tt> to send.
-     * @throws java.lang.IllegalStateException if the underlying stack is
-     * not registered or initialized or if the chat room is not joined.
+     * @throws OperationFailedException if sending the message fails for some
+     * reason.
      */
     public void sendMessage(Message message)
-        throws IllegalStateException;
+        throws OperationFailedException;
+
+
+    /**
+     * Returns a reference to the provider that created this room.
+     *
+     * @return a reference to the <tt>ProtocolProviderService</tt> instance
+     * that created this room.
+     */
+    public ProtocolProviderService getParentProvider();
 
     //include - roominfo
     /** @todo include room info */




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