diff options
author | paweldomas <pawel.domas@jitsi.org> | 2014-09-01 14:22:11 +0200 |
---|---|---|
committer | paweldomas <pawel.domas@jitsi.org> | 2014-09-02 09:35:11 +0200 |
commit | 415b180c09c9e444b349b54122965a2589f62f4d (patch) | |
tree | 0040312d11790d826544d87806c7dc3dceb5114b /src/net/java/sip/communicator/service | |
parent | e0597082be7ae20dd6e3e8bd8f9f32093bdad3a4 (diff) | |
download | jitsi-415b180c09c9e444b349b54122965a2589f62f4d.zip jitsi-415b180c09c9e444b349b54122965a2589f62f4d.tar.gz jitsi-415b180c09c9e444b349b54122965a2589f62f4d.tar.bz2 |
Extends JitsiMeet tools operation set by functionality that handles extra SIP header in incoming calls.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/OperationSetJitsiMeetTools.java | 33 |
1 files changed, 32 insertions, 1 deletions
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 <tt>listener</tt> 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 <tt>listener</tt> 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); + } } |