|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.settings.AbstractSettings
com.limegroup.gnutella.settings.LimeProps
com.limegroup.gnutella.settings.SharingSettings
Settings for sharing
Field Summary | |
static BooleanSetting |
ALLOW_BROWSER
Whether or not browsers should be allowed to perform uploads. |
static BooleanSetting |
CLEAR_DOWNLOAD
Specifies whether or not completed downloads should automatically be cleared from the download window. |
static BooleanSetting |
CLEAR_UPLOAD
Specifies whether or not completed uploads should automatically be cleared from the upload window. |
static java.io.File |
DEFAULT_SAVE_DIR
|
static FileArraySetting |
DIRECTORIES_TO_SHARE
The shared directories (an array of Files!). |
static FileSetting |
DIRECTORY_FOR_SAVING_FILES
The directory for saving files. |
static FileSetting |
DOWNLOAD_SNAPSHOT_BACKUP_FILE
A file with a snapshot of current downloading files. |
static FileSetting |
DOWNLOAD_SNAPSHOT_FILE
A file with a snapshot of current downloading files. |
static StringSetting |
EXTENSIONS_TO_SHARE
File extensions that are shared. |
static IntSetting |
FREELOADER_ALLOWED
Sets the probability (expressed as a percentage) that an incoming freeloader will be accepted. |
static IntSetting |
FREELOADER_FILES
Minimum the number of files a host must share to not be considered a freeloader. |
static FileSetting |
INCOMPLETE_DIRECTORY
The directory where incomplete files are stored (downloads in progress). |
static IntSetting |
INCOMPLETE_PURGE_TIME
The minimum age in days for which incomplete files will be deleted. |
static IntSetting |
PERSISTENT_HTTP_CONNECTION_TIMEOUT
The timeout value for persistent HTTP connections in milliseconds. |
Fields inherited from class com.limegroup.gnutella.settings.LimeProps |
FACTORY |
Method Summary | |
static void |
addDirectory(java.io.File dir)
Helper method left from SettingsManager. |
static java.io.File |
getSaveDirectory()
Retrieves the save directory. |
static void |
setDirectories(java.io.File[] files)
Helper method left from SettingsManager. |
static void |
setSaveDirectory(java.io.File saveDir)
Helper method left from SettingsManager. |
Methods inherited from class com.limegroup.gnutella.settings.LimeProps |
instance |
Methods inherited from class com.limegroup.gnutella.settings.AbstractSettings |
getFactory, getProperties, getPropertiesFile, getShouldSave, reload, revertToDefault, save, setShouldSave |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.io.File DEFAULT_SAVE_DIR
public static final FileSetting DIRECTORY_FOR_SAVING_FILES
public static final FileSetting INCOMPLETE_DIRECTORY
public static final FileSetting DOWNLOAD_SNAPSHOT_FILE
public static final FileSetting DOWNLOAD_SNAPSHOT_BACKUP_FILE
public static final IntSetting INCOMPLETE_PURGE_TIME
public static final BooleanSetting CLEAR_DOWNLOAD
public static final FileArraySetting DIRECTORIES_TO_SHARE
public static final StringSetting EXTENSIONS_TO_SHARE
public static final IntSetting FREELOADER_ALLOWED
public static final IntSetting FREELOADER_FILES
public static final IntSetting PERSISTENT_HTTP_CONNECTION_TIMEOUT
public static final BooleanSetting CLEAR_UPLOAD
public static final BooleanSetting ALLOW_BROWSER
Method Detail |
public static final void setSaveDirectory(java.io.File saveDir) throws java.io.IOException
Modifies: DIRECTORY_FOR_SAVING_FILES, INCOMPLETE_DIRECTORY, DOWNLOAD_SNAPSHOT_FILE
saveDir
- A File instance denoting the
abstract pathname of the directory for
saving files.
IOException
- If the directory denoted by the directory pathname
String parameter did not exist prior to this method
call and could not be created, or if the canonical
path could not be retrieved from the file system.
NullPointerException
- If the "dir" parameter is null.
java.io.IOException
public static final java.io.File getSaveDirectory()
public static final void addDirectory(java.io.File dir) throws java.io.IOException
Modifies: DIRECTORIES_TO_SHARE
dir
- a File instance denoting the
abstract pathname of the new directory
to add
java.io.IOException
- if the directory denoted by the directory pathname
String parameter did not exist prior to this method
call and could not be created, or if the canonical
path could not be retrieved from the file systempublic static final void setDirectories(java.io.File[] files) throws java.io.IOException
Modifies: DIRECTORIES_TO_SHARE
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |