pl.mn.communicator
Class RemoteStatus

java.lang.Object
  extended by pl.mn.communicator.AbstractStatus
      extended by pl.mn.communicator.RemoteStatus
All Implemented Interfaces:
IRemoteStatus, IStatus

public class RemoteStatus
extends AbstractStatus
implements IRemoteStatus

The default implementation of IRemoteStatus

Created on 2004-12-21

Version:
$Id: RemoteStatus.java,v 1.1 2005/11/05 23:34:52 winnetou25 Exp $
Author:
Mateusz Szczap

Constructor Summary
RemoteStatus(StatusType statusType)
           
RemoteStatus(StatusType statusType, java.lang.String description)
           
RemoteStatus(StatusType statusType, java.lang.String description, java.util.Date returnDate)
           
 
Method Summary
 boolean areWeInRemoteUserBuddyList()
          Flag indicating whether or not we are in the remote user's buddy list.
 int getDescriptionSize()
          The size of the user's descrption.
 int getGGVersion()
          Gets Gadu-Gadu version of the client that the user uses.
 int getImageSize()
          Gets max image size that the user accepts.
 byte[] getRemoteIP()
          Gets remoteIP of the user.
 int getRemotePort()
          Gets remotePort of the user.
 boolean isBlocked()
          Flag indicating the Gadu-Gadu user blocked us.
 boolean isUserBehindFirewall()
          Flag indicating that remote user is behing firewall.
 void setAreWeInRemoteUserBuddyList(boolean areWeInRemoteUserBuddyList)
           
 void setBlocked(boolean blocked)
           
 void setDescriptionSize(int descriptionSize)
           
 void setGGVersion(int version)
           
 void setImageSize(int imageSize)
           
 void setRemoteIP(byte[] remoteIP)
           
 void setRemotePort(int remotePort)
           
 void setSupportsDirectCommunication(boolean supportsDirectCommunication)
           
 void setSupportsVoiceCommunication(boolean supportsVoiceCommunication)
           
 void setUserBehindFirewall(boolean userBehingFirewall)
           
 boolean supportsDirectCommunication()
          Flag indicating whether the user supports direct communication.
 boolean supportsVoiceCommunication()
          Flag indicating whether or not user supports voice communication.
 
Methods inherited from class pl.mn.communicator.AbstractStatus
getDescription, getReturnDate, getStatusType, isDescriptionSet, isReturnDateSet, setDescription, setReturnDate, setStatusType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pl.mn.communicator.IStatus
getDescription, getReturnDate, getStatusType, isDescriptionSet, isReturnDateSet, setDescription, setReturnDate, setStatusType
 

Constructor Detail

RemoteStatus

public RemoteStatus(StatusType statusType)

RemoteStatus

public RemoteStatus(StatusType statusType,
                    java.lang.String description)

RemoteStatus

public RemoteStatus(StatusType statusType,
                    java.lang.String description,
                    java.util.Date returnDate)
Method Detail

setBlocked

public void setBlocked(boolean blocked)

isBlocked

public boolean isBlocked()
Description copied from interface: IRemoteStatus
Flag indicating the Gadu-Gadu user blocked us.

Specified by:
isBlocked in interface IRemoteStatus
Returns:
boolean indicating that user blocked us.
See Also:
IRemoteStatus.isBlocked()

getRemoteIP

public byte[] getRemoteIP()
Description copied from interface: IRemoteStatus
Gets remoteIP of the user. It might return -1 if there is no information about remote ip of the user.

Specified by:
getRemoteIP in interface IRemoteStatus
Returns:
the IP address of the user or -1 if there is no information.
See Also:
IRemoteStatus.getRemoteIP()

setRemoteIP

public void setRemoteIP(byte[] remoteIP)

getRemotePort

public int getRemotePort()
Description copied from interface: IRemoteStatus
Gets remotePort of the user. It might return -1 if there is not information about remote port of the user.

Specified by:
getRemotePort in interface IRemoteStatus
Returns:
the remote port of the user or -1 if there is no information.
See Also:
IRemoteStatus.getRemotePort()

setRemotePort

public void setRemotePort(int remotePort)

getGGVersion

public int getGGVersion()
Description copied from interface: IRemoteStatus
Gets Gadu-Gadu version of the client that the user uses. It might return -1 if there is not information about client's version.

Specified by:
getGGVersion in interface IRemoteStatus
Returns:
the Gadu-Gadu client version or -1 if there is no information.
See Also:
IRemoteStatus.getGGVersion()

setGGVersion

public void setGGVersion(int version)

getImageSize

public int getImageSize()
Description copied from interface: IRemoteStatus
Gets max image size that the user accepts. It might return -1 if the user does not accept images at all.

Specified by:
getImageSize in interface IRemoteStatus
Returns:
max image size that user accepts.
See Also:
IRemoteStatus.getImageSize()

setImageSize

public void setImageSize(int imageSize)

supportsVoiceCommunication

public boolean supportsVoiceCommunication()
Description copied from interface: IRemoteStatus
Flag indicating whether or not user supports voice communication.

Specified by:
supportsVoiceCommunication in interface IRemoteStatus
Returns:
whether or not the user supports voice communication.

setSupportsVoiceCommunication

public void setSupportsVoiceCommunication(boolean supportsVoiceCommunication)

supportsDirectCommunication

public boolean supportsDirectCommunication()
Description copied from interface: IRemoteStatus
Flag indicating whether the user supports direct communication.

Specified by:
supportsDirectCommunication in interface IRemoteStatus
Returns:
whether or not the user support direct communication.
See Also:
IRemoteStatus.supportsDirectCommunication()

setSupportsDirectCommunication

public void setSupportsDirectCommunication(boolean supportsDirectCommunication)

areWeInRemoteUserBuddyList

public boolean areWeInRemoteUserBuddyList()
Description copied from interface: IRemoteStatus
Flag indicating whether or not we are in the remote user's buddy list.

Specified by:
areWeInRemoteUserBuddyList in interface IRemoteStatus
Returns:
whether or not we are in remote user's buddy list.
See Also:
IRemoteStatus.areWeInRemoteUserBuddyList()

setAreWeInRemoteUserBuddyList

public void setAreWeInRemoteUserBuddyList(boolean areWeInRemoteUserBuddyList)

getDescriptionSize

public int getDescriptionSize()
Description copied from interface: IRemoteStatus
The size of the user's descrption. it might return -1 if there is no information about the description or description is not set.

Specified by:
getDescriptionSize in interface IRemoteStatus
Returns:
the size of the user's description or -1 if there is no information.
See Also:
IStatus.getDescription()

setDescriptionSize

public void setDescriptionSize(int descriptionSize)

isUserBehindFirewall

public boolean isUserBehindFirewall()
Description copied from interface: IRemoteStatus
Flag indicating that remote user is behing firewall.

Specified by:
isUserBehindFirewall in interface IRemoteStatus
Returns:
whether or not the remote user is behind firewall.
See Also:
IRemoteStatus.isUserBehindFirewall()

setUserBehindFirewall

public void setUserBehindFirewall(boolean userBehingFirewall)


Copyright 2004-2004-2005 SourceForge.net. All Rights Reserved.