Source code for platypush.message.event.torrent

from platypush.message.event import Event


[docs]class TorrentEvent(Event): """ Base class for torrent events """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class TorrentQueuedEvent(TorrentEvent): """ Event triggered upon when a new torrent transfer is queued """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentDownloadedMetadataEvent(TorrentEvent): """ Event triggered upon torrent metadata download completed """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentDownloadStartEvent(TorrentEvent): """ Event triggered upon torrent download start """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentSeedingStartEvent(TorrentEvent): """ Event triggered upon torrent seeding start """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentDownloadProgressEvent(TorrentEvent): """ Event triggered upon torrent download progress """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentStateChangeEvent(TorrentEvent): """ Event triggered upon torrent state change """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentPausedEvent(TorrentEvent): """ Event triggered when a torrent transfer is paused """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentResumedEvent(TorrentEvent): """ Event triggered when a torrent transfer is resumed """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentDownloadCompletedEvent(TorrentEvent): """ Event triggered upon torrent state change """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentDownloadStopEvent(TorrentEvent): """ Event triggered when a torrent transfer is stopped """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
[docs]class TorrentRemovedEvent(TorrentEvent): """ Event triggered when a torrent transfer is removed. """
[docs] def __init__(self, url, *args, **kwargs): super().__init__(*args, url=url, **kwargs)
# vim:sw=4:ts=4:et: