The AlertManager handles all the libtorrent alerts.
This should typically only be used by the Core. Plugins should utilize the :mod:EventManager for similar functionality.
Bases: deluge.component.Component
De-registers the :param:handler function from all alert types.
| Parameter: | handler – func, the handler function to deregister |
|---|
Pops all libtorrent alerts in the session queue and handles them appropriately.
| Parameter: | wait – bool, if True then the handler functions will be run right away and waited to return before processing the next alert |
|---|
Registers a function that will be called when ‘alert_type’ is pop’d in handle_alerts. The handler function should look like: handler(alert) Where ‘alert’ is the actual alert object from libtorrent.
| Parameters: |
|
|---|