Class TorrentRemovedAlert

All Implemented Interfaces:
Alert<torrent_removed_alert>

public final class TorrentRemovedAlert extends TorrentAlert<torrent_removed_alert>
The ``torrent_removed_alert`` is posted whenever a torrent is removed. Since the torrent handle in its baseclass will always be invalid (since the torrent is already removed) it has the info hash as a member, to identify it. It's posted when the ``status_notification`` bit is set in the alert_mask.

Even though the ``handle`` member doesn't point to an existing torrent anymore, it is still useful for comparing to other handles, which may also no longer point to existing torrents, but to the same non-existing torrents.

The ``torrent_handle`` acts as a ``weak_ptr``, even though its object no longer exists, it can still compare equal to another weak pointer which points to the same non-existent object.

  • Method Details