|
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.service.protocol.AbstractOperationSetBasicInstantMessaging
net.java.sip.communicator.impl.protocol.dict.OperationSetBasicInstantMessagingDictImpl
public class OperationSetBasicInstantMessagingDictImpl
Instant messaging functionalities for the Dict protocol.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicInstantMessaging |
|---|
DEFAULT_MIME_ENCODING, DEFAULT_MIME_TYPE, HTML_MIME_TYPE |
| Constructor Summary | |
|---|---|
OperationSetBasicInstantMessagingDictImpl(ProtocolProviderServiceDictImpl provider,
OperationSetPersistentPresenceDictImpl opSetPersPresence)
Creates an instance of this operation set keeping a reference to the parent protocol provider and presence operation set. |
|
| Method Summary | |
|---|---|
Message |
createMessage(String content)
Create a Message instance for sending a simple text messages with default (text/plain) content type and encoding. |
Message |
createMessage(String content,
String contentType,
String encoding,
String subject)
Create a Message instance for sending arbitrary MIME-encoding content. |
OperationSetPersistentPresenceDictImpl |
getOpSetPersPresence()
Returns a reference to the presence operation set instance used by our source provider. |
ProtocolProviderServiceDictImpl |
getParentProvider()
Returns the protocol provider that this operation set belongs to. |
boolean |
isContentTypeSupported(String contentType)
Determines whether the protocol supports the supplied content type. |
boolean |
isOfflineMessagingSupported()
Determines whether the protocol provider (or the protocol itself) supports sending and receiving offline messages. |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by the ProtocolProvider whenever a change in the registration state of the corresponding provider has occurred. |
void |
sendInstantMessage(Contact to,
Message message)
Sends the message to the destination indicated by the to contact. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetBasicInstantMessaging |
|---|
addMessageListener, createMessage, fireMessageDelivered, fireMessageDeliveryFailed, fireMessageEvent, fireMessageReceived, isContentTypeSupported, messageDeliveryPendingTransform, removeMessageListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetBasicInstantMessagingDictImpl(ProtocolProviderServiceDictImpl provider,
OperationSetPersistentPresenceDictImpl opSetPersPresence)
provider - The provider instance that creates us.opSetPersPresence - the currently valid
OperationSetPersistentPresenceDictImpl instance.| Method Detail |
|---|
public Message createMessage(String content)
AbstractOperationSetBasicInstantMessaging
createMessage in interface OperationSetBasicInstantMessagingcreateMessage in class AbstractOperationSetBasicInstantMessagingcontent - the string content of the message.
public Message createMessage(String content,
String contentType,
String encoding,
String subject)
OperationSetBasicInstantMessaging
createMessage in interface OperationSetBasicInstantMessagingcreateMessage in class AbstractOperationSetBasicInstantMessagingcontent - content valuecontentType - the MIME-type for contentencoding - encoding used for contentsubject - a String subject or null for now
subject.
public void sendInstantMessage(Contact to,
Message message)
throws IllegalStateException,
IllegalArgumentException
sendInstantMessage in interface OperationSetBasicInstantMessagingto - the Contact to send message tomessage - the Message to send.
IllegalStateException - if the underlying ICQ stack is not
registered and initialized.
IllegalArgumentException - if to is not an instance
belonging to the underlying implementation.public boolean isOfflineMessagingSupported()
isOfflineMessagingSupported in interface OperationSetBasicInstantMessagingpublic boolean isContentTypeSupported(String contentType)
isContentTypeSupported in interface OperationSetBasicInstantMessagingcontentType - the type we want to check
public ProtocolProviderServiceDictImpl getParentProvider()
public OperationSetPersistentPresenceDictImpl getOpSetPersPresence()
public void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged in interface RegistrationStateChangeListenerevt - ProviderStatusChangeEvent the event describing the status
change.
|
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 | |||||||||