org.xnap.plugin.opennap.user
Class OpenNapGlobalUser

java.lang.Object
  extended by org.xnap.peer.AbstractHotlistItem
      extended by org.xnap.plugin.opennap.user.OpenNapGlobalUser
All Implemented Interfaces:
HotlistItem

public class OpenNapGlobalUser
extends AbstractHotlistItem


Field Summary
static int TRANSFER_DEFAULT
           
static int TRANSFER_NEVER
           
static int TRANSFER_UNLIMITED
           
 
Constructor Summary
OpenNapGlobalUser(GlobalOpenNapUserData data)
           
OpenNapGlobalUser(java.lang.String name)
           
 
Method Summary
 void add(OpenNapServer server)
           
 void downloadStarted()
           
 void downloadStopped()
           
 javax.swing.Action[] getActions()
          Returns the actions that can performed by the item.
 java.lang.String getCategory()
          Returns the category of the item.
 java.lang.String getComment()
          Returns the user defined comment of the item.
 OpenNapServer getConnectedServer(OpenNapServer preferred)
           
 int getDownloadCount()
           
 int getMaxDownloads()
          Returns the number of allowed donwload from the peers represented by this item.
 int getMaxUploads()
          Returns the number of allowed uploads to the peers represented by this item.
 java.lang.String getName()
          Returns the name of the item.
 int getQueuedCount()
           
 OpenNapServer[] getServers()
           
 java.lang.String getStatus()
          Returns the status of the peers represented by this item.
 int getUploadCount()
           
 boolean isChatIgnored()
          Returns true if chat messages from the peers represented by this item are ignored.
 boolean isInHotlist()
          Returns true, if the user was added to the HotlistManager.
 boolean isMinimumSharesMessageSent()
           
 void lookup()
           
 void remove(OpenNapServer server)
           
 void setCategory(java.lang.String newValue)
          Sets the category to newValue.
 void setChatIgnored(boolean newValue)
          Set newValue to true to ignore chat messages from the peers represented by this item.
 void setComment(java.lang.String newValue)
          Sets the comment to newValue.
 void setInHotlist(boolean newValue)
           
 void setMaxDownloads(int newValue)
          Sets the maximum allowed downloads from the peers represented by this item to newValue.
 void setMaxUploads(int newValue)
          Sets the maximum allowed uploads to the peers represented by this item to newValue.
 void setMinimumSharesMessageSent(boolean sent)
           
 void setQueued(boolean isQueued)
           
 void setStatus(java.lang.String newValue)
           
 void uploadStarted()
           
 void uploadStopped()
           
 
Methods inherited from class org.xnap.peer.AbstractHotlistItem
addStateListener, getIcon, removeStateListener, stateChanged, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRANSFER_DEFAULT

public static int TRANSFER_DEFAULT

TRANSFER_NEVER

public static int TRANSFER_NEVER

TRANSFER_UNLIMITED

public static int TRANSFER_UNLIMITED
Constructor Detail

OpenNapGlobalUser

public OpenNapGlobalUser(java.lang.String name)

OpenNapGlobalUser

public OpenNapGlobalUser(GlobalOpenNapUserData data)
See Also:
OpenNapUserManager
Method Detail

add

public void add(OpenNapServer server)

downloadStarted

public void downloadStarted()

downloadStopped

public void downloadStopped()

getActions

public javax.swing.Action[] getActions()
Description copied from interface: HotlistItem
Returns the actions that can performed by the item.


getCategory

public java.lang.String getCategory()
Description copied from interface: HotlistItem
Returns the category of the item.


getComment

public java.lang.String getComment()
Description copied from interface: HotlistItem
Returns the user defined comment of the item.


getConnectedServer

public OpenNapServer getConnectedServer(OpenNapServer preferred)

getDownloadCount

public int getDownloadCount()

getMaxDownloads

public int getMaxDownloads()
Returns the number of allowed donwload from the peers represented by this item.


getMaxUploads

public int getMaxUploads()
Returns the number of allowed uploads to the peers represented by this item.


getName

public java.lang.String getName()
Description copied from interface: HotlistItem
Returns the name of the item.


getQueuedCount

public int getQueuedCount()

getServers

public OpenNapServer[] getServers()

getStatus

public java.lang.String getStatus()
Description copied from interface: HotlistItem
Returns the status of the peers represented by this item. See the getStatus() method.


getUploadCount

public int getUploadCount()

isChatIgnored

public boolean isChatIgnored()
Returns true if chat messages from the peers represented by this item are ignored.


isMinimumSharesMessageSent

public boolean isMinimumSharesMessageSent()

isInHotlist

public boolean isInHotlist()
Returns true, if the user was added to the HotlistManager.


lookup

public void lookup()

setMinimumSharesMessageSent

public void setMinimumSharesMessageSent(boolean sent)

setChatIgnored

public void setChatIgnored(boolean newValue)
Set newValue to true to ignore chat messages from the peers represented by this item.


setCategory

public void setCategory(java.lang.String newValue)
Sets the category to newValue.


setComment

public void setComment(java.lang.String newValue)
Sets the comment to newValue.


setMaxDownloads

public void setMaxDownloads(int newValue)
Sets the maximum allowed downloads from the peers represented by this item to newValue.


setMaxUploads

public void setMaxUploads(int newValue)
Sets the maximum allowed uploads to the peers represented by this item to newValue.


setQueued

public void setQueued(boolean isQueued)

setStatus

public void setStatus(java.lang.String newValue)

remove

public void remove(OpenNapServer server)

setInHotlist

public void setInHotlist(boolean newValue)

uploadStarted

public void uploadStarted()

uploadStopped

public void uploadStopped()


Copyright © 2001-2005 XNap Team. All Rights Reserved.