Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsuen2007-05-26 12:57:24 -0400
committerrsuen2007-05-26 12:57:24 -0400
commit25cca80808ee742417514c212314dff057f36271 (patch)
tree9d57d7553b23248c92dc9e1a7715a00090b0f63e /framework/bundles/org.eclipse.ecf.presence
parent17b35ac2901a17b2c0855f072e8554daf30fd57d (diff)
downloadorg.eclipse.ecf-25cca80808ee742417514c212314dff057f36271.tar.gz
org.eclipse.ecf-25cca80808ee742417514c212314dff057f36271.tar.xz
org.eclipse.ecf-25cca80808ee742417514c212314dff057f36271.zip
Resolve bug #183192 - [presence] IChatRoomContainer needs to allow the sending of private messages
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.presence')
-rw-r--r--framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomContainer.java24
1 files changed, 19 insertions, 5 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomContainer.java b/framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomContainer.java
index 7f8de6ea9..bf37bdb45 100644
--- a/framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomContainer.java
+++ b/framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomContainer.java
@@ -12,6 +12,7 @@ package org.eclipse.ecf.presence.chatroom;
import org.eclipse.ecf.core.IContainer;
import org.eclipse.ecf.presence.IIMMessageListener;
+import org.eclipse.ecf.presence.im.IChatMessageSender;
/**
* Container for chat rooms.
@@ -35,6 +36,17 @@ public interface IChatRoomContainer extends IContainer {
public void removeMessageListener(IIMMessageListener listener);
/**
+ * Retrieve a chat message sender to send private chat messages to other
+ * participants. If sending private chat messages is not supported by this
+ * provider then <code>null</code> will be returned.
+ *
+ * @return IChatMessageSender to use for sending chat message. If
+ * <code>null</code>, sending chat messages not supported by this
+ * provider.
+ */
+ public IChatMessageSender getPrivateMessageSender();
+
+ /**
* Get interface for sending messages
*
* @return IChatRoomMessageSender. Will be <code>null</code> if no message
@@ -61,19 +73,21 @@ public interface IChatRoomContainer extends IContainer {
*/
public void removeChatRoomParticipantListener(
IChatRoomParticipantListener participantListener);
-
+
/**
* Add chat room admin listener to listen for room admin changes.
*
- * @param adminListener the listener to add. Must not be <code>null</code>.
+ * @param adminListener
+ * the listener to add. Must not be <code>null</code>.
*/
public void addChatRoomAdminListener(IChatRoomAdminListener adminListener);
-
+
/**
* Remove chat room admin listener.
*
- * @param adminListener the listener to remove. Must not be <code>null</code>.
+ * @param adminListener
+ * the listener to remove. Must not be <code>null</code>.
*/
public void removeChatRoomAdminListener(IChatRoomAdminListener adminListener);
-
+
}

Back to the top