Mercurial > libervia-backend
diff plugins/plugin_xep_0054.py @ 66:8147b4f40809
SàT: multi-profile: DBus signals and frontend adaptation (first draft)
- Quick App: new single_profile parameter in __init__ (default: yes), used to tell if the application use only one profile at the time or not
- Quick App: new __check_profile method, tell if the profile is used by the current frontend
- Quick App: new methods plug_profile, unplug_profile and clear_profile, must be called by the frontend to tell which profiles to use
- DBus Bridge: new methods getProfileName, getProfilesList and createProfile
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 03 Feb 2010 23:35:57 +1100 |
parents | d46f849664aa |
children | 86f1f7f6d332 |
line wrap: on
line diff
--- a/plugins/plugin_xep_0054.py Sun Jan 31 15:57:03 2010 +1100 +++ b/plugins/plugin_xep_0054.py Wed Feb 03 23:35:57 2010 +1100 @@ -91,7 +91,7 @@ if not old_value or value != old_value: cache[name] = value self.host.memory.setPrivate("vcard_cache", self.vcard_cache) - self.host.bridge.updatedValue('profile_'+name, {'jid':jid.userhost(), name:value}) + self.host.bridge.updatedValue('card_'+name, {'jid':jid.userhost(), name:value}) def get_cache(self, jid, name): """return cached value for jid