Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.icq
Class OperationSetTypingNotificationsIcqImpl

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AbstractOperationSetTypingNotifications<ProtocolProviderServiceIcqImpl>
      extended by net.java.sip.communicator.impl.protocol.icq.OperationSetTypingNotificationsIcqImpl
All Implemented Interfaces:
OperationSet, OperationSetTypingNotifications

public class OperationSetTypingNotificationsIcqImpl
extends AbstractOperationSetTypingNotifications<ProtocolProviderServiceIcqImpl>

Maps SIP Communicator typing notifications to those going and coming from joust sim.

Author:
Emil Ivov

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetTypingNotifications
parentProvider
 
Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetTypingNotifications
STATE_PAUSED, STATE_STALE, STATE_STOPPED, STATE_TYPING, STATE_UNKNOWN
 
Constructor Summary
OperationSetTypingNotificationsIcqImpl(ProtocolProviderServiceIcqImpl icqProvider)
           
 
Method Summary
 void sendTypingNotification(Contact notifiedContact, int typingState)
          Sends a notification to notifiedContatct that we have entered typingState.
 
Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetTypingNotifications
addTypingNotificationsListener, assertConnected, fireTypingNotificationsEvent, removeTypingNotificationsListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSetTypingNotificationsIcqImpl

OperationSetTypingNotificationsIcqImpl(ProtocolProviderServiceIcqImpl icqProvider)
Parameters:
icqProvider - a ref to the ProtocolProviderServiceIcqImpl that created us and that we'll use for retrieving the underlying aim connection.
Method Detail

sendTypingNotification

public void sendTypingNotification(Contact notifiedContact,
                                   int typingState)
                            throws IllegalStateException,
                                   IllegalArgumentException
Sends a notification to notifiedContatct that we have entered typingState.

Parameters:
notifiedContact - the Contact to notify
typingState - the typing state that we have entered.
Throws:
IllegalStateException - if the underlying ICQ stack is not registered and initialized.
IllegalArgumentException - if notifiedContact is not an instance belonging to the underlying implementation.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.