From 415b180c09c9e444b349b54122965a2589f62f4d Mon Sep 17 00:00:00 2001 From: paweldomas Date: Mon, 1 Sep 2014 14:22:11 +0200 Subject: Extends JitsiMeet tools operation set by functionality that handles extra SIP header in incoming calls. --- .../protocol/OperationSetJitsiMeetTools.java | 33 +++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'src/net/java/sip/communicator/service') diff --git a/src/net/java/sip/communicator/service/protocol/OperationSetJitsiMeetTools.java b/src/net/java/sip/communicator/service/protocol/OperationSetJitsiMeetTools.java index 9c5fc31..2e25150 100644 --- a/src/net/java/sip/communicator/service/protocol/OperationSetJitsiMeetTools.java +++ b/src/net/java/sip/communicator/service/protocol/OperationSetJitsiMeetTools.java @@ -10,7 +10,7 @@ import org.jivesoftware.smack.packet.*; /** * The operation set provides functionality specific to Jitsi Meet WebRTC - * conference. + * conference and is currently used in the SIP gateway. * * @author Pawel Domas */ @@ -37,4 +37,35 @@ public interface OperationSetJitsiMeetTools * message in the MUC. */ public void setPresenceStatus(ChatRoom chatRoom, String statusMessage); + + /** + * Adds given listener to the list of + * {@link JitsiMeetRequestListener}s. + * @param listener the {@link JitsiMeetRequestListener} to be notified about + * future events. + */ + public void addRequestListener(JitsiMeetRequestListener listener); + + /** + * Removes given listener from the list of + * {@link JitsiMeetRequestListener}s. + * @param listener the {@link JitsiMeetRequestListener} that will be no + * longer notified about Jitsi Meet events. + */ + public void removeRequestListener(JitsiMeetRequestListener listener); + + /** + * Interface used to handle Jitsi Meet conference requests. + */ + interface JitsiMeetRequestListener + { + /** + * Events is fired for an incoming call that contains information about + * Jitsi Meet conference room to be joined. + * @param call the incoming {@link Call} instance. + * @param jitsiMeetRoom the name of multi user chat room that is hosting + * Jitsi Meet conference. + */ + void onJoinJitsiMeetRequest(Call call, String jitsiMeetRoom); + } } -- cgit v1.1