cosmetics (chainging forgotton tabs to spaces)

cusax-fix
Emil Ivov 20 years ago
parent 5c89a64fc3
commit 26fec9a10f

@ -244,7 +244,7 @@ public synchronized void removeVetoableChangeListener(
* No event is fired if old and new are equal and non-null.
*
* @param propertyName The programmatic name of the property
* that is about to change..
* that is about to change..
* @param oldValue The old value of the property.
* @param newValue The new value of the property.
* @exception PropertyVetoException if the recipient wishes the property
@ -324,7 +324,7 @@ public void fireVetoableChange(PropertyChangeEvent evt) throws
* No event is fired if old and new are equal and non-null.
*
* @param propertyName The programmatic name of the property
* that was changed.
* that was changed.
* @param oldValue The old value of the property.
* @param newValue The new value of the property.
*/

@ -203,7 +203,7 @@ public String getMetaUID()
* <p>
* @param o the Object to be compared.
* @return a negative integer, zero, or a positive integer as this object
* is less than, equal to, or greater than the specified object.
* is less than, equal to, or greater than the specified object.
*
* @throws ClassCastException if the specified object is not
* a MetaContactListImpl

@ -3,16 +3,16 @@
<bundle>
<component class="net.java.sip.communicator.impl.fileaccess.FileAccessServiceImpl">
<provides service="net.java.sip.communicator.service.fileaccess.FileAccessService"/>
<!--
One and only one reference to a configuration service is needed.
If this service is stopped, the file access service is also uninstalled
One and only one reference to a configuration service is needed.
If this service is stopped, the file access service is also uninstalled
-->
<requires service="net.java.sip.communicator.service.configuration.ConfigurationService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService" />
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService" />
</component>
</bundle>

@ -3,20 +3,20 @@
<bundle>
<component class="net.java.sip.communicator.impl.history.HistoryServiceImpl">
<provides service="net.java.sip.communicator.service.history.HistoryService"/>
<requires service="net.java.sip.communicator.service.configuration.ConfigurationService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService" />
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService" />
<requires service="net.java.sip.communicator.service.fileaccess.FileAccessService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setFileAccessService"
unbind-method="unsetFileAccessService" />
filter=""
policy="static"
cardinality="1..1"
bind-method="setFileAccessService"
unbind-method="unsetFileAccessService" />
</component>
</bundle>

@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*
* File based on:
* @(#)JMFInit.java 1.14 03/04/30
* @(#)JMFInit.java 1.14 03/04/30
* Copyright (c) 1996-2002 Sun Microsystems, Inc. All rights reserved.
*/
package net.java.sip.communicator.impl.media.configuration;
@ -89,7 +89,7 @@ private void detectCaptureDevices() {
throw td;
}
catch (Throwable t) {
logger.warn("DirectSound capturer detection failed!", t);
logger.warn("DirectSound capturer detection failed!", t);
}
Class jsauto = null;
@ -123,14 +123,14 @@ private void detectCaptureDevices() {
// "net.java.sip.communicator.impl.media.configuration.SunVideoAuto");
// }
// catch (Exception ee) {
// logger.warn("SunVideoAuto capturer detection failed!", ee);
// logger.warn("SunVideoAuto capturer detection failed!", ee);
// }
// try {
// autoPlus = Class.forName(
// "net.java.sip.communicator.impl.media.configuration.SunVideoPlusAuto");
// }
// catch (Exception ee) {
// logger.warn("SunVideoPlusAuto capturer detection failed!", ee);
// logger.warn("SunVideoPlusAuto capturer detection failed!", ee);
// }
// }
if (auto == null) {
@ -139,7 +139,7 @@ private void detectCaptureDevices() {
"net.java.sip.communicator.impl.media.configuration.V4LAuto");
}
catch (Exception ee) {
logger.warn("V4lAuto capturer detection failed!", ee);
logger.warn("V4lAuto capturer detection failed!", ee);
}
}
try {
@ -245,7 +245,7 @@ private void detectS8DirectAudio() {
catch (Throwable tt) {
}
}
/**
* Runs JMFInit the first time the application is started so that capture
* devices are properly detected and initialized by JMF.

@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*
* File based on:
* @(#)SunVideoPlusAuto.java 1.6 01/03/13
* @(#)SunVideoPlusAuto.java 1.6 01/03/13
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
*/
package net.java.sip.communicator.impl.media.configuration;
@ -30,15 +30,15 @@
import com.sun.media.protocol.sunvideoplus.*;
public class SunVideoPlusAuto {
private static String DEVICE_PREFIX = "/dev/o1k";
private static String PROTOCOL = "sunvideoplus";
private static String LOCATOR_PREFIX = PROTOCOL + "://";
private static boolean DO_PAL = false;
int currentID = -1;
public SunVideoPlusAuto() {
/*
* First remove any old entries
@ -52,7 +52,7 @@ public SunVideoPlusAuto() {
if (devName.equals(PROTOCOL))
CaptureDeviceManager.removeDevice(cdi);
}
int nDevices = 0;
for (int i = 0; i < 10; i++) {
File fl = new File(DEVICE_PREFIX + i);
@ -73,7 +73,7 @@ public SunVideoPlusAuto() {
nDevices++;
}
}
try {
CaptureDeviceManager.commit();
System.err.println("SunVideoPlusAuto: Committed ok");
@ -81,7 +81,7 @@ public SunVideoPlusAuto() {
System.err.println("SunVideoPlusAuto: error committing cdm");
}
}
protected void generalDevice(int id, String signal) {
// Add the general device
javax.media.protocol.DataSource dsource = null;
@ -112,14 +112,14 @@ protected void generalDevice(int id, String signal) {
dsource.disconnect();
}
}
protected void doDevice(int id) {
currentID = id;
FormatSetup fd = new FormatSetup(currentID);
Vector cdiv = fd.getDeviceInfo();
if (cdiv != null && cdiv.size() > 0) {
for (int i = 0; i < cdiv.size(); i++) {
CaptureDeviceInfo cdi =
CaptureDeviceInfo cdi =
(CaptureDeviceInfo) cdiv.elementAt(i);
// At the moment, the name and locator are identical
System.err.println("CaptureDeviceInfo = "
@ -130,29 +130,29 @@ protected void doDevice(int id) {
}
}
}
class FormatSetup {
int id;
boolean fullVideo = false;
boolean anyVideo = true;
String sAnalog, sPort, sVideoFormat, sSize;
Hashtable videoFormats = new Hashtable();
OPICapture opiVidCap = null;
public FormatSetup(int id) {
this.id = id;
opiVidCap = new OPICapture(null);
if (!opiVidCap.connect(id)) {
throw new Error("Unable to connect to device");
}
}
private void addVideoFormat(Format fin) {
String sVideo = sPort + "/" + sVideoFormat + "/"
+ sSize + "/"
@ -160,24 +160,24 @@ private void addVideoFormat(Format fin) {
System.err.println("New format " + sVideo + " = " + fin);
videoFormats.put(sVideo, fin);
}
public void mydispose() {
opiVidCap.disconnect();
System.err.println("Disconnected driver");
}
public void doFormat() {
if (anyVideo) {
doVideoFormats();
}
}
public void doVideoFormats() {
if (!anyVideo) {
// add a dummy format entry
videoFormats.put("off", new VideoFormat(VideoFormat.RGB));
}
sAnalog = "ntsc";
if (DO_PAL)
sAnalog = "pal";
@ -195,7 +195,7 @@ public void doVideoFormats() {
sSize = "cif";
getVideoFormats();
}
private void getVideoFormats() {
sVideoFormat = "h261";
getH261Format();
@ -208,20 +208,20 @@ private void getVideoFormats() {
sVideoFormat = "yuv";
getYUVFormat();
}
private void getRGBFormat() {
if (!opiVidCap.setCompress("RGB"))
return;
/*
* If sizes are wanted, the only valid sizes are
* NTSC
* fcif (640 x 480)
* cif (320 x 240)
* qcif (160 x 120)
* PAL
* fcif (768 x 576)
* cif (384 x 288)
* qcif (192 x 144)
* NTSC
* fcif (640 x 480)
* cif (320 x 240)
* qcif (160 x 120)
* PAL
* fcif (768 x 576)
* cif (384 x 288)
* qcif (192 x 144)
*/
Dimension size = new Dimension(opiVidCap.getWidth(),
opiVidCap.getHeight());
@ -234,20 +234,20 @@ private void getRGBFormat() {
Format.FALSE,
Format.NOT_SPECIFIED));
}
private void getYUVFormat() {
if (!opiVidCap.setCompress("YUV"))
return;
/*
* If sizes are wanted, the only valid sizes are
* NTSC
* fcif (640 x 480)
* cif (320 x 240)
* qcif (160 x 120)
* PAL
* fcif (768 x 576)
* cif (384 x 288)
* qcif (192 x 144)
* NTSC
* fcif (640 x 480)
* cif (320 x 240)
* qcif (160 x 120)
* PAL
* fcif (768 x 576)
* cif (384 x 288)
* qcif (192 x 144)
*
* The capture stream is actually interleaved YVYU format.
* This is defined in the offset values below.
@ -262,18 +262,18 @@ private void getYUVFormat() {
Format.NOT_SPECIFIED,
0, 3, 1));
}
private void getJpegFormat() {
if (!opiVidCap.setCompress("Jpeg"))
return;
/*
* If sizes are wanted, the only valid sizes are
* NTSC
* cif (320 x 240)
* qcif (160 x 120)
* PAL
* cif (384 x 288)
* qcif (192 x 144)
* NTSC
* cif (320 x 240)
* qcif (160 x 120)
* PAL
* cif (384 x 288)
* qcif (192 x 144)
*/
Dimension size = new Dimension(opiVidCap.getWidth(),
opiVidCap.getHeight());
@ -282,14 +282,14 @@ private void getJpegFormat() {
Format.byteArray,
Format.NOT_SPECIFIED));
}
private void getH261Format() {
if (!opiVidCap.setCompress("H261"))
return;
/*
* If sizes are wanted, the only valid sizes are
* cif (352 x 288)
* qcif (176 x 144)
* cif (352 x 288)
* qcif (176 x 144)
*/
Dimension size = new Dimension(opiVidCap.getWidth(),
opiVidCap.getHeight());
@ -298,14 +298,14 @@ private void getH261Format() {
Format.byteArray,
Format.NOT_SPECIFIED));
}
private void getH263Format() {
if (!opiVidCap.setCompress("H263"))
return;
/*
* If sizes are wanted, the only valid sizes are
* cif (352 x 288)
* qcif (176 x 144)
* cif (352 x 288)
* qcif (176 x 144)
*/
Dimension size = new Dimension(opiVidCap.getWidth(),
opiVidCap.getHeight());
@ -314,13 +314,13 @@ private void getH263Format() {
Format.byteArray,
Format.NOT_SPECIFIED));
}
public void issueError(String err) {
System.err.println(err);
Toolkit.getDefaultToolkit().beep();
}
public Enumeration sortedFormats(Hashtable formats) {
Vector sorted = new Vector();
keyloop: for (Enumeration en = formats.keys();
@ -336,16 +336,16 @@ public Enumeration sortedFormats(Hashtable formats) {
}
return sorted.elements();
}
public Vector getDeviceInfo() {
doFormat();
mydispose();
String locatorPrefix = LOCATOR_PREFIX + id;
Vector devices = new Vector();
if (anyVideo) {
for (Enumeration ve = sortedFormats(videoFormats);
ve.hasMoreElements(); ) {
String vKey = (String) ve.nextElement();
@ -362,13 +362,13 @@ public Vector getDeviceInfo() {
}
return devices;
}
}
public static void setPALSignal(boolean pal) {
DO_PAL = pal;
}
public static void main(String [] args) {
if (args.length > 0) {
if (args.length > 1) {

@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*
* File based on:
* @(#)V4LAuto.java 1.2 01/03/13
* @(#)V4LAuto.java 1.2 01/03/13
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
*/
package net.java.sip.communicator.impl.media.configuration;
@ -21,9 +21,9 @@
import com.sun.media.protocol.v4l.V4LDeviceQuery;
public class V4LAuto {
private static final Logger logger = Logger.getLogger(V4LAuto.class);
public V4LAuto() {
Vector devices = (Vector) CaptureDeviceManager.getDeviceList(null).clone();
Enumeration enumeration = devices.elements();
@ -33,13 +33,13 @@ public V4LAuto() {
if (name.startsWith("v4l:"))
CaptureDeviceManager.removeDevice(cdi);
}
autoDetect(0);
// for (int i = 0; i < 10; i++) {
// for (int i = 0; i < 10; i++) {
// autoDetect(i);
// }
}
protected CaptureDeviceInfo autoDetect(int cardNo) {
CaptureDeviceInfo cdi = null;
try {
@ -51,17 +51,17 @@ protected CaptureDeviceInfo autoDetect(int cardNo) {
logger.info("Added device " + cdi);
CaptureDeviceManager.commit();
}
}
} catch (Throwable t) {
logger.error("Could not add device!", t);
if (t instanceof ThreadDeath)
throw (ThreadDeath)t;
}
return cdi;
}
public static void main(String [] args) {
V4LAuto a = new V4LAuto();
System.exit(0);

@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*
* File based on:
* @(#)VFWAuto.java 1.2 01/03/13
* @(#)VFWAuto.java 1.2 01/03/13
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
*/
package net.java.sip.communicator.impl.media.configuration;
@ -20,18 +20,18 @@
import com.sun.media.util.WindowUtil;
public class VFWAuto {
public VFWAuto() {
Vector devices = (Vector) CaptureDeviceManager.getDeviceList(null).clone();
Enumeration enumeration = devices.elements();
while (enumeration.hasMoreElements()) {
CaptureDeviceInfo cdi = (CaptureDeviceInfo) enumeration.nextElement();
String name = cdi.getName();
if (name.startsWith("vfw:"))
CaptureDeviceManager.removeDevice(cdi);
}
int nDevices = 0;
// for (int i = 0; i < 10; i++) {
// String name = VFWCapture.capGetDriverDescriptionName(i);
@ -43,7 +43,7 @@ public VFWAuto() {
// }
// }
}
public static void main(String [] args) {
VFWAuto a = new VFWAuto();
System.exit(0);

@ -4,14 +4,14 @@
<component class="net.java.sip.communicator.impl.media.MediaServiceImpl">
<provides service="net.java.sip.communicator.service.media.MediaService"/>
<requires
service="net.java.sip.communicator.service.configuration.ConfigurationService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService"
/>
<requires
service="net.java.sip.communicator.service.configuration.ConfigurationService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService"
/>
</component>
</bundle>

@ -3,27 +3,27 @@
<bundle>
<component class="net.java.sip.communicator.impl.msghistory.MessageHistoryServiceImpl">
<provides service="net.java.sip.communicator.service.msghistory.MessageHistoryService"/>
<requires service="net.java.sip.communicator.service.configuration.ConfigurationService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService" />
<requires service="net.java.sip.communicator.service.history.HistoryService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setHistoryService"
unbind-method="unsetHistoryService" />
<requires service="net.java.sip.communicator.service.protocol.ProtocolProviderService"
filter=""
cardinality="1..n"
policy="dynamic"
bind-method="addProtocolProvider"
unbind-method="removeProtocolProvider" />
filter=""
policy="static"
cardinality="1..1"
bind-method="setConfigurationService"
unbind-method="unsetConfigurationService" />
<requires service="net.java.sip.communicator.service.history.HistoryService"
filter=""
policy="static"
cardinality="1..1"
bind-method="setHistoryService"
unbind-method="unsetHistoryService" />
<requires service="net.java.sip.communicator.service.protocol.ProtocolProviderService"
filter=""
cardinality="1..n"
policy="dynamic"
bind-method="addProtocolProvider"
unbind-method="removeProtocolProvider" />
</component>
</bundle>

@ -68,7 +68,7 @@ public int getPreference()
*
* @param o the Object to be compared.
* @return a negative integer, zero, or a positive integer as this object
* is less than, equal to, or greater than the specified object.
* is less than, equal to, or greater than the specified object.
*
* @throws ClassCastException if the specified object's type is not an
* instance or a descendant of AddressPreference.

@ -11,7 +11,7 @@
*
* ApplicationThread:
* sendMessage()
* wait();
* wait();
*
* StackThread:
* processMessage/Timeout()

@ -534,7 +534,7 @@ public InetSocketAddress getPublicAddressFor(int port)
/**
* This method gets called when a bound property is changed.
* @param evt A PropertyChangeEvent object describing the event source
* and the property that has changed.
* and the property that has changed.
*/
public void propertyChange(PropertyChangeEvent evt)
{
@ -555,8 +555,8 @@ public void propertyChange(PropertyChangeEvent evt)
* change. In case we don't like the new value we throw a
* PropertyVetoException to prevent the actual change from happening.
*
* @param evt a <tt>PropertyChangeEvent</tt> object describing the
* event source and the property that will change.
* @param evt a <tt>PropertyChangeEvent</tt> object describing the
* event source and the property that will change.
* @exception PropertyVetoException if we don't want the change to happen.
*/
public void vetoableChange(PropertyChangeEvent evt) throws

@ -174,20 +174,21 @@ public void sendInstantMessage(Contact to, Message message)
{
assertConnected();
if(to.getPresenceStatus().isOnline())
{
ImConversation imConversation =
icqProvider.getAimConnection().getIcbmService().getImConversation(
new Screenname(to.getAddress()));
if (to.getPresenceStatus().isOnline())
{
ImConversation imConversation =
icqProvider.getAimConnection().getIcbmService().
getImConversation(
new Screenname(to.getAddress()));
//do not add the conversation listener in here. we'll add it
//inside the icbm listener
//do not add the conversation listener in here. we'll add it
//inside the icbm listener
imConversation.sendMessage(new SimpleMessage(message.getContent()));
}
imConversation.sendMessage(new SimpleMessage(message.getContent()));
}
else
icqProvider.getAimConnection().getIcbmService().
sendSnac(new SendOfflineIm(to.getAddress(), message.getContent()));
icqProvider.getAimConnection().getIcbmService().
sendSnac(new SendOfflineIm(to.getAddress(), message.getContent()));
//temporarily and uglity fire the sent event here.
/** @todo move elsewhaere */
@ -199,93 +200,99 @@ public void sendInstantMessage(Contact to, Message message)
}
/**
* Retreives all offline Messages If any.
* Then delete them from the server.
*
* @param listener the <tt>MessageListener</tt> receiving the messages.
*/
private static int offlineMessageRequestID = 0;
private void retreiveOfflineMessages()
{
OfflineMsgRequest offlineMsgsReq = new OfflineMsgRequest();
int requestID = offlineMessageRequestID++;
SnacCommand cmd = new ToIcqCmd(
Long.parseLong(
icqProvider.getAimSession().getScreenname().getNormal()),
offlineMsgsReq.getType(),
requestID,
offlineMsgsReq);
OfflineMessagesRetriever responseRetriever =
new OfflineMessagesRetriever(requestID);
SnacRequest snReq = new SnacRequest(cmd, responseRetriever);
icqProvider.getAimConnection().getInfoService().sendSnacRequest(snReq);
}
private class OfflineMessagesRetriever
extends SnacRequestAdapter
{
private int requestID;
public OfflineMessagesRetriever(int requestID)
{
this.requestID = requestID;
}
public void handleResponse(SnacResponseEvent e)
{
SnacCommand snac = e.getSnacCommand();
logger.debug("Received a response to our offline message request: " + snac);
if(snac instanceof OfflineMsgCmd)
{
OfflineMsgCmd offlineMsgCmd = (OfflineMsgCmd)snac;
if(!offlineMsgCmd.isEndOfOfflineMessages())
{
String contactUIN = String.valueOf(offlineMsgCmd.getUin());
Contact sourceContact =
opSetPersPresence.findContactByID(contactUIN);
if(sourceContact == null)
{
logger.debug("received a message from a unknown contact: "
+ contactUIN);
//create the volatile contact
sourceContact = opSetPersPresence
.createVolatileContact(new Screenname(contactUIN));
}
MessageReceivedEvent msgReceivedEvt
= new MessageReceivedEvent(
createMessage(offlineMsgCmd.getContents()),
sourceContact,
offlineMsgCmd.getDate());
logger.debug("fire msg received for : " + offlineMsgCmd.getContents());
fireMessageEvent(msgReceivedEvt);
}
else
{
logger.debug("send ack to delete offline messages");
OfflineMsgDeleteRequest offlineMsgDeleteReq = new OfflineMsgDeleteRequest();
SnacCommand cmd = new ToIcqCmd(
Long.parseLong(
icqProvider.getAimSession().getScreenname().getNormal()),
offlineMsgDeleteReq.getType(),
requestID,
offlineMsgDeleteReq);
icqProvider.getAimConnection().getInfoService().sendSnac(cmd);
}
}
else
if( snac instanceof SnacError)
{
logger.debug("error receiving offline messages");
}
}
}
/**
* Retreives all offline Messages If any.
* Then delete them from the server.
*
* @param listener the <tt>MessageListener</tt> receiving the messages.
*/
private static int offlineMessageRequestID = 0;
private void retreiveOfflineMessages()
{
OfflineMsgRequest offlineMsgsReq = new OfflineMsgRequest();
int requestID = offlineMessageRequestID++;
SnacCommand cmd = new ToIcqCmd(
Long.parseLong(
icqProvider.getAimSession().getScreenname().getNormal()),
offlineMsgsReq.getType(),
requestID,
offlineMsgsReq);
OfflineMessagesRetriever responseRetriever =
new OfflineMessagesRetriever(requestID);
SnacRequest snReq = new SnacRequest(cmd, responseRetriever);
icqProvider.getAimConnection().getInfoService().sendSnacRequest(snReq);
}
private class OfflineMessagesRetriever
extends SnacRequestAdapter
{
private int requestID;
public OfflineMessagesRetriever(int requestID)
{
this.requestID = requestID;
}
public void handleResponse(SnacResponseEvent e)
{
SnacCommand snac = e.getSnacCommand();
logger.debug("Received a response to our offline message request: " +
snac);
if (snac instanceof OfflineMsgCmd)
{
OfflineMsgCmd offlineMsgCmd = (OfflineMsgCmd) snac;
if (!offlineMsgCmd.isEndOfOfflineMessages())
{
String contactUIN = String.valueOf(offlineMsgCmd.getUin());
Contact sourceContact =
opSetPersPresence.findContactByID(contactUIN);
if (sourceContact == null)
{
logger.debug(
"received a message from a unknown contact: "
+ contactUIN);
//create the volatile contact
sourceContact = opSetPersPresence
.createVolatileContact(new Screenname(contactUIN));
}
MessageReceivedEvent msgReceivedEvt
= new MessageReceivedEvent(
createMessage(offlineMsgCmd.getContents()),
sourceContact,
offlineMsgCmd.getDate());
logger.debug("fire msg received for : " +
offlineMsgCmd.getContents());
fireMessageEvent(msgReceivedEvt);
}
else
{
logger.debug("send ack to delete offline messages");
OfflineMsgDeleteRequest offlineMsgDeleteReq = new
OfflineMsgDeleteRequest();
SnacCommand cmd = new ToIcqCmd(
Long.parseLong(
icqProvider.getAimSession().getScreenname().
getNormal()),
offlineMsgDeleteReq.getType(),
requestID,
offlineMsgDeleteReq);
icqProvider.getAimConnection().getInfoService().sendSnac(
cmd);
}
}
else
if (snac instanceof SnacError)
{
logger.debug("error receiving offline messages");
}
}
}
/**
@ -335,7 +342,7 @@ public void registrationStateChanged(RegistrationStateChangeEvent evt)
icqProvider.getSupportedOperationSets()
.get(OperationSetPersistentPresence.class.getName());
retreiveOfflineMessages();
retreiveOfflineMessages();
}
}
}

@ -61,7 +61,7 @@ public class PropertyChangeEvent
*
* @param source The bean that fired the event.
* @param propertyName The programmatic name of the property
* that was changed.
* that was changed.
* @param oldValue The old value of the property.
* @param newValue The new value of the property.
*/
@ -89,7 +89,7 @@ public String getPropertyName()
* Sets the new value for the property, expressed as an Object.
*
* @return The new value for the property, expressed as an Object.
* May be null if multiple properties have changed.
* May be null if multiple properties have changed.
*/
public Object getNewValue()
{

@ -22,7 +22,7 @@ public interface PropertyChangeListener extends java.util.EventListener
/**
* This method gets called when a bound property is changed.
* @param evt A PropertyChangeEvent object describing the event source
* and the property that has changed.
* and the property that has changed.
*/
void propertyChange(PropertyChangeEvent evt);

@ -37,7 +37,7 @@ public interface VetoableChangeListener
* an empty implementation of the method.
*
* @param evt a <tt>PropertyChangeEvent</tt> object describing the
* event source and the property that has changed.
* event source and the property that has changed.
* @exception PropertyVetoException if the recipient wishes the property
* change to be rolled back.
*/

@ -74,7 +74,7 @@ public HistoryRecord(String[] propertyNames, String[] propertyValues,
// TODO: Validate: Assert.assertNonNull(timestamp, "The timestamp should be non-null.");
// TODO: Validate Assert.assertTrue(propertyNames.length == propertyValues.length,
// "The length of the property names and property values should be equal.");
//"The length of the property names and property values should be equal.");
this.propertyNames = propertyNames;
this.propertyValues = propertyValues;

@ -29,7 +29,7 @@ public interface NetworkAddressManagerService
* if stun is enabled - queries STUN server and saves returned address
* Scans addresses for all network interfaces<br>
* if an address that matches the one returned by the STUN server is found - it is returned<br>
* else<br>
* else<br>
* if a non link local (starting with 172.16-31, 10, or 192.168) address is found it is returned<br>
* else<br>
* if a link local address is found it is returned<br>

@ -159,7 +159,7 @@ public boolean isEagerToCommunicate()
*
* @param o the Object to be compared.
* @return a negative integer, zero, or a positive integer as this object
* is less than, equal to, or greater than the specified object.
* is less than, equal to, or greater than the specified object.
*
* @throws ClassCastException if the specified object's type prevents it
* from being compared to this Object.

@ -193,7 +193,7 @@ public boolean isResolved()
* Makes the contact resolved or unresolved.
*
* @param resolved true to make the contact resolved; false to
* make it unresolved
* make it unresolved
*/
public void setResolved(boolean resolved)
{

@ -410,7 +410,7 @@ public boolean isResolved()
* Makes the group resolved or unresolved.
*
* @param resolved true to make the group resolved; false to
* make it unresolved
* make it unresolved
*/
public void setResolved(boolean resolved)
{

@ -187,7 +187,7 @@ public void testPreferredNetAddressProperty() throws Exception
public void testBadIpAddressNoIPversionSpecified() throws Exception
{
initProperties();
// set th original properties
//set the original properties
//Integer valuePropertyPreferedIPVersion;
String valuePropertyStunName="stun01.sipphone.com";
Integer valuePropertyStunPort=new Integer(3478);
@ -211,7 +211,7 @@ public void testBadIpAddressNoIPversionSpecified() throws Exception
public void testBadIpAddressIPv4Specified() throws Exception
{
initProperties();
// set th original properties
//set th original properties
//Integer valuePropertyPreferedIPVersion;
String valuePropertyStunName="stun01.sipphone.com";
Integer valuePropertyStunPort=new Integer(3478);
@ -234,7 +234,7 @@ public void testBadIpAddressIPv4Specified() throws Exception
public void testBadStun() throws Exception
{
initProperties();
// set th original properties
//set the original properties
//Integer valuePropertyPreferedIPVersion;
String valuePropertyStunName="stun01.sipphone.com";
Integer valuePropertyStunPort=new Integer(3478);
@ -292,7 +292,7 @@ public void testBadStun() throws Exception
// test must crash if the localHost is an IPv6 Address
if(serviceAdress instanceof Inet4Address)
assertTrue(foundInetAddr( serviceAdress,
assertTrue(foundInetAddr(serviceAdress,
propertyIpV6Pref.booleanValue()));
else
assertTrue(false);
@ -383,7 +383,7 @@ public void testBadStun() throws Exception
assertTrue(false);
}
catch (Exception e) { }
catch (Exception e) {}
}*/
@ -435,8 +435,8 @@ public void testBadStun() throws Exception
*
* @param serviceAdress : address to check
* @param ipv6version : if true verifie if this address is an ipv6 belong
* to the local interface. if false, et do the same thing for
* IPv4 Addresses
* to the local interface. if false, et do the same thing for
* IPv4 Addresses
* @return : true if it is an ipv4 address and if this addres belong to the
* local interface
*/
@ -454,7 +454,7 @@ public void testBadStun() throws Exception
InetAddress addr = (InetAddress) addrs.nextElement();
if (!addr.isLoopbackAddress()
&& serviceAdress.equals(addr)
&& ((!ipv6version && addr.getClass().equals(Inet4Address.class)
&& ((!ipv6version && addr.getClass().equals(Inet4Address.class)
||
(ipv6version && addr.getClass().equals(Inet6Address.class)))))
return true;

@ -81,17 +81,17 @@ public void start(BundleContext bundleContext) throws Exception
initializeTestedContactList();
//As Tested account is not registered here we send him a message.
//Message will be delivered offline
//As Tested account is not registered here we send him a message.
//Message will be delivered offline
//receive test is in TestOperationSetBasicInstantMessaging.testReceiveOfflineMessages()
// String offlineMsgBody = "This is a Test Message. Supposed to be delivered as offline message!";
// IcqSlickFixture.offlineMsgCollector =
// new IcqSlickFixture.OfflineMsgCollector();
// IcqSlickFixture.offlineMsgCollector.setMessageText(offlineMsgBody);
// IcqSlickFixture.testerAgent.sendOfflineMessage(
// System.getProperty(TESTED_IMPL_ACCOUNT_ID_PROP_NAME, null),
// IcqSlickFixture.testerAgent.sendOfflineMessage(
// System.getProperty(TESTED_IMPL_ACCOUNT_ID_PROP_NAME, null),
// offlineMsgBody
// );
// );
//First test account installation so that the service that has been
//installed by it gets tested by the rest of the tests.

Loading…
Cancel
Save