|
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.AdHocChatRoomYahooImpl
public class AdHocChatRoomYahooImpl
Represents a Yahoo ad-hoc chat room, where multiple chat users could communicate in a many-to-many fashion.
| Constructor Summary | |
|---|---|
AdHocChatRoomYahooImpl(ymsg.network.YahooConference multiUserChat,
ProtocolProviderServiceYahooImpl provider)
Creates an instance of a chat room that has been. |
|
| Method Summary | |
|---|---|
void |
addChatRoomParticipant(Contact participant)
Adds a participant to the ad-hoc chat room participant list. |
void |
addMessageListener(AdHocChatRoomMessageListener listener)
Registers listener so that it would receive events every time a new message is received on this chat room. |
void |
addParticipantPresenceListener(AdHocChatRoomParticipantPresenceListener listener)
Adds a listener that will be notified of changes in our status in the room. |
Message |
createMessage(String messageText)
Create a Message instance for sending a simple text messages with default (text/plain) content type and encoding. |
Contact |
findParticipantForAddress(String address)
Finds the participant of this ad-hoc chat room corresponding to the given address. |
void |
fireMessageEvent(EventObject evt)
Notifies all interested listeners that a AdHocChatRoomMessageDeliveredEvent, AdHocChatRoomMessageReceivedEvent or a AdHocChatRoomMessageDeliveryFailedEvent has been fired. |
void |
fireParticipantPresenceEvent(Contact participant,
String eventID,
String eventReason)
Creates the corresponding AdHocChatRoomParticipantPresenceChangeEvent and notifies all AdHocChatRoomParticipantPresenceListeners that a Contact has joined or left this AdHocChatRoom. |
String |
getIdentifier()
Returns the identifier of this AdHocChatRoom. |
String |
getName()
Returns the name of this AdHocChatRoom. |
ProtocolProviderService |
getParentProvider()
Returns the protocol provider service that created us. |
List<Contact> |
getParticipants()
Returns a List of Contacts corresponding to all members currently participating in this room. |
int |
getParticipantsCount()
Returns the number of participants that are currently in this ad-hoc chat room. |
String |
getUserNickname()
Returns the local user's nickname in the context of this chat room or null if not currently joined. |
ymsg.network.YahooConference |
getYahooConference()
Returns the yahoo conference model of this chat room. |
void |
invite(String userAddress,
String reason)
Invites another user to this room. |
boolean |
isPersistent()
Determines whether this chat room should be stored in the configuration file or not. |
boolean |
isSystem()
Indicates whether or not this chat room is corresponding to a server channel. |
void |
join()
Joins this chat room with the nickname of the local user so that the user would start receiving events and messages for it. |
void |
leave()
Leave this chat room. |
void |
removeChatRoomParticipant(Contact participant)
Removes the specified ad-hoc chat room participant from the participants list of this ad-hoc chat room. |
void |
removeMessageListener(AdHocChatRoomMessageListener listener)
Removes listener so that it won't receive any further message events from this room. |
void |
removeParticipantPresenceListener(AdHocChatRoomParticipantPresenceListener listener)
Removes a listener that was being notified of changes in the status of other chat room participants. |
void |
sendMessage(Message message)
Sends the message to the destination indicated by the to contact. |
void |
updateParticipantsList()
Updates the member list of the chat room. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdHocChatRoomYahooImpl(ymsg.network.YahooConference multiUserChat,
ProtocolProviderServiceYahooImpl provider)
multiUserChat - MultiUserChatprovider - a reference to the currently valid jabber protocol provider.| Method Detail |
|---|
public void addMessageListener(AdHocChatRoomMessageListener listener)
addMessageListener in interface AdHocChatRoomlistener - A MessageListener that would be notified every
time a new message is received on this chat room.public void removeMessageListener(AdHocChatRoomMessageListener listener)
removeMessageListener in interface AdHocChatRoomlistener - The MessageListener to remove from this roompublic void addParticipantPresenceListener(AdHocChatRoomParticipantPresenceListener listener)
addParticipantPresenceListener in interface AdHocChatRoomlistener - A participant status listener.public void removeParticipantPresenceListener(AdHocChatRoomParticipantPresenceListener listener)
removeParticipantPresenceListener in interface AdHocChatRoomlistener - A participant status listener.public Message createMessage(String messageText)
createMessage in interface AdHocChatRoommessageText - the string content of the message.
public List<Contact> getParticipants()
getParticipants in interface AdHocChatRoompublic void updateParticipantsList()
public String getIdentifier()
getIdentifier in interface AdHocChatRoompublic int getParticipantsCount()
getParticipantsCount in interface AdHocChatRoompublic String getName()
getName in interface AdHocChatRoompublic ProtocolProviderService getParentProvider()
getParentProvider in interface AdHocChatRoompublic String getUserNickname()
public void invite(String userAddress,
String reason)
invite in interface AdHocChatRoomuserAddress - The identifier of the contact (email address or yahoo
id)reason - The invite reason, which is send to the invitee.public boolean isSystem()
false.
false since system chat room can't be joined
with current yahoo library.
public void join()
throws OperationFailedException
join in interface AdHocChatRoomOperationFailedException - with the corresponding code if an error
occurs while joining the room.public void leave()
leave in interface AdHocChatRoom
public void sendMessage(Message message)
throws OperationFailedException
sendMessage in interface AdHocChatRoommessage - The Message to send.
OperationFailedException - if the underlying stack is not
registered or initialized or if the chat room is not joined.public void fireMessageEvent(EventObject evt)
evt - The specific event
public void fireParticipantPresenceEvent(Contact participant,
String eventID,
String eventReason)
participant - the Contact that thiseventID - the identifier of the eventeventReason - the reason of the eventpublic Contact findParticipantForAddress(String address)
address - the address to search for.
public void removeChatRoomParticipant(Contact participant)
participant - The member, who should be removed from the ad-hoc chat room
participants list.public void addChatRoomParticipant(Contact participant)
participant - The participant, who should be added to the ad-hoc
chat room participant list.public ymsg.network.YahooConference getYahooConference()
public boolean isPersistent()
|
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 | |||||||||