Mercurial > libervia-backend
comparison frontends/sat_bridge_frontend/DBus.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 | d35c5edab53f |
children | 0e50dd3a234a |
comparison
equal
deleted
inserted
replaced
65:d35c5edab53f | 66:8147b4f40809 |
---|---|
38 if iface == "communication": | 38 if iface == "communication": |
39 self.db_comm_iface.connect_to_signal(functionName, handler) | 39 self.db_comm_iface.connect_to_signal(functionName, handler) |
40 elif iface == "request": | 40 elif iface == "request": |
41 self.db_req_iface.connect_to_signal(functionName, handler) | 41 self.db_req_iface.connect_to_signal(functionName, handler) |
42 | 42 |
43 def getProfileName(self, profile_key='@DEFAULT@'): | |
44 return self.db_req_iface.getProfileName(profile_key) | |
45 | |
46 def getProfilesList(self): | |
47 return self.db_req_iface.getProfilesList() | |
48 | |
49 def createProfile(self, profile): | |
50 return self.db_req_iface.getProfileName(profile) | |
51 | |
43 def connect(self, profile_key='@DEFAULT@'): | 52 def connect(self, profile_key='@DEFAULT@'): |
44 return self.db_comm_iface.connect(profile_key) | 53 return self.db_comm_iface.connect(profile_key) |
45 | 54 |
46 def disconnect(self, profile_key='@DEFAULT@'): | 55 def disconnect(self, profile_key='@DEFAULT@'): |
47 return self.db_comm_iface.disconnect(profile_key) | 56 return self.db_comm_iface.disconnect(profile_key) |
78 | 87 |
79 def getParamsForCategory(self, category, profile_key='@DEFAULT@'): | 88 def getParamsForCategory(self, category, profile_key='@DEFAULT@'): |
80 return self.db_comm_iface.getParamsForCategory(category, profile_key) | 89 return self.db_comm_iface.getParamsForCategory(category, profile_key) |
81 | 90 |
82 def getParamsCategories(self): | 91 def getParamsCategories(self): |
83 return self.db_comm_iface.getParamsCategories(profile_key) | 92 return self.db_comm_iface.getParamsCategories() |
84 | 93 |
85 def getHistory(self, from_jid, to_jid, size): | 94 def getHistory(self, from_jid, to_jid, size): |
86 return self.db_comm_iface.getHistory(from_jid, to_jid, size) | 95 return self.db_comm_iface.getHistory(from_jid, to_jid, size) |
87 | 96 |
88 def addContact(self, jid, profile_key='@DEFAULT@'): | 97 def addContact(self, jid, profile_key='@DEFAULT@'): |