add mrim transport icons. Fixes #4078

This commit is contained in:
Yann Leboulanger 2008-07-10 12:18:26 +00:00
parent ebcb659196
commit 4db9685849
19 changed files with 10 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -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'

View File

@ -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 (?, ?, ?, ?, ?, ?, ?)'

View File

@ -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