comparison frontends/sat_bridge_frontend/DBus.py @ 51:8c67ea98ab91

frontend improved to take into account new SàT features - quick_frontend: better use of contact management, it now manages nicks, avatars, and connected status - quick_frontend: disconnect and remove are now 2 separate methods for contact list - wix: new contact list using HTML items, and showing avatars. Groups are not showed for now - wix: contact status now use tuples, to keep order, human readable status and color of contact - wix: contact list is updated when avatar or nick is found - wix: fixed 'question' dialog, which is renamed in 'yes/no' - wix: action result are now ignored for unkwnown id - sortilege refactored to work again
author Goffi <goffi@goffi.org>
date Thu, 07 Jan 2010 00:17:27 +1100
parents 8a438a6ff587
children a5b5fb5fc9fd
comparison
equal deleted inserted replaced
50:daa1f01a5332 51:8c67ea98ab91
50 return self.db_comm_iface.getContacts() 50 return self.db_comm_iface.getContacts()
51 51
52 def getPresenceStatus(self): 52 def getPresenceStatus(self):
53 return self.db_comm_iface.getPresenceStatus() 53 return self.db_comm_iface.getPresenceStatus()
54 54
55 def getWaitingSub(self):
56 return self.db_comm_iface.getWaitingSub()
57
55 def sendMessage(self, to, message): 58 def sendMessage(self, to, message):
56 return self.db_comm_iface.sendMessage(to, message) 59 return self.db_comm_iface.sendMessage(to, message)
57 60
58 def sendFile(self, to, path): 61 def sendFile(self, to, path):
59 return self.db_comm_iface.sendFile(to, path) 62 return self.db_comm_iface.sendFile(to, path)
62 return self.db_comm_iface.findGateways(target) 65 return self.db_comm_iface.findGateways(target)
63 66
64 def getProfile(self, target): 67 def getProfile(self, target):
65 return self.db_comm_iface.getProfile(target) 68 return self.db_comm_iface.getProfile(target)
66 69
70 def getProfileCache(self, target):
71 return self.db_comm_iface.getProfileCache(target)
72
67 def getAvatarFile(self, hash): 73 def getAvatarFile(self, hash):
68 return self.db_comm_iface.getAvatarFile(hash) 74 return self.db_comm_iface.getAvatarFile(hash)
69 75
70 def in_band_register(self, target): 76 def in_band_register(self, target):
71 return self.db_comm_iface.in_band_register(target) 77 return self.db_comm_iface.in_band_register(target)
72 78
73 def setPresence(self, to="", type="", show="", status="", priority=0): 79 def setPresence(self, to="", show="", priority=0, statuses={}):
74 return self.db_comm_iface.setPresence(to, type, show, status, priority) 80 return self.db_comm_iface.setPresence(to, show, priority, statuses)
81
82 def subscription(self, type, entity):
83 return self.db_comm_iface.subscription(type, entity)
75 84
76 def setParam(self, name, value, category): 85 def setParam(self, name, value, category):
77 return self.db_comm_iface.setParam(name, value, category) 86 return self.db_comm_iface.setParam(name, value, category)
78 87
79 def getParamA(self, name, category): 88 def getParamA(self, name, category):