Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Class AbstractOperationSetServerStoredAccountInfo

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AbstractOperationSetServerStoredAccountInfo
All Implemented Interfaces:
OperationSet, OperationSetServerStoredAccountInfo
Direct Known Subclasses:
OperationSetServerStoredAccountInfoIcqImpl, OperationSetServerStoredAccountInfoJabberImpl, OperationSetServerStoredAccountInfoMsnImpl, OperationSetServerStoredAccountInfoSipImpl

public abstract class AbstractOperationSetServerStoredAccountInfo
extends Object
implements OperationSetServerStoredAccountInfo

Represents a default implementation of OperationSetServerStoredAccountInfo in order to make it easier for implementers to provide complete solutions while focusing on implementation-specific details.

Author:
Damian Minkov

Constructor Summary
AbstractOperationSetServerStoredAccountInfo()
           
 
Method Summary
 void addServerStoredDetailsChangeListener(ServerStoredDetailsChangeListener listener)
          Registers a ServerStoredDetailsChangeListener with this operation set so that it gets notifications of details change.
 void fireServerStoredDetailsChangeEvent(ProtocolProviderService source, int eventID, Object oldValue, Object newValue)
          Notify all listeners of the corresponding account detail change event.
 void removeServerStoredDetailsChangeListener(ServerStoredDetailsChangeListener listener)
          Unregisters listener so that it won't receive any further notifications upon details change.
 
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.OperationSetServerStoredAccountInfo
addDetail, getAllAvailableDetails, getDetails, getDetailsAndDescendants, getMaxDetailInstances, getSupportedDetailTypes, isDetailClassSupported, removeDetail, replaceDetail
 

Constructor Detail

AbstractOperationSetServerStoredAccountInfo

public AbstractOperationSetServerStoredAccountInfo()
Method Detail

addServerStoredDetailsChangeListener

public void addServerStoredDetailsChangeListener(ServerStoredDetailsChangeListener listener)
Registers a ServerStoredDetailsChangeListener with this operation set so that it gets notifications of details change.

Specified by:
addServerStoredDetailsChangeListener in interface OperationSetServerStoredAccountInfo
Parameters:
listener - the ServerStoredDetailsChangeListener to register.

removeServerStoredDetailsChangeListener

public void removeServerStoredDetailsChangeListener(ServerStoredDetailsChangeListener listener)
Unregisters listener so that it won't receive any further notifications upon details change.

Specified by:
removeServerStoredDetailsChangeListener in interface OperationSetServerStoredAccountInfo
Parameters:
listener - the ServerStoredDetailsChangeListener to unregister.

fireServerStoredDetailsChangeEvent

public void fireServerStoredDetailsChangeEvent(ProtocolProviderService source,
                                               int eventID,
                                               Object oldValue,
                                               Object newValue)
Notify all listeners of the corresponding account detail change event.

Parameters:
source - the protocol provider service source
eventID - the int ID of the event to dispatch
oldValue - the value that the changed property had before the change occurred.
newValue - the value that the changed property currently has (after the change has occurred).

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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