Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip
Class OperationSetMessageWaitingSipImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.OperationSetMessageWaitingSipImpl
All Implemented Interfaces:
EventListener, RegistrationStateChangeListener, OperationSet, OperationSetMessageWaiting

public class OperationSetMessageWaitingSipImpl
extends Object
implements OperationSetMessageWaiting, RegistrationStateChangeListener

Message Waiting Indication Event rfc3842.

Author:
Damian Minkov, Lyubomir Marinov

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.sip.communicator.service.protocol.OperationSetMessageWaiting
OperationSetMessageWaiting.MessageType
 
Field Summary
(package private) static String EVENT_PACKAGE
          The name of the event package supported by OperationSetMessageWaitingSipImpl in SUBSCRIBE and NOTIFY requests.
 
Constructor Summary
OperationSetMessageWaitingSipImpl(ProtocolProviderServiceSipImpl provider)
          Creates this operation set.
 
Method Summary
 void addMessageWaitingNotificationListener(OperationSetMessageWaiting.MessageType type, MessageWaitingListener listener)
          Registers a MessageWaitingListener with this operation set so that it gets notifications of new and old messages waiting.
 void registrationStateChanged(RegistrationStateChangeEvent evt)
          The method is called by a ProtocolProviderService implementation whenever a change in the registration state of the corresponding provider had occurred.
 void removeMessageWaitingNotificationListener(OperationSetMessageWaiting.MessageType type, MessageWaitingListener listener)
          Unregisters listener so that it won't receive any further notifications upon new messages waiting notifications delivery.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_PACKAGE

static final String EVENT_PACKAGE
The name of the event package supported by OperationSetMessageWaitingSipImpl in SUBSCRIBE and NOTIFY requests.

See Also:
Constant Field Values
Constructor Detail

OperationSetMessageWaitingSipImpl

OperationSetMessageWaitingSipImpl(ProtocolProviderServiceSipImpl provider)
Creates this operation set.

Parameters:
provider -
Method Detail

addMessageWaitingNotificationListener

public void addMessageWaitingNotificationListener(OperationSetMessageWaiting.MessageType type,
                                                  MessageWaitingListener listener)
Registers a MessageWaitingListener with this operation set so that it gets notifications of new and old messages waiting.

Specified by:
addMessageWaitingNotificationListener in interface OperationSetMessageWaiting
Parameters:
type - register the listener for certain type of messages.
listener - the MessageWaitingListener to register.

removeMessageWaitingNotificationListener

public void removeMessageWaitingNotificationListener(OperationSetMessageWaiting.MessageType type,
                                                     MessageWaitingListener listener)
Unregisters listener so that it won't receive any further notifications upon new messages waiting notifications delivery.

Specified by:
removeMessageWaitingNotificationListener in interface OperationSetMessageWaiting
Parameters:
type - register the listener for certain type of messages.
listener - the MessageWaitingListener to unregister.

registrationStateChanged

public void registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a ProtocolProviderService implementation whenever a change in the registration state of the corresponding provider had occurred.

Specified by:
registrationStateChanged in interface RegistrationStateChangeListener
Parameters:
evt - the event describing the status change.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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