|
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
public abstract class ChatSession
| Field Summary | |
|---|---|
protected String[] |
chatHistoryFilter
The chat history filter. |
protected List<ChatContact<?>> |
chatParticipants
The list of ChatContacts contained in this chat session. |
protected List<ChatTransport> |
chatTransports
The list of ChatTransports available in this session. |
| Constructor Summary | |
|---|---|
ChatSession()
|
|
| Method Summary | |
|---|---|
abstract void |
addChatTransportChangeListener(ChatSessionChangeListener l)
Adds the given ChatSessionChangeListener to this
ChatSession. |
abstract void |
dispose()
Disposes this chat session. |
ChatTransport |
findChatTransportForDescriptor(Object descriptor)
Returns the ChatTransport corresponding to the given descriptor. |
abstract byte[] |
getChatAvatar()
Returns the avatar icon of this chat session. |
abstract String |
getChatName()
Returns the name of the chat. |
abstract ChatSessionRenderer |
getChatSessionRenderer()
Returns the ChatSessionRenderer that provides the connection between this chat session and its UI. |
abstract ImageIcon |
getChatStatusIcon()
Returns the status icon of this chat session. |
Iterator<ChatTransport> |
getChatTransports()
Returns all available chat transports for this chat session. |
abstract ChatTransport |
getCurrentChatTransport()
Returns the currently used transport for all operation within this chat session. |
abstract String |
getDefaultSmsNumber()
Returns the default mobile number used to send sms-es in this session. |
abstract Object |
getDescriptor()
Returns the descriptor of this chat session. |
abstract Collection<Object> |
getHistory(int count)
Returns a collection of the last N number of history messages given by count. |
abstract Collection<Object> |
getHistoryAfterDate(Date date,
int count)
Returns a collection of the last N number of history messages given by count. |
abstract Collection<Object> |
getHistoryBeforeDate(Date date,
int count)
Returns a collection of the last N number of history messages given by count. |
abstract long |
getHistoryEndDate()
Returns the end date of the history of this chat session. |
abstract long |
getHistoryStartDate()
Returns the start date of the history of this chat session. |
Iterator<ChatContact<?>> |
getParticipants()
Returns an iterator to the list of all participants contained in this chat session. |
List<ChatTransport> |
getTransportsForOperationSet(Class<? extends OperationSet> opSetClass)
Returns a list of all ChatTransports contained in this session supporting the given opSetClass. |
abstract boolean |
isContactListSupported()
Gets the indicator which determines whether a contact list of (multiple) participants is supported by this ChatSession. |
abstract boolean |
isDescriptorPersistent()
Returns true if this chat session descriptor is persistent,
otherwise returns false. |
abstract void |
removeChatTransportChangeListener(ChatSessionChangeListener l)
Removes the given ChatSessionChangeListener to this
ChatSession. |
abstract void |
setCurrentChatTransport(ChatTransport chatTransport)
Sets the transport that will be used for all operations within this chat session. |
abstract void |
setDefaultSmsNumber(String smsPhoneNumber)
Sets the default mobile number used to send sms-es in this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String[] chatHistoryFilter
protected final List<ChatContact<?>> chatParticipants
protected final List<ChatTransport> chatTransports
| Constructor Detail |
|---|
public ChatSession()
| Method Detail |
|---|
public abstract Object getDescriptor()
public abstract boolean isDescriptorPersistent()
true if this chat session descriptor is persistent,
otherwise returns false.
true if this chat session descriptor is persistent,
otherwise returns false.public Iterator<ChatContact<?>> getParticipants()
public Iterator<ChatTransport> getChatTransports()
public abstract ChatTransport getCurrentChatTransport()
public List<ChatTransport> getTransportsForOperationSet(Class<? extends OperationSet> opSetClass)
opSetClass - the OperationSet class we're looking for
public abstract ChatSessionRenderer getChatSessionRenderer()
public abstract void setCurrentChatTransport(ChatTransport chatTransport)
chatTransport - The transport to set as a default transport for this
session.public abstract String getChatName()
public abstract Collection<Object> getHistory(int count)
count - The number of messages from history to return.
public abstract Collection<Object> getHistoryBeforeDate(Date date,
int count)
date - The date up to which we're looking for messages.count - The number of messages from history to return.
public abstract Collection<Object> getHistoryAfterDate(Date date,
int count)
date - The date from which we're looking for messages.count - The number of messages from history to return.
public abstract long getHistoryStartDate()
public abstract long getHistoryEndDate()
public abstract String getDefaultSmsNumber()
public abstract void setDefaultSmsNumber(String smsPhoneNumber)
smsPhoneNumber - The default mobile number used to send sms-es in
this session.public abstract void dispose()
public ChatTransport findChatTransportForDescriptor(Object descriptor)
descriptor - The descriptor of the chat transport we're looking for.
public abstract ImageIcon getChatStatusIcon()
public abstract byte[] getChatAvatar()
public abstract boolean isContactListSupported()
ChatSession. 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.
ChatSession supports a contact
list of (multiple) participants; otherwise, falsepublic abstract void addChatTransportChangeListener(ChatSessionChangeListener l)
ChatSessionChangeListener to this
ChatSession.
l - the ChatSessionChangeListener to addpublic abstract void removeChatTransportChangeListener(ChatSessionChangeListener l)
ChatSessionChangeListener to this
ChatSession.
l - 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 | |||||||||