diff 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
line wrap: on
line diff
--- a/frontends/sat_bridge_frontend/DBus.py	Sun Jan 31 15:57:03 2010 +1100
+++ b/frontends/sat_bridge_frontend/DBus.py	Wed Feb 03 23:35:57 2010 +1100
@@ -40,6 +40,15 @@
         elif iface == "request":
             self.db_req_iface.connect_to_signal(functionName, handler)
 
+    def getProfileName(self, profile_key='@DEFAULT@'):
+        return self.db_req_iface.getProfileName(profile_key)
+
+    def getProfilesList(self):
+        return self.db_req_iface.getProfilesList()
+    
+    def createProfile(self, profile):
+        return self.db_req_iface.getProfileName(profile)
+
     def connect(self, profile_key='@DEFAULT@'):
         return self.db_comm_iface.connect(profile_key)
 
@@ -80,7 +89,7 @@
         return self.db_comm_iface.getParamsForCategory(category, profile_key)
 
     def getParamsCategories(self):
-        return self.db_comm_iface.getParamsCategories(profile_key)
+        return self.db_comm_iface.getParamsCategories()
 
     def getHistory(self, from_jid, to_jid, size):
         return self.db_comm_iface.getHistory(from_jid, to_jid, size)