|
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.MetaContactChatSession
public class MetaContactChatSession
An implementation of the ChatSession interface that represents a user-to-user chat session.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatSession |
|---|
chatHistoryFilter, chatParticipants, chatTransports |
| Constructor Summary | |
|---|---|
MetaContactChatSession(ChatSessionRenderer sessionRenderer,
MetaContact metaContact,
Contact protocolContact)
Creates an instance of MetaContactChatSession by specifying the renderer, which gives the connection with the UI, the meta contact corresponding to the session and the protocol contact to be used as transport. |
|
| Method Summary | |
|---|---|
void |
addChatTransportChangeListener(ChatSessionChangeListener l)
Adds the given ChatSessionChangeListener to this
ChatSession. |
void |
childContactsReordered(MetaContactGroupEvent evt)
Indicates that the order under which the child contacts were ordered inside the source group has changed. |
void |
dispose()
Disposes this chat session. |
byte[] |
getChatAvatar()
Returns the avatar icon of this chat session. |
String |
getChatName()
Returns the name of this chat. |
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()
Implements ChatSession#isContactListSupported(). |
boolean |
isDescriptorPersistent()
Returns true if this contact is persistent, otherwise
returns false. |
void |
metaContactAdded(MetaContactEvent evt)
Indicates that a MetaContact has been successfully added to the MetaContact list. |
void |
metaContactAvatarUpdated(MetaContactAvatarUpdateEvent evt)
Indicates that a new avatar is available for a MetaContact. |
void |
metaContactGroupAdded(MetaContactGroupEvent evt)
Indicates that a MetaContactGroup has been successfully added to the MetaContact list. |
void |
metaContactGroupModified(MetaContactGroupEvent evt)
Indicates that a MetaContactGroup has been modified (e.g. |
void |
metaContactGroupRemoved(MetaContactGroupEvent evt)
Indicates that a MetaContactGroup has been removed from the MetaContact list. |
void |
metaContactModified(MetaContactModifiedEvent evt)
Indicates that a MetaContact has been modified. |
void |
metaContactMoved(MetaContactMovedEvent evt)
Indicates that a MetaContact has been moved inside the MetaContact list. |
void |
metaContactRemoved(MetaContactEvent evt)
Indicates that a MetaContact has been removed from the MetaContact list. |
void |
metaContactRenamed(MetaContactRenamedEvent evt)
Implements MetaContactListListener.metaContactRenamed method. |
void |
protoContactAdded(ProtoContactEvent evt)
Implements MetaContactListListener.protoContactAdded method. |
void |
protoContactModified(ProtoContactEvent evt)
Indicates that one of the protocol specific Contact instances encapsulated by this MetaContact has been modified in some way. |
void |
protoContactMoved(ProtoContactEvent evt)
Implements MetaContactListListener.protoContactMoved method. |
void |
protoContactRemoved(ProtoContactEvent evt)
Implements MetaContactListListener.protoContactRemoved method. |
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 MetaContactChatSession(ChatSessionRenderer sessionRenderer,
MetaContact metaContact,
Contact protocolContact)
sessionRenderer - the renderer, which gives the connection with
the UI.metaContact - the meta contact corresponding to the session and the
protocol contact.protocolContact - the protocol contact to be used as transport.| Method Detail |
|---|
public String getChatName()
getChatName 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 String getDefaultSmsNumber()
getDefaultSmsNumber in class ChatSessionpublic void setDefaultSmsNumber(String smsPhoneNumber)
setDefaultSmsNumber in class ChatSessionsmsPhoneNumber - The default mobile number used to send sms-es in
this session.public ChatTransport getCurrentChatTransport()
getCurrentChatTransport in class ChatSessionpublic void setCurrentChatTransport(ChatTransport chatTransport)
setCurrentChatTransport in class ChatSessionchatTransport - The transport to set as a default transport for this
session.public void childContactsReordered(MetaContactGroupEvent evt)
MetaContactListListener
childContactsReordered in interface MetaContactListListenerevt - the MetaContactGroupEvent containing details of this
event.public void metaContactAdded(MetaContactEvent evt)
MetaContactListListener
metaContactAdded in interface MetaContactListListenerevt - the MetaContactListEvent containing the corresponding contactpublic void metaContactGroupAdded(MetaContactGroupEvent evt)
MetaContactListListener
metaContactGroupAdded in interface MetaContactListListenerevt - the MetaContactListEvent containing the corresponding contactpublic void metaContactGroupModified(MetaContactGroupEvent evt)
MetaContactListListener
metaContactGroupModified in interface MetaContactListListenerevt - the MetaContactListEvent containing the corresponding contactpublic void metaContactGroupRemoved(MetaContactGroupEvent evt)
MetaContactListListener
metaContactGroupRemoved in interface MetaContactListListenerevt - the MetaContactListEvent containing the corresponding contactpublic void metaContactModified(MetaContactModifiedEvent evt)
MetaContactListListener
metaContactModified in interface MetaContactListListenerevt - the MetaContactModifiedEvent containing the corresponding
contactpublic void metaContactMoved(MetaContactMovedEvent evt)
MetaContactListListener
metaContactMoved in interface MetaContactListListenerevt - the MetaContactListEvent containing the corresponding contactpublic void metaContactRemoved(MetaContactEvent evt)
MetaContactListListener
metaContactRemoved in interface MetaContactListListenerevt - the MetaContactListEvent containing the corresponding contactpublic void metaContactAvatarUpdated(MetaContactAvatarUpdateEvent evt)
MetaContactListListener
metaContactAvatarUpdated in interface MetaContactListListenerevt - the MetaContactAvatarUpdateEvent containing details
of this eventpublic void metaContactRenamed(MetaContactRenamedEvent evt)
metaContactRenamed in interface MetaContactListListenerevt - the MetaContactRenamedEvent that notified uspublic void protoContactAdded(ProtoContactEvent evt)
protoContactAdded in interface MetaContactListListenerevt - a reference to the corresponding
ProtoContactEventpublic void protoContactMoved(ProtoContactEvent evt)
protoContactMoved in interface MetaContactListListenerevt - a reference to the ProtoContactMovedEvent instance.public void protoContactRemoved(ProtoContactEvent evt)
protoContactRemoved in interface MetaContactListListenerevt - a reference to the corresponding
ProtoContactEventpublic void dispose()
dispose in class ChatSessionpublic ChatSessionRenderer getChatSessionRenderer()
getChatSessionRenderer in class ChatSessionpublic Object getDescriptor()
getDescriptor 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 ImageIcon getChatStatusIcon()
getChatStatusIcon in class ChatSessionpublic byte[] getChatAvatar()
getChatAvatar in class ChatSessionpublic void protoContactModified(ProtoContactEvent evt)
MetaContactListListener
protoContactModified in interface MetaContactListListenerevt - a reference to the corresponding
ProtoContactEventpublic boolean isContactListSupported()
isContactListSupported in class ChatSessionChatSession supports a contact
list of (multiple) participants; otherwise, falsepublic 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 | |||||||||