add mrim transport icons. Fixes #4078
After Width: | Height: | Size: 762 B |
After Width: | Height: | Size: 896 B |
After Width: | Height: | Size: 870 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 448 B |
After Width: | Height: | Size: 710 B |
After Width: | Height: | Size: 448 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 515 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 515 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.7 KiB |
|
@ -323,7 +323,8 @@ def get_transport_name_from_jid(jid, use_config_setting = True):
|
|||
# now we support both 'icq.' and 'icq' but not icqsucks.org
|
||||
host = host_splitted[0]
|
||||
|
||||
if host in ('aim', 'irc', 'icq', 'msn', 'sms', 'tlen', 'weather', 'yahoo'):
|
||||
if host in ('aim', 'irc', 'icq', 'msn', 'sms', 'tlen', 'weather', 'yahoo',
|
||||
'mrim'):
|
||||
return host
|
||||
elif host == 'gg':
|
||||
return 'gadu-gadu'
|
||||
|
|
|
@ -83,7 +83,8 @@ class Constants:
|
|||
self.TYPE_NEWMAIL,
|
||||
self.TYPE_RSS,
|
||||
self.TYPE_WEATHER,
|
||||
) = range(13)
|
||||
self.TYPE_MRIM,
|
||||
) = range(14)
|
||||
|
||||
constants = Constants()
|
||||
|
||||
|
@ -290,6 +291,8 @@ class Logger:
|
|||
return constants.TYPE_RSS
|
||||
if type_ == 'weather':
|
||||
return constants.TYPE_WEATHER
|
||||
if type_ == 'mrim':
|
||||
return constants.TYPE_MRIM
|
||||
return None
|
||||
|
||||
def convert_api_values_to_human_transport_type(self, type_id):
|
||||
|
@ -320,6 +323,8 @@ class Logger:
|
|||
return 'rss'
|
||||
if type_id == constants.TYPE_WEATHER:
|
||||
return 'weather'
|
||||
if type_id == constants.TYPE_MRIM:
|
||||
return 'mrim'
|
||||
|
||||
def commit_to_db(self, values, write_unread = False):
|
||||
sql = 'INSERT INTO logs (jid_id, contact_name, time, kind, show, message, subject) VALUES (?, ?, ?, ?, ?, ?, ?)'
|
||||
|
|
|
@ -103,6 +103,8 @@ def _gen_agent_type_info():
|
|||
('gateway', 'smtp'): (False, 'mail.png'),
|
||||
('gateway', 'yahoo'): (False, 'yahoo.png'),
|
||||
('_jid', 'yahoo'): (False, 'yahoo.png'),
|
||||
('gateway', 'mrim'): (False, 'mrim.png'),
|
||||
('_jid', 'mrim'): (False, 'mrim.png'),
|
||||
}
|
||||
|
||||
# Category type to "human-readable" description string, and sort priority
|
||||
|
|