diff frontends/src/bridge/DBus.py @ 267:bdcd535e179e

Bridge constructor: - moved constructor files in src/bridge/bridge_constructor - frontend side can now be generated
author Goffi <goffi@goffi.org>
date Mon, 24 Jan 2011 21:19:11 +0100
parents c8406fe5e81e
children 1d2e0dfe7114
line wrap: on
line diff
--- a/frontends/src/bridge/DBus.py	Mon Jan 24 17:47:45 2011 +0100
+++ b/frontends/src/bridge/DBus.py	Mon Jan 24 21:19:11 2011 +0100
@@ -48,91 +48,7 @@
         elif iface == "request":
             self.db_req_iface.connect_to_signal(functionName, handler)
 
-    def getVersion(self):
-        return self.db_req_iface.getVersion()
-
-    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, name):
-        return self.db_req_iface.createProfile(name)
-    
-    def deleteProfile(self, name):
-        return self.db_req_iface.deleteProfile(name)
-
-    def connect(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.connect(profile_key)
-
-    def disconnect(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.disconnect(profile_key)
-    
-    def isConnected(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.isConnected(profile_key)
-
-    def getContacts(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.getContacts(profile_key)
-    
-    def getPresenceStatus(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.getPresenceStatus(profile_key)
-
-    def getWaitingSub(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.getWaitingSub(profile_key)
-
-    def sendMessage(self, to, message, subject='', type='chat', profile_key='@DEFAULT@'):
-        return self.db_comm_iface.sendMessage(to, message, subject, type, profile_key)
-    
-    def setPresence(self, to="", show="", priority=0, statuses={}, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.setPresence(to, show, priority, statuses, profile_key)
-    
-    def subscription(self, type, entity, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.subscription(type, entity, profile_key)
-
-    def setParam(self, name, value, category, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.setParam(name, value, category, profile_key)
-        
-    def getParamA(self, name, category, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.getParamA(name, category, profile_key)
-
-    def getParamsUI(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.getParamsUI(profile_key)
-
-    def getParams(self, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.getParams(profile_key)
-
-    def getParamsForCategory(self, category, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.getParamsForCategory(category, profile_key)
-
-    def getParamsCategories(self):
-        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)
-    
-    def addContact(self, jid, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.addContact(jid, profile_key)
-    
-    def delContact(self, jid, profile_key='@DEFAULT@'):
-        return self.db_comm_iface.delContact(jid, profile_key)
-
-    def launchAction(self, type, data, profile_key='@DEFAULT@'):
-        return self.db_req_iface.launchAction(type, data, profile_key)
-
-    def confirmationAnswer(self, id, accepted, data):
-        return self.db_req_iface.confirmationAnswer(id, accepted, data)
-
-    def getProgress(self, id):
-        return self.db_req_iface.getProgress(id)
-    
-    def getMenus(self):
-        return self.db_req_iface.getMenus()
-
-    def getMenuHelp(self, category, name, type="NORMAL"):
-        return self.db_req_iface.getMenuHelp(category, name, type)
-
-    def callMenu(self, category, name, type="NORMAL", profile_key='@DEFAULT@'):
-        return self.db_req_iface.callMenu(category, name, type, profile_key)
+##METHODS_PART##
 
 #methods from plugins
     def getRoomJoined(self, profile_key='@DEFAULT@'):