|
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.gui.main.chat.ChatSession
net.java.sip.communicator.impl.gui.main.chat.conference.AdHocConferenceChatSession
public class AdHocConferenceChatSession
An implementation of ChatSession for ad-hoc conference chatting.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatSession |
|---|
chatHistoryFilter, chatParticipants, chatTransports |
| Constructor Summary | |
|---|---|
AdHocConferenceChatSession(ChatSessionRenderer sessionRenderer,
AdHocChatRoomWrapper chatRoomWrapper)
Creates an instance of AdHocConferenceChatSession, by specifying the sessionRenderer to be used for communication with the UI and the ad-hoc chat room corresponding to this conference session. |
|
| Method Summary | |
|---|---|
void |
addChatTransportChangeListener(ChatSessionChangeListener l)
Adds the given ChatSessionChangeListener to this
ChatSession. |
void |
dispose()
Disposes this chat session. |
byte[] |
getChatAvatar()
Returns the avatar icon of this chat session. |
ChatRoomConfigurationForm |
getChatConfigurationForm()
Returns the configuration form corresponding to the chat room. |
String |
getChatName()
Returns the name of the ad-hoc chat room. |
ChatSessionRenderer |
getChatSessionRenderer()
Returns the ChatSessionRenderer that provides the connection between this chat session and its UI. |
ImageIcon |
getChatStatusIcon()
Implements the ChatPanel.getChatStatusIcon method. |
ChatTransport |
getCurrentChatTransport()
Returns the currently used transport for all operation within this chat session. |
String |
getDefaultSmsNumber()
Returns the default mobile number used to send sms-es in this session. |
Object |
getDescriptor()
Returns the descriptor of this chat session. |
Collection<Object> |
getHistory(int count)
Returns a collection of the last N number of messages given by count. |
Collection<Object> |
getHistoryAfterDate(Date date,
int count)
Returns a collection of the last N number of messages given by count. |
Collection<Object> |
getHistoryBeforeDate(Date date,
int count)
Returns a collection of the last N number of messages given by count. |
long |
getHistoryEndDate()
Returns the end date of the history of this chat session. |
long |
getHistoryStartDate()
Returns the start date of the history of this chat session. |
boolean |
isContactListSupported()
Gets the indicator which determines whether a contact list of (multiple) participants is supported by this ChatSession. |
boolean |
isDescriptorPersistent()
Returns true if this contact is persistent, otherwise
returns false. |
void |
loadChatRoom(AdHocChatRoom chatRoom)
Loads the given chat room in the this chat conference panel. |
void |
participantPresenceChanged(AdHocChatRoomParticipantPresenceChangeEvent evt)
Invoked when AdHocChatRoomParticipantPresenceChangeEvent are received. |
void |
removeChatTransportChangeListener(ChatSessionChangeListener l)
Removes the given ChatSessionChangeListener to this
ChatSession. |
void |
setCurrentChatTransport(ChatTransport chatTransport)
Sets the transport that will be used for all operations within this chat session. |
void |
setDefaultSmsNumber(String smsPhoneNumber)
Sets the default mobile number used to send sms-es in this session. |
| Methods inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatSession |
|---|
findChatTransportForDescriptor, getChatTransports, getParticipants, getTransportsForOperationSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdHocConferenceChatSession(ChatSessionRenderer sessionRenderer,
AdHocChatRoomWrapper chatRoomWrapper)
sessionRenderer - the renderer to be used for communication with the
UI.chatRoomWrapper - the ad-hoc chat room corresponding to this
conference session.| Method Detail |
|---|
public Object getDescriptor()
getDescriptor in class ChatSessionpublic void dispose()
dispose in class ChatSessionpublic String getChatName()
getChatName in class ChatSession
public ChatRoomConfigurationForm getChatConfigurationForm()
throws OperationFailedException
OperationFailedException - if no configuration form is available
for the chat room.public ChatTransport getCurrentChatTransport()
getCurrentChatTransport in class ChatSessionpublic String getDefaultSmsNumber()
getDefaultSmsNumber in class ChatSessionpublic Collection<Object> getHistory(int count)
getHistory in class ChatSessioncount - The number of messages from history to return.
public Collection<Object> getHistoryBeforeDate(Date date,
int count)
getHistoryBeforeDate in class ChatSessiondate - The date up to which we're looking for messages.count - The number of messages from history to return.
public Collection<Object> getHistoryAfterDate(Date date,
int count)
getHistoryAfterDate in class ChatSessiondate - The date from which we're looking for messages.count - The number of messages from history to return.
public long getHistoryStartDate()
getHistoryStartDate in class ChatSessionpublic long getHistoryEndDate()
getHistoryEndDate in class ChatSessionpublic void setCurrentChatTransport(ChatTransport chatTransport)
setCurrentChatTransport in class ChatSessionchatTransport - The transport to set as a default transport for this
session.public void setDefaultSmsNumber(String smsPhoneNumber)
setDefaultSmsNumber in class ChatSessionsmsPhoneNumber - The default mobile number used to send sms-es in
this session.public ChatSessionRenderer getChatSessionRenderer()
getChatSessionRenderer in class ChatSessionpublic boolean isDescriptorPersistent()
true if this contact is persistent, otherwise
returns false.
isDescriptorPersistent in class ChatSessiontrue if this contact is persistent, otherwise
returns false.public void loadChatRoom(AdHocChatRoom chatRoom)
chatRoom - the ChatRoom to loadpublic ImageIcon getChatStatusIcon()
getChatStatusIcon in class ChatSessionpublic byte[] getChatAvatar()
getChatAvatar in class ChatSessionpublic boolean isContactListSupported()
ChatSessionChatSession. For example,
UI implementations may use the indicator to determine whether UI elements
should be created for the user to represent the contact list of the
participants in this ChatSession.
isContactListSupported in class ChatSessionChatSession supports a contact
list of (multiple) participants; otherwise, falsepublic void participantPresenceChanged(AdHocChatRoomParticipantPresenceChangeEvent evt)
participantPresenceChanged in interface AdHocChatRoomParticipantPresenceListenerevt - the AdHocChatRoomParticipantPresenceChangeEvent
instance containing the source chat room and type, and reason of the
presence changepublic void addChatTransportChangeListener(ChatSessionChangeListener l)
ChatSessionChatSessionChangeListener to this
ChatSession.
addChatTransportChangeListener in class ChatSessionl - the ChatSessionChangeListener to addpublic void removeChatTransportChangeListener(ChatSessionChangeListener l)
ChatSessionChatSessionChangeListener to this
ChatSession.
removeChatTransportChangeListener in class ChatSessionl - the ChatSessionChangeListener to add
|
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 | |||||||||