Class SaveLocationChange
java.lang.Object
com.biglybt.pif.download.savelocation.SaveLocationChange
Used by
SaveLocationManager
- you create an instance, set the
attributes here and return the value.- Since:
- 3.0.5.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe new location to move the download to.The new name to give the download.The new location to move the torrent to.The new name to give the torrent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returns true if this object indicates a new location for a download.final boolean
Returns true if this object indicates a new location for a torrent.final boolean
isDifferentDownloadLocation
(File current_location) Returns true if this object represents a download location different to the one provided - it will check whether the location represented here is already the same as the one provided.final boolean
isDifferentTorrentLocation
(File current_location) Returns true if this object represents a torrent location different to the one provided - it will check whether the location represented here is already the same as the one provided.final File
normaliseDownloadLocation
(File old_download_location) Given the location of the existing download, determine the new path to store the download.final File
normaliseDownloadLocation
(File old_download_directory, String old_download_name) Given the location of the existing download, determine the new path to store the download.final File
normaliseTorrentLocation
(File old_torrent_location) Given the location of the existing torrent, determine the new path to store the torrent.final File
normaliseTorrentLocation
(File old_torrent_directory, String old_torrent_name) Given the location of the existing torrent, determine the new path to store the torrent.final String
toString()
String representation of this object.
-
Field Details
-
download_location
The new location to move the download to. -
download_name
The new name to give the download. -
torrent_location
The new location to move the torrent to. -
torrent_name
The new name to give the torrent.
-
-
Constructor Details
-
SaveLocationChange
public SaveLocationChange()
-
-
Method Details
-
toString
String representation of this object. -
getString
-
normaliseTorrentLocation
Given the location of the existing torrent, determine the new path to store the torrent. -
normaliseTorrentLocation
Given the location of the existing torrent, determine the new path to store the torrent. -
normaliseDownloadLocation
Given the location of the existing download, determine the new path to store the download. -
normaliseDownloadLocation
Given the location of the existing download, determine the new path to store the download. -
hasDownloadChange
public final boolean hasDownloadChange()Returns true if this object indicates a new location for a download. -
hasTorrentChange
public final boolean hasTorrentChange()Returns true if this object indicates a new location for a torrent. -
isDifferentDownloadLocation
Returns true if this object represents a download location different to the one provided - it will check whether the location represented here is already the same as the one provided. -
isDifferentTorrentLocation
Returns true if this object represents a torrent location different to the one provided - it will check whether the location represented here is already the same as the one provided.
-