|
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.yahoo.OperationSetAdHocMultiUserChatYahooImpl
public class OperationSetAdHocMultiUserChatYahooImpl
A Yahoo implementation of the ad-hoc multi user chat operation set.
| Constructor Summary | |
|---|---|
OperationSetAdHocMultiUserChatYahooImpl(ProtocolProviderServiceYahooImpl yahooProvider)
Instantiates the user operation set with a currently valid instance of the Yahoo protocol provider. |
|
| Method Summary | |
|---|---|
void |
addInvitationListener(AdHocChatRoomInvitationListener listener)
Adds a listener to invitation notifications. |
void |
addInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
Subscribes listener so that it would receive events indicating rejection of a multi user chat invitation that we've sent earlier. |
void |
addPresenceListener(LocalUserAdHocChatRoomPresenceListener 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. |
AdHocChatRoom |
createAdHocChatRoom(String adHocRoomName,
List<String> contacts,
String reason)
Creates an ad-hoc room with the named adHocRoomName and in including to the specified contacts. |
AdHocChatRoom |
createAdHocChatRoom(String roomName,
Map<String,Object> roomProperties)
Creates a room with the named roomName and according to the specified roomProperties on the server that this protocol provider is currently connected to. |
Message |
createMessage(String messageText)
Creates a message by a given message text. |
void |
fireInvitationEvent(AdHocChatRoom targetChatRoom,
String inviter,
String reason)
Delivers a AdHocChatRoomInvitationReceivedEvent to all registered AdHocChatRoomInvitationListeners. |
void |
fireInvitationRejectedEvent(AdHocChatRoom sourceChatRoom,
String invitee,
String reason)
Delivers a AdHocChatRoomInvitationRejectedEvent to all registered AdHocChatRoomInvitationRejectionListeners. |
void |
fireLocalUserPresenceEvent(AdHocChatRoom chatRoom,
String eventType,
String reason)
Delivers a LocalUserAdHocChatRoomPresenceChangeEvent to all registered LocalUserAdHocChatRoomPresenceListeners. |
List<AdHocChatRoom> |
getAdHocChatRooms()
Returns a list of all currently joined AdHocChatRoom-s. |
void |
rejectInvitation(AdHocChatRoomInvitation invitation,
String rejectReason)
Informs the sender of an invitation that we decline their invitation. |
void |
removeInvitationListener(AdHocChatRoomInvitationListener listener)
Removes a listener that was being notified of changes in our status in a room such as us being kicked, banned or dropped. |
void |
removeInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
Removes listener from the list of invitation listeners registered to receive invitation rejection events. |
void |
removePresenceListener(LocalUserAdHocChatRoomPresenceListener 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 |
|---|
OperationSetAdHocMultiUserChatYahooImpl(ProtocolProviderServiceYahooImpl yahooProvider)
yahooProvider - a currently valid instance of
ProtocolProviderServiceYahooImpl.| Method Detail |
|---|
public void addInvitationListener(AdHocChatRoomInvitationListener listener)
addInvitationListener in interface OperationSetAdHocMultiUserChatlistener - An invitation listener.public void removeInvitationListener(AdHocChatRoomInvitationListener listener)
removeInvitationListener in interface OperationSetAdHocMultiUserChatlistener - the LocalUserAdHocChatRoomPresenceListener.public void addInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
addInvitationRejectionListener in interface OperationSetAdHocMultiUserChatlistener - the listener that we'll subscribe for invitation
rejection events.public void removeInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
removeInvitationRejectionListener in interface OperationSetAdHocMultiUserChatlistener - the invitation listener to remove.public void addPresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
addPresenceListener in interface OperationSetAdHocMultiUserChatlistener - the LocalUserAdHocChatRoomPresenceListener.public void removePresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
removePresenceListener in interface OperationSetAdHocMultiUserChatlistener - the LocalUserChatRoomPresenceListener.
public AdHocChatRoom createAdHocChatRoom(String roomName,
Map<String,Object> roomProperties)
throws OperationFailedException
createAdHocChatRoom in interface OperationSetAdHocMultiUserChatroomName - the name of the AdHocChatRoom to create.roomProperties - properties specifying how the room should be
created.
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).
public AdHocChatRoom createAdHocChatRoom(String adHocRoomName,
List<String> contacts,
String reason)
throws OperationFailedException
createAdHocChatRoom in interface OperationSetAdHocMultiUserChatadHocRoomName - the name of the room to be createdcontacts - the list of contacts IDreason - the reason for contacts' invitation
OperationFailedException - if the room couldn't be created for
some reason
public void rejectInvitation(AdHocChatRoomInvitation invitation,
String rejectReason)
rejectInvitation in interface OperationSetAdHocMultiUserChatinvitation - the connection to use for sending the rejection.rejectReason - the reason to reject the given invitation
public void fireInvitationEvent(AdHocChatRoom targetChatRoom,
String inviter,
String reason)
targetChatRoom - the room that invitation refers toinviter - the inviter that sent the invitationreason - the reason why the inviter sent the invitation
public void fireInvitationRejectedEvent(AdHocChatRoom sourceChatRoom,
String invitee,
String reason)
sourceChatRoom - the room that invitation refers toinvitee - the name of the invitee that rejected the invitationreason - the reason of the rejection
public void fireLocalUserPresenceEvent(AdHocChatRoom chatRoom,
String eventType,
String reason)
chatRoom - the ChatRoom which has been joined, left, etc.eventType - the type of this event; one of LOCAL_USER_JOINED,
LOCAL_USER_LEFT, etc.reason - the reasonpublic Message createMessage(String messageText)
messageText - The message text.
public List<AdHocChatRoom> getAdHocChatRooms()
OperationSetAdHocMultiUserChat
getAdHocChatRooms in interface OperationSetAdHocMultiUserChat
|
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 | |||||||||