comparison frontends/src/bridge/DBus.py @ 538:2c4016921403

core, frontends, bridgen plugins: fixed methods which were unproperly managing multi-profiles - added profile argument to askConfirmation, actionResult, actionResultExt, entityDataUpdated, confirmationAnswer, getProgress - core, frontends: fixed calls/signals according to new bridge API - user of proper profile namespace for progression indicators and dialogs - memory: getParam* now return bool when param type is bool - memory: added getStringParam* to return string instead of typed value - core, memory, storage, quick_frontend: getHistory now manage properly multi-profiles - plugins XEP-0047, XEP-0054, XEP-0065, XEP-0077, XEP-0096; multi-profiles proper handling
author Goffi <goffi@goffi.org>
date Sat, 10 Nov 2012 16:38:16 +0100
parents 790be337cc41
children 3eeb6c865e4d
comparison
equal deleted inserted replaced
537:28cddc96c4ed 538:2c4016921403
73 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))) 73 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])))
74 74
75 def callMenu(self, category, name, menu_type, profile_key): 75 def callMenu(self, category, name, menu_type, profile_key):
76 return unicode(self.db_core_iface.callMenu(category, name, menu_type, profile_key)) 76 return unicode(self.db_core_iface.callMenu(category, name, menu_type, profile_key))
77 77
78 def confirmationAnswer(self, id, accepted, data): 78 def confirmationAnswer(self, id, accepted, data, profile):
79 return self.db_core_iface.confirmationAnswer(id, accepted, data) 79 return self.db_core_iface.confirmationAnswer(id, accepted, data, profile)
80 80
81 def connect(self, profile_key="@DEFAULT@"): 81 def connect(self, profile_key="@DEFAULT@"):
82 return self.db_core_iface.connect(profile_key) 82 return self.db_core_iface.connect(profile_key)
83 83
84 def createProfile(self, profile): 84 def createProfile(self, profile):
103 return self.db_core_iface.getContactsFromGroup(group, profile_key) 103 return self.db_core_iface.getContactsFromGroup(group, profile_key)
104 104
105 def getEntityData(self, jid, keys, profile): 105 def getEntityData(self, jid, keys, profile):
106 return self.db_core_iface.getEntityData(jid, keys, profile) 106 return self.db_core_iface.getEntityData(jid, keys, profile)
107 107
108 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None): 108 def getHistory(self, from_jid, to_jid, limit, between=True, profile="@NONE@", callback=None, errback=None):
109 return self.db_core_iface.getHistory(from_jid, to_jid, limit, between, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) 109 return self.db_core_iface.getHistory(from_jid, to_jid, limit, between, profile, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
110 110
111 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): 111 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"):
112 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key)) 112 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key))
113 113
114 def getMenuHelp(self, category, name, menu_type): 114 def getMenuHelp(self, category, name, menu_type):
139 return unicode(self.db_core_iface.getProfileName(profile_key)) 139 return unicode(self.db_core_iface.getProfileName(profile_key))
140 140
141 def getProfilesList(self, ): 141 def getProfilesList(self, ):
142 return self.db_core_iface.getProfilesList() 142 return self.db_core_iface.getProfilesList()
143 143
144 def getProgress(self, id): 144 def getProgress(self, id, profile):
145 return self.db_core_iface.getProgress(id) 145 return self.db_core_iface.getProgress(id, profile)
146 146
147 def getVersion(self, ): 147 def getVersion(self, ):
148 return unicode(self.db_core_iface.getVersion()) 148 return unicode(self.db_core_iface.getVersion())
149 149
150 def getWaitingSub(self, profile_key="@DEFAULT@"): 150 def getWaitingSub(self, profile_key="@DEFAULT@"):