org.xnap.plugin.opennap.util
Class OpenNapPreferences

java.lang.Object
  extended by org.xnap.util.AbstractPluginPreferences
      extended by org.xnap.plugin.opennap.util.OpenNapPreferences
All Implemented Interfaces:
PreferencesProvider, TablePreferencesProvider

public class OpenNapPreferences
extends AbstractPluginPreferences

Provides the preferences for the OpenNapPlugin. This class should only be instanziated once. Use OpenNapPlugin.getPreferences() to access that instance.

If you hack around, make sure all pathes are returned with a trailing file separator and all values are initialized to something other than null.

Most important, keep all preferences sorted alphabetically everywhere.


Field Summary
static int VERSION
           
 
Fields inherited from class org.xnap.util.AbstractPluginPreferences
logger, prefs, VERSION_KEY
 
Constructor Summary
OpenNapPreferences()
           
 
Method Summary
 void convert(int oldVersion)
          Convert the preferences from oldVersion.
 boolean getAutoFetchNapigator()
           
 int getAutoFetchNapigatorInterval()
           
 boolean getAutoLoadNapigator()
           
 int getAutoResumeConnectedCount()
           
 boolean getAutoResumeDownloads()
           
 boolean getAutoSaveNapigator()
           
 java.lang.String getClientInfo()
           
 boolean getCustomizeClientInfo()
           
 java.lang.String getFakeNetworks()
           
 java.lang.String getFilterNetworks()
           
 boolean getFirewalled()
           
 boolean getLimitSearchResultsPerServer()
           
 boolean getLimitSearchServers()
           
 boolean getLimitSharesPerServer()
           
 java.lang.String getLocalPortRange()
           
 int getMaxAutoconnectServers()
           
 int getMaxLoginsPerNetwork()
           
 int getMaxPacketsPerTick()
           
 int getMaxSearchResultsPerServer()
           
 int getMaxSearchServers()
           
 int getMaxSharesPerServer()
           
 boolean getMultiSourceDownloading()
           
 java.lang.String getNapigatorFile()
           
 java.lang.String getNapigatorURL()
           
 boolean getRemoveFailedServers()
           
 boolean getSeenStartupWizard()
           
 boolean getSendWholeRepository()
           
 java.lang.String getServerFile()
           
 long getTickLength()
           
 boolean getUseAutoconnector()
           
 boolean getUseUTF8Encoding()
           
 boolean getWhoisQueryOnTransfer()
           
 void setAutoFetchNapigator(boolean newValue)
           
 void setAutoFetchNapigatorInterval(int newValue)
           
 void setAutoLoadNapigator(boolean newValue)
           
 void setAutoResumeConnectedCount(int newValue)
           
 void setAutoResumeDownloads(boolean newValue)
           
 void setAutoSaveNapigator(boolean newValue)
           
 void setClientInfo(java.lang.String newValue)
           
 void setCustomizeClientInfo(boolean newValue)
           
 void setFirewalled(boolean newValue)
           
 void setLimitSearchResultsPerServer(boolean newValue)
           
 void setLimitSearchServers(boolean newValue)
           
 void setLimitSharesPerServer(boolean newValue)
           
 void setLocalPortRange(java.lang.String newValue)
           
 void setMaxAutoconnectServers(int newValue)
           
 void setMaxSearchResultsPerServer(int newValue)
           
 void setMaxSearchServers(int newValue)
           
 void setMaxSharesPerServer(int newValue)
           
 void setMultiSourceDownloading(boolean newValue)
           
 void setNapigatorURL(java.lang.String url)
           
 void setRemoveFailedServers(boolean newValue)
           
 void setSeenStartupWizard(boolean newValue)
           
 void setSendWholeRepository(boolean newValue)
           
 void setUseAutoconnector(boolean newValue)
           
 void setUseUTF8Encoding(boolean newValue)
           
 void setWhoisQueryOnTransfer(boolean newValue)
           
 
Methods inherited from class org.xnap.util.AbstractPluginPreferences
addPropertyChangeListener, addPropertyChangeListener, addTableListener, get, getArray, getBoolean, getColor, getFont, getInt, getIntArray, getKeyStroke, getLong, getNotShowDialog, getTableColumns, getTableColumnWidths, getTableMaintainSortOrder, getTableSortedColumn, removeProperty, removePropertyChangeListener, removePropertyChangeListener, renameProperty, set, set, set, set, set, set, set, set, set, setDefault, setDefault, setNotShowDialog, setTableColumns, setTableColumnWidths, setTableMaintainSortOrder, setTableSortedColumn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final int VERSION
See Also:
Constant Field Values
Constructor Detail

OpenNapPreferences

public OpenNapPreferences()
Method Detail

convert

public void convert(int oldVersion)
Description copied from class: AbstractPluginPreferences
Convert the preferences from oldVersion. The default implementation does nothing. Sub classes should overwrite this method.

Overrides:
convert in class AbstractPluginPreferences

getAutoFetchNapigator

public boolean getAutoFetchNapigator()

setAutoFetchNapigator

public void setAutoFetchNapigator(boolean newValue)

getAutoFetchNapigatorInterval

public int getAutoFetchNapigatorInterval()

setAutoFetchNapigatorInterval

public void setAutoFetchNapigatorInterval(int newValue)

getAutoLoadNapigator

public boolean getAutoLoadNapigator()

setAutoLoadNapigator

public void setAutoLoadNapigator(boolean newValue)

getAutoResumeDownloads

public boolean getAutoResumeDownloads()

setAutoResumeDownloads

public void setAutoResumeDownloads(boolean newValue)

getAutoResumeConnectedCount

public int getAutoResumeConnectedCount()

setAutoResumeConnectedCount

public void setAutoResumeConnectedCount(int newValue)

getAutoSaveNapigator

public boolean getAutoSaveNapigator()

setAutoSaveNapigator

public void setAutoSaveNapigator(boolean newValue)

getClientInfo

public java.lang.String getClientInfo()

setClientInfo

public void setClientInfo(java.lang.String newValue)

getCustomizeClientInfo

public boolean getCustomizeClientInfo()

setCustomizeClientInfo

public void setCustomizeClientInfo(boolean newValue)

getFakeNetworks

public java.lang.String getFakeNetworks()

getFilterNetworks

public java.lang.String getFilterNetworks()

getFirewalled

public boolean getFirewalled()

setFirewalled

public void setFirewalled(boolean newValue)

getLimitSearchServers

public boolean getLimitSearchServers()

setLimitSearchServers

public void setLimitSearchServers(boolean newValue)

getLimitSearchResultsPerServer

public boolean getLimitSearchResultsPerServer()

setLimitSearchResultsPerServer

public void setLimitSearchResultsPerServer(boolean newValue)

getLimitSharesPerServer

public boolean getLimitSharesPerServer()

setLimitSharesPerServer

public void setLimitSharesPerServer(boolean newValue)

getLocalPortRange

public java.lang.String getLocalPortRange()

setLocalPortRange

public void setLocalPortRange(java.lang.String newValue)

getMaxAutoconnectServers

public int getMaxAutoconnectServers()

setMaxAutoconnectServers

public void setMaxAutoconnectServers(int newValue)

getMaxLoginsPerNetwork

public int getMaxLoginsPerNetwork()

getMaxPacketsPerTick

public int getMaxPacketsPerTick()

getMaxSearchResultsPerServer

public int getMaxSearchResultsPerServer()

setMaxSearchResultsPerServer

public void setMaxSearchResultsPerServer(int newValue)

getMaxSearchServers

public int getMaxSearchServers()

setMaxSearchServers

public void setMaxSearchServers(int newValue)

getMaxSharesPerServer

public int getMaxSharesPerServer()

setMaxSharesPerServer

public void setMaxSharesPerServer(int newValue)

getMultiSourceDownloading

public boolean getMultiSourceDownloading()

setMultiSourceDownloading

public void setMultiSourceDownloading(boolean newValue)

getNapigatorFile

public java.lang.String getNapigatorFile()

getNapigatorURL

public java.lang.String getNapigatorURL()

setNapigatorURL

public void setNapigatorURL(java.lang.String url)

getRemoveFailedServers

public boolean getRemoveFailedServers()

setRemoveFailedServers

public void setRemoveFailedServers(boolean newValue)

getSendWholeRepository

public boolean getSendWholeRepository()

setSendWholeRepository

public void setSendWholeRepository(boolean newValue)

getServerFile

public java.lang.String getServerFile()

getUseAutoconnector

public boolean getUseAutoconnector()

setUseAutoconnector

public void setUseAutoconnector(boolean newValue)

getUseUTF8Encoding

public boolean getUseUTF8Encoding()

setUseUTF8Encoding

public void setUseUTF8Encoding(boolean newValue)

getSeenStartupWizard

public boolean getSeenStartupWizard()

setSeenStartupWizard

public void setSeenStartupWizard(boolean newValue)

getTickLength

public long getTickLength()

getWhoisQueryOnTransfer

public boolean getWhoisQueryOnTransfer()

setWhoisQueryOnTransfer

public void setWhoisQueryOnTransfer(boolean newValue)


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