Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.msn
Class OperationSetTypingNotificationsMsnImpl

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AbstractOperationSetTypingNotifications<ProtocolProviderServiceMsnImpl>
      extended by net.java.sip.communicator.impl.protocol.msn.OperationSetTypingNotificationsMsnImpl
All Implemented Interfaces:
OperationSet, OperationSetTypingNotifications

public class OperationSetTypingNotificationsMsnImpl
extends AbstractOperationSetTypingNotifications<ProtocolProviderServiceMsnImpl>

Maps SIP Communicator typing notifications to those going and coming from smack lib.

Author:
Damian Minkov

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
OperationSetTypingNotificationsMsnImpl(ProtocolProviderServiceMsnImpl provider)
           
 
Method Summary
 void sendTypingNotification(Contact notifiedContact, int typingState)
          Sends a notification to notifiedContatct that we have entered typingState.
(package private)  void setMessenger(net.sf.jml.MsnMessenger messenger)
          Sets the messenger instance impl of the lib which communicates with the server
 
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

OperationSetTypingNotificationsMsnImpl

OperationSetTypingNotificationsMsnImpl(ProtocolProviderServiceMsnImpl provider)
Parameters:
provider - a ref to the ProtocolProviderServiceImpl 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 stack is not registered and initialized.
IllegalArgumentException - if notifiedContact is not an instance belonging to the underlying implementation.

setMessenger

void setMessenger(net.sf.jml.MsnMessenger messenger)
Sets the messenger instance impl of the lib which communicates with the server

Parameters:
messenger - MsnMessenger

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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