|
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.AbstractOperationSetTypingNotifications<T>
T - the type of the ProtocolProviderService implementation
providing the AbstractOperationSetTypingNotifications implementationpublic abstract class AbstractOperationSetTypingNotifications<T extends ProtocolProviderService>
Represents a default implementation of OperationSetTypingNotifications in order to make it easier for implementers to provide complete solutions while focusing on implementation-specific details.
| Field Summary | |
|---|---|
protected T |
parentProvider
The provider that created us. |
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetTypingNotifications |
|---|
STATE_PAUSED, STATE_STALE, STATE_STOPPED, STATE_TYPING, STATE_UNKNOWN |
| Constructor Summary | |
|---|---|
protected |
AbstractOperationSetTypingNotifications(T parentProvider)
Initializes a new AbstractOperationSetTypingNotifications instance created by a specific ProtocolProviderService instance. |
| Method Summary | |
|---|---|
void |
addTypingNotificationsListener(TypingNotificationsListener listener)
Adds listener to the list of listeners registered for receiving TypingNotificationEvents. |
protected void |
assertConnected()
Utility method throwing an exception if the stack is not properly initialized. |
void |
fireTypingNotificationsEvent(Contact sourceContact,
int evtCode)
Delivers a TypingNotificationEvent to all registered listeners. |
void |
removeTypingNotificationsListener(TypingNotificationsListener listener)
Removes listener from the list of listeners registered for receiving TypingNotificationEvents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.OperationSetTypingNotifications |
|---|
sendTypingNotification |
| Field Detail |
|---|
protected final T extends ProtocolProviderService parentProvider
| Constructor Detail |
|---|
protected AbstractOperationSetTypingNotifications(T parentProvider)
parentProvider - the ProtocolProviderService which creates
the new instance| Method Detail |
|---|
public void addTypingNotificationsListener(TypingNotificationsListener listener)
addTypingNotificationsListener in interface OperationSetTypingNotificationslistener - the TypingNotificationsListener listener that
we'd like to addOperationSetTypingNotifications.addTypingNotificationsListener(
TypingNotificationsListener)
protected void assertConnected()
throws IllegalStateException
IllegalStateException - if the underlying stack is not registered
and initialized
public void fireTypingNotificationsEvent(Contact sourceContact,
int evtCode)
sourceContact - the contact who has sent the notificationevtCode - the code of the event to deliverpublic void removeTypingNotificationsListener(TypingNotificationsListener listener)
removeTypingNotificationsListener in interface OperationSetTypingNotificationslistener - the TypingNotificationsListener listener that
we'd like to removeOperationSetTypingNotifications.removeTypingNotificationsListener(
TypingNotificationsListener)
|
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 | |||||||||