|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.OperationSetWhiteboardingJabberImpl
public class OperationSetWhiteboardingJabberImpl
Provides basic functionality for white-board.
| Constructor Summary | |
|---|---|
OperationSetWhiteboardingJabberImpl(ProtocolProviderServiceJabberImpl provider)
Creates an instance of this operation set. |
|
| Method Summary | |
|---|---|
void |
addInvitationListener(WhiteboardInvitationListener listener)
Adds a listener to invitation notifications. |
void |
addInvitationRejectionListener(WhiteboardInvitationRejectionListener listener)
Subscribes listener so that it would receive events indicating rejection of a multi-user chat invitation that we've sent earlier. |
void |
addPresenceListener(WhiteboardSessionPresenceListener listener)
Adds a listener that will be notified of changes in our status in a chat room such as us being kicked, banned or dropped. |
WhiteboardSession |
createWhiteboardSession(String sessionName,
Hashtable<Object,Object> sessionProperties)
Creates a WhiteboardSession. |
WhiteboardSession |
findWhiteboardSession(String sessionName)
Returns a reference to a WhiteboardSession named sessionName or null if no such session exists. |
void |
fireInvitationEvent(WhiteboardSession targetWhiteboard,
WhiteboardObject whiteboardObject,
String inviter,
String reason,
byte[] password)
Delivers a WhiteboardInvitationEvent to all registered WhiteboardInvitationListeners. |
void |
fireWhiteboardSessionPresenceEvent(WhiteboardSession session,
String eventType,
String reason)
Delivers a WhiteboardSessionPresenceChangeEvent to all registered WhiteboardSessionPresenceChangeEvents. |
List<WhiteboardSession> |
getCurrentlyJoinedWhiteboards()
Returns a list of the white-board sessions that we have joined and are currently active in. |
List<WhiteboardSession> |
getCurrentlyJoinedWhiteboards(WhiteboardParticipant participant)
Returns a list of the WhiteboardSessions that WhiteboardParticipant has joined and is currently active in. |
boolean |
isWhiteboardingSupportedByContact(Contact contact)
Returns true if contact supports white-board sessions. |
void |
rejectInvitation(WhiteboardInvitation invitation,
String rejectReason)
Informs the sender of an invitation that we decline their invitation. |
void |
removeInvitationListener(WhiteboardInvitationListener listener)
Removes listener from the list of invitation listeners registered to receive invitation events. |
void |
removeInvitationRejectionListener(WhiteboardInvitationRejectionListener listener)
Removes listener from the list of invitation listeners registered to receive invitation rejection events. |
void |
removePresenceListener(WhiteboardSessionPresenceListener listener)
Removes a listener that was being notified of changes in our status in a room such as us being kicked, banned or dropped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetWhiteboardingJabberImpl(ProtocolProviderServiceJabberImpl provider)
provider - a ref to the ProtocolProviderServiceImpl
that created us and that we'll use for retrieving the underlying aim
connection.| Method Detail |
|---|
public void addInvitationListener(WhiteboardInvitationListener listener)
addInvitationListener in interface OperationSetWhiteboardinglistener - an invitation listener.public void removeInvitationListener(WhiteboardInvitationListener listener)
removeInvitationListener in interface OperationSetWhiteboardinglistener - the invitation listener to remove.public void addInvitationRejectionListener(WhiteboardInvitationRejectionListener listener)
addInvitationRejectionListener in interface OperationSetWhiteboardinglistener - the listener that we'll subscribe for invitation
rejection events.public void removeInvitationRejectionListener(WhiteboardInvitationRejectionListener listener)
removeInvitationRejectionListener in interface OperationSetWhiteboardinglistener - the invitation listener to remove.public void addPresenceListener(WhiteboardSessionPresenceListener listener)
addPresenceListener in interface OperationSetWhiteboardinglistener - the LocalUserChatRoomPresenceListener.public void removePresenceListener(WhiteboardSessionPresenceListener listener)
removePresenceListener in interface OperationSetWhiteboardinglistener - the LocalUserChatRoomPresenceListener.
public WhiteboardSession createWhiteboardSession(String sessionName,
Hashtable<Object,Object> sessionProperties)
throws OperationFailedException,
OperationNotSupportedException
createWhiteboardSession in interface OperationSetWhiteboardingsessionName - the name of the sessionsessionProperties - the settings of the session
OperationFailedException - if the room couldn't be created for some
reason (e.g. room already exists; user already joined to an existent
room or user has no permissions to create a chat room).
OperationNotSupportedException - if chat room creation is not
supported by this server
public WhiteboardSession findWhiteboardSession(String sessionName)
throws OperationFailedException,
OperationNotSupportedException
findWhiteboardSession in interface OperationSetWhiteboardingsessionName - the name of the WhiteboardSession that we're
looking for.
OperationFailedException - if an error occurs while trying to
discover the white-board session on the server.
OperationNotSupportedException - if the server does not support
white-boardingpublic List<WhiteboardSession> getCurrentlyJoinedWhiteboards()
getCurrentlyJoinedWhiteboards in interface OperationSetWhiteboarding
public List<WhiteboardSession> getCurrentlyJoinedWhiteboards(WhiteboardParticipant participant)
throws OperationFailedException,
OperationNotSupportedException
getCurrentlyJoinedWhiteboards in interface OperationSetWhiteboardingparticipant - the participant whose current
WhiteboardSessions we will be querying.
OperationFailedException - if an error occurs while trying to
discover the session.
OperationNotSupportedException - if the server does not support
white-boardingpublic boolean isWhiteboardingSupportedByContact(Contact contact)
isWhiteboardingSupportedByContact in interface OperationSetWhiteboardingcontact - reference to the contact whose support for white-boards
we are currently querying.
public void rejectInvitation(WhiteboardInvitation invitation,
String rejectReason)
rejectInvitation in interface OperationSetWhiteboardinginvitation - the invitation we are rejecting.rejectReason - the reason to reject the invitation (optional)
public void fireInvitationEvent(WhiteboardSession targetWhiteboard,
WhiteboardObject whiteboardObject,
String inviter,
String reason,
byte[] password)
targetWhiteboard - the white-board that invitation refers towhiteboardObject - the white-board object that inviter send
with this invitation and which will be shown on the white-board if the
user accepts the invitationinviter - the inviter that sent the invitationreason - the reason why the inviter sent the invitationpassword - the password to use when joining the room
public void fireWhiteboardSessionPresenceEvent(WhiteboardSession session,
String eventType,
String reason)
session - the WhiteboardSession which has been joined,
left, etc.eventType - the type of this event; one of LOCAL_USER_JOINED,
LOCAL_USER_LEFT, etc.reason - the reason
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||