
com.frostwire.jlibtorrent.alerts.TorrentDeletedAlert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlibtorrent Show documentation
Show all versions of jlibtorrent Show documentation
A swig Java interface for libtorrent by the makers of FrostWire.
package com.frostwire.jlibtorrent.alerts;
import com.frostwire.jlibtorrent.Sha1Hash;
import com.frostwire.jlibtorrent.swig.torrent_deleted_alert;
/**
* This alert is generated when a request to delete the files of a torrent complete.
*
* The ``info_hash`` is the info-hash of the torrent that was just deleted. Most of
* the time the torrent_handle in the ``torrent_alert`` will be invalid by the time
* this alert arrives, since the torrent is being deleted. The ``info_hash`` member
* is hence the main way of identifying which torrent just completed the delete.
*
* This alert is posted in the ``storage_notification`` category, and that bit
* needs to be set in the alert_mask.
*
* @author gubatron
* @author aldenml
*/
public final class TorrentDeletedAlert extends TorrentAlert {
public TorrentDeletedAlert(torrent_deleted_alert alert) {
super(alert);
}
public Sha1Hash getInfoHash() {
return new Sha1Hash(alert.getInfo_hash());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy