2016-03-09 16:49:48 +03:00
|
|
|
from ..utils import Enum
|
|
|
|
|
|
|
|
class Alert(object):
|
|
|
|
def __init__(self):
|
|
|
|
self.category_t = Enum({
|
|
|
|
'error_notification': 0x1,
|
|
|
|
'peer_notification': 0x2,
|
|
|
|
'port_mapping_notification': 0x4,
|
|
|
|
'storage_notification': 0x8,
|
|
|
|
'tracker_notification': 0x10,
|
|
|
|
'debug_notification': 0x20,
|
|
|
|
'status_notification': 0x40,
|
|
|
|
'progress_notification': 0x80,
|
|
|
|
'ip_block_notification': 0x100,
|
|
|
|
'performance_warning': 0x200,
|
|
|
|
'dht_notification': 0x400,
|
|
|
|
'dht_notification': 0x400,
|
|
|
|
'session_log_notification': 0x2000,
|
|
|
|
'torrent_log_notification': 0x4000,
|
|
|
|
'peer_log_notification': 0x8000,
|
|
|
|
'incoming_request_notification': 0x10000,
|
|
|
|
'dht_log_notification': 0x20000,
|
|
|
|
'dht_operation_notification': 0x40000,
|
|
|
|
'port_mapping_log_notification': 0x80000,
|
|
|
|
'picker_log_notification': 0x100000,
|
|
|
|
'all_categories': 0x7fffffff
|
|
|
|
})
|
2016-03-09 16:51:25 +03:00
|
|
|
alert = Alert()
|