2016-03-09 16:49:48 +03:00
|
|
|
from ..utils import Enum
|
|
|
|
|
|
|
|
class Alert(object):
|
2016-03-10 13:04:36 +03:00
|
|
|
category_t = Enum({
|
2016-03-09 16:49:48 +03:00
|
|
|
'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-10 13:04:36 +03:00
|
|
|
def timestamp(self):
|
|
|
|
pass
|
|
|
|
def type(self):
|
|
|
|
pass
|
|
|
|
def what(self):
|
|
|
|
pass
|
|
|
|
def message(self):
|
|
|
|
pass
|
|
|
|
def category(self):
|
|
|
|
pass
|
|
|
|
|
2016-03-09 16:51:25 +03:00
|
|
|
alert = Alert()
|