|
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.msn.OperationSetAdHocMultiUserChatMsnImpl
public class OperationSetAdHocMultiUserChatMsnImpl
A MSN implementation of the ad-hoc multi user chat operation set.
| Constructor Summary | |
|---|---|
OperationSetAdHocMultiUserChatMsnImpl(ProtocolProviderServiceMsnImpl provider)
Creates an OperationSetAdHocMultiUserChatMsnImpl by specifying the parent provider. |
|
| Method Summary | |
|---|---|
void |
addInvitationListener(AdHocChatRoomInvitationListener listener)
Adds a listener to invitation notifications. |
void |
addInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
Adds a listener to invitation notifications. |
void |
addPresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
Adds the given presence listener to existing presence listeners list. |
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 adHocRoomName,
Map<String,Object> adHocRoomProperties)
Creates an AdHocChatRoom whose name is adHocRoomName with the properties contained in adHocRoomProperties |
Message |
createMessage(String messageText)
Creates a message by a given message text. |
void |
fireLocalUserPresenceEvent(AdHocChatRoom adHocChatRoom,
String eventType,
String reason)
Delivers a LocalUserAdHocChatRoomPresenceChangeEvent to all registered LocalUserAdHocChatRoomPresenceListeners. |
List<AdHocChatRoom> |
getAdHocChatRooms()
Returns a list of all currently joined AdHocChatRoom-s. |
boolean |
isGroupChatMessage(net.sf.jml.MsnSwitchboard switchboard)
Checks if an incoming message is a multi user chat message. |
void |
rejectInvitation(AdHocChatRoomInvitation invitation,
String rejectReason)
Supposed to reject an invitation for MUC. |
void |
removeInvitationListener(AdHocChatRoomInvitationListener listener)
Removes listener from the list of invitation listeners registered to receive invitation events. |
void |
removeInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
Removes listener from the list of invitation listeners registered to receive invitation events. |
void |
removePresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
Removes the given listener from presence listeners' list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetAdHocMultiUserChatMsnImpl(ProtocolProviderServiceMsnImpl provider)
provider - the Msn provider| Method Detail |
|---|
public void addPresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
addPresenceListener in interface OperationSetAdHocMultiUserChatlistener - the listener to addpublic void addInvitationListener(AdHocChatRoomInvitationListener listener)
addInvitationListener in interface OperationSetAdHocMultiUserChatlistener - an invitation listener.public void removeInvitationListener(AdHocChatRoomInvitationListener listener)
removeInvitationListener in interface OperationSetAdHocMultiUserChatlistener - the invitation listener to remove.public void addInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
addInvitationRejectionListener in interface OperationSetAdHocMultiUserChatlistener - an invitation listener.public void removeInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
removeInvitationRejectionListener in interface OperationSetAdHocMultiUserChatlistener - the invitation listener to remove.public Message createMessage(String messageText)
messageText - The message text.
public AdHocChatRoom createAdHocChatRoom(String adHocRoomName,
List<String> contacts,
String reason)
throws OperationFailedException,
OperationNotSupportedException
createAdHocChatRoom in interface OperationSetAdHocMultiUserChatadHocRoomName - the name of the ad-hoc roomcontacts - the list of contacts IDreason - the reason (will not be used since MSN does not support
invitation with the possibility to reject it)
OperationFailedException
OperationNotSupportedException
public AdHocChatRoom createAdHocChatRoom(String adHocRoomName,
Map<String,Object> adHocRoomProperties)
throws OperationFailedException,
OperationNotSupportedException
createAdHocChatRoom in interface OperationSetAdHocMultiUserChatadHocRoomName - the name of the ad-hoc roomadHocRoomProperties - the ad-hoc room's properties
OperationFailedException
OperationNotSupportedException
public void fireLocalUserPresenceEvent(AdHocChatRoom adHocChatRoom,
String eventType,
String reason)
adHocChatRoom - the AdHocChatRoom which has been joined,
left, etc.eventType - the type of this event; one of LOCAL_USER_JOINED,
LOCAL_USER_LEFT, etc.reason - the reasonpublic boolean isGroupChatMessage(net.sf.jml.MsnSwitchboard switchboard)
switchboard - The corresponding MSNswitchboard.
public void removePresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
removePresenceListener in interface OperationSetAdHocMultiUserChatlistener - the listener to remove
public void rejectInvitation(AdHocChatRoomInvitation invitation,
String rejectReason)
rejectInvitation in interface OperationSetAdHocMultiUserChatinvitation - the invitation we are rejecting.rejectReason - the reason to reject the invitation (optional)public List<AdHocChatRoom> getAdHocChatRooms()
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 | |||||||||