|
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 | |||||||||
public interface ChatTransport
The ChatTransport is an abstraction of the transport method used when sending messages, making calls, etc. through the chat window.
| Method Summary | |
|---|---|
void |
addInstantMessageListener(MessageListener l)
Adds an instant message listener to this chat transport. |
void |
addSmsMessageListener(MessageListener l)
Adds an sms message listener to this chat transport. |
boolean |
allowsInstantMessage()
Returns true if this chat transport supports instant
messaging, otherwise returns false. |
boolean |
allowsSmsMessage()
Returns true if this chat transport supports sms
messaging, otherwise returns false. |
boolean |
allowsTypingNotifications()
Returns true if this chat transport supports typing
notifications, otherwise returns false. |
void |
dispose()
Disposes this chat transport. |
Object |
getDescriptor()
Returns the descriptor object of this ChatTransport. |
String |
getDisplayName()
Returns the display name of this chat transport. |
long |
getMaximumFileLength()
Returns the maximum file length supported by the protocol in bytes. |
String |
getName()
Returns the name of this chat transport. |
ChatSession |
getParentChatSession()
Returns the parent session of this chat transport. |
ProtocolProviderService |
getProtocolProvider()
Returns the ProtocolProviderService, corresponding to this chat transport. |
PresenceStatus |
getStatus()
Returns the presence status of this transport. |
void |
inviteChatContact(String contactAddress,
String reason)
Invites a contact to join this chat. |
boolean |
isContentTypeSupported(String contentType)
Determines whether this chat transport supports the supplied content type |
void |
removeInstantMessageListener(MessageListener l)
Removes the instant message listener from this chat transport. |
void |
removeSmsMessageListener(MessageListener l)
Removes the given sms message listener from this chat transport. |
FileTransfer |
sendFile(File file)
Sends the given file trough this chat transport. |
void |
sendInstantMessage(String message,
String mimeType)
Sends the given instant message trough this chat transport, by specifying the mime type (html or plain text). |
void |
sendSmsMessage(Contact contact,
String message)
Sends the given SMS message trough this chat transport. |
void |
sendSmsMessage(String phoneNumber,
String message)
Sends the given SMS message trough this chat transport. |
int |
sendTypingNotification(int typingState)
Sends a typing notification state. |
| Method Detail |
|---|
Object getDescriptor()
boolean allowsInstantMessage()
true if this chat transport supports instant
messaging, otherwise returns false.
true if this chat transport supports instant
messaging, otherwise returns falseboolean allowsSmsMessage()
true if this chat transport supports sms
messaging, otherwise returns false.
true if this chat transport supports sms
messaging, otherwise returns falseboolean allowsTypingNotifications()
true if this chat transport supports typing
notifications, otherwise returns false.
true if this chat transport supports typing
notifications, otherwise returns falseString getName()
String getDisplayName()
PresenceStatus getStatus()
ProtocolProviderService getProtocolProvider()
void sendInstantMessage(String message,
String mimeType)
throws Exception
message - The message to send.mimeType - The mime type of the message to send: text/html or
text/plain.
Exception - if the send doesn't succeedboolean isContentTypeSupported(String contentType)
contentType - the type we want to check
void sendSmsMessage(String phoneNumber,
String message)
throws Exception
phoneNumber - the phone number to which to send the messagemessage - The message to send.
Exception - if the send doesn't succeed
void sendSmsMessage(Contact contact,
String message)
throws Exception
contact - the phone number to which to send the messagemessage - The message to send.
Exception - if the send doesn't succeedint sendTypingNotification(int typingState)
typingState - the typing notification state to send
FileTransfer sendFile(File file)
throws Exception
file - the file to send
Exception - if the send doesn't succeedlong getMaximumFileLength()
void inviteChatContact(String contactAddress,
String reason)
contactAddress - the address of the contact we invitereason - the reason for the inviteChatSession getParentChatSession()
void addSmsMessageListener(MessageListener l)
l - The message listener to add.void addInstantMessageListener(MessageListener l)
l - The message listener to add.void removeSmsMessageListener(MessageListener l)
l - The message listener to remove.void removeInstantMessageListener(MessageListener l)
l - The message listener to remove.void dispose()
|
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 | |||||||||