Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-09-07 01:44:37 -0400
committerslewis2007-09-07 01:44:37 -0400
commitff96030fa3c62b05f3fd43e887681d91ecd009a3 (patch)
treeab7b1bafd996b45cef5d0dd0ba3b4622f223e22d
parent159302f68f0cd321fb6dedc5167faa7492192e3a (diff)
downloadorg.eclipse.ecf-ff96030fa3c62b05f3fd43e887681d91ecd009a3.tar.gz
org.eclipse.ecf-ff96030fa3c62b05f3fd43e887681d91ecd009a3.tar.xz
org.eclipse.ecf-ff96030fa3c62b05f3fd43e887681d91ecd009a3.zip
Additions to address bug 197332
-rw-r--r--framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomAdminSender.java28
-rw-r--r--framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomContainer.java7
2 files changed, 35 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomAdminSender.java b/framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomAdminSender.java
new file mode 100644
index 000000000..17681b37b
--- /dev/null
+++ b/framework/bundles/org.eclipse.ecf.presence/src/org/eclipse/ecf/presence/chatroom/IChatRoomAdminSender.java
@@ -0,0 +1,28 @@
+/****************************************************************************
+ * Copyright (c) 2007 Composent, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Composent, Inc. - initial API and implementation
+ *****************************************************************************/
+
+package org.eclipse.ecf.presence.chatroom;
+
+import org.eclipse.ecf.core.util.ECFException;
+
+/**
+ * Perform administrative functions for an IChatRoomContainer.
+ */
+public interface IChatRoomAdminSender {
+
+ /**
+ * Send chat room subject change.
+ *
+ * @param newsubject the new subject for the chat room.
+ * @throws ECFException exception thrown if some problem sending message (e.g. disconnect).
+ */
+ public void sendSubjectChange(String newsubject) throws ECFException;
+}
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 8bba2020c..94470b703 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
@@ -90,6 +90,13 @@ public interface IChatRoomContainer extends IContainer {
public void removeChatRoomAdminListener(IChatRoomAdminListener adminListener);
/**
+ * Get chat room admin sender.
+ * @return IChatRoomAdminSender for sending admin update messages. Will return
+ * <code>null</code> if there is no sender available for provider.
+ */
+ public IChatRoomAdminSender getChatRoomAdminSender();
+
+ /**
* Returns an array of IDs of current chatroom participants.
*
* @return ID[] of chatroom participants. If no participants in chat room, will return

Back to the top