blob: 2e25150babb62de898eb301fa569e1da66aa3e2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.protocol;
import org.jivesoftware.smack.packet.*;
/**
* The operation set provides functionality specific to Jitsi Meet WebRTC
* conference and is currently used in the SIP gateway.
*
* @author Pawel Domas
*/
public interface OperationSetJitsiMeetTools
extends OperationSet
{
/**
* Includes given <tt>PacketExtension</tt> in multi user chat presence and
* sends presence update packet to the chat room.
* @param chatRoom the <tt>ChatRoom</tt> for which the presence will be
* updated.
* @param extension the <tt>PacketExtension</tt> to be included in MUC
* presence.
*/
public void sendPresenceExtension(ChatRoom chatRoom,
PacketExtension extension);
/**
* Sets the status message of our MUC presence and sends presence status
* update packet to the server.
* @param chatRoom the <tt>ChatRoom</tt> for which the presence status
* message will be changed.
* @param statusMessage the text that will be used as our presence status
* 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);
}
}
|