comparison frontends/src/bridge/DBus.py @ 276:a00e87d48213

bridge, bridge constructor: fixed mix stuff
author Goffi <goffi@goffi.org>
date Sun, 30 Jan 2011 22:54:58 +0100
parents 1d2e0dfe7114
children 2b52a5da0978
comparison
equal deleted inserted replaced
275:01a0bd6e7fae 276:a00e87d48213
53 debug ("addContact") 53 debug ("addContact")
54 return self.db_comm_iface.addContact(entity, profile_key) 54 return self.db_comm_iface.addContact(entity, profile_key)
55 55
56 def callMenu(self, category, name, menu_type, profile_key): 56 def callMenu(self, category, name, menu_type, profile_key):
57 debug ("callMenu") 57 debug ("callMenu")
58 return self.db_req_iface.callMenu(category, name, menu_type, profile_key) 58 return unicode(self.db_req_iface.callMenu(category, name, menu_type, profile_key))
59 59
60 def confirmationAnswer(self, id, accepted, data): 60 def confirmationAnswer(self, id, accepted, data):
61 debug ("confirmationAnswer") 61 debug ("confirmationAnswer")
62 return self.db_req_iface.confirmationAnswer(id, accepted, data) 62 return self.db_req_iface.confirmationAnswer(id, accepted, data)
63 63
89 debug ("getHistory") 89 debug ("getHistory")
90 return self.db_comm_iface.getHistory(from_jid, to_jid, size) 90 return self.db_comm_iface.getHistory(from_jid, to_jid, size)
91 91
92 def getMenuHelp(self, category, name, menu_type): 92 def getMenuHelp(self, category, name, menu_type):
93 debug ("getMenuHelp") 93 debug ("getMenuHelp")
94 return self.db_req_iface.getMenuHelp(category, name, menu_type) 94 return unicode(self.db_req_iface.getMenuHelp(category, name, menu_type))
95 95
96 def getMenus(self, ): 96 def getMenus(self, ):
97 debug ("getMenus") 97 debug ("getMenus")
98 return self.db_req_iface.getMenus() 98 return self.db_req_iface.getMenus()
99 99
100 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"): 100 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"):
101 debug ("getParamA") 101 debug ("getParamA")
102 return self.db_comm_iface.getParamA(name, category, attribute, profile_key) 102 return unicode(self.db_comm_iface.getParamA(name, category, attribute, profile_key))
103 103
104 def getParams(self, profile_key="@DEFAULT@"): 104 def getParams(self, profile_key="@DEFAULT@"):
105 debug ("getParams") 105 debug ("getParams")
106 return self.db_comm_iface.getParams(profile_key) 106 return unicode(self.db_comm_iface.getParams(profile_key))
107 107
108 def getParamsCategories(self, ): 108 def getParamsCategories(self, ):
109 debug ("getParamsCategories") 109 debug ("getParamsCategories")
110 return self.db_comm_iface.getParamsCategories() 110 return self.db_comm_iface.getParamsCategories()
111 111
112 def getParamsForCategory(self, category, profile_key="@DEFAULT@"): 112 def getParamsForCategory(self, category, profile_key="@DEFAULT@"):
113 debug ("getParamsForCategory") 113 debug ("getParamsForCategory")
114 return self.db_comm_iface.getParamsForCategory(category, profile_key) 114 return unicode(self.db_comm_iface.getParamsForCategory(category, profile_key))
115 115
116 def getParamsUI(self, profile_key="@DEFAULT@"): 116 def getParamsUI(self, profile_key="@DEFAULT@"):
117 debug ("getParamsUI") 117 debug ("getParamsUI")
118 return self.db_comm_iface.getParamsUI(profile_key) 118 return unicode(self.db_comm_iface.getParamsUI(profile_key))
119 119
120 def getPresenceStatus(self, profile_key="@DEFAULT@"): 120 def getPresenceStatus(self, profile_key="@DEFAULT@"):
121 debug ("getPresenceStatus") 121 debug ("getPresenceStatus")
122 return self.db_comm_iface.getPresenceStatus(profile_key) 122 return self.db_comm_iface.getPresenceStatus(profile_key)
123 123
124 def getProfileName(self, profile_key="@DEFAULT@"): 124 def getProfileName(self, profile_key="@DEFAULT@"):
125 debug ("getProfileName") 125 debug ("getProfileName")
126 return self.db_req_iface.getProfileName(profile_key) 126 return unicode(self.db_req_iface.getProfileName(profile_key))
127 127
128 def getProfilesList(self, ): 128 def getProfilesList(self, ):
129 debug ("getProfilesList") 129 debug ("getProfilesList")
130 return self.db_req_iface.getProfilesList() 130 return self.db_req_iface.getProfilesList()
131 131
133 debug ("getProgress") 133 debug ("getProgress")
134 return self.db_req_iface.getProgress(id) 134 return self.db_req_iface.getProgress(id)
135 135
136 def getVersion(self, ): 136 def getVersion(self, ):
137 debug ("getVersion") 137 debug ("getVersion")
138 return self.db_req_iface.getVersion() 138 return unicode(self.db_req_iface.getVersion())
139 139
140 def getWaitingSub(self, profile_key="@DEFAULT@"): 140 def getWaitingSub(self, profile_key="@DEFAULT@"):
141 debug ("getWaitingSub") 141 debug ("getWaitingSub")
142 return self.db_comm_iface.getWaitingSub(profile_key) 142 return self.db_comm_iface.getWaitingSub(profile_key)
143 143
145 debug ("isConnected") 145 debug ("isConnected")
146 return self.db_comm_iface.isConnected(profile_key) 146 return self.db_comm_iface.isConnected(profile_key)
147 147
148 def launchAction(self, action_type, data, profile_key="@DEFAULT@"): 148 def launchAction(self, action_type, data, profile_key="@DEFAULT@"):
149 debug ("launchAction") 149 debug ("launchAction")
150 return self.db_req_iface.launchAction(action_type, data, profile_key) 150 return unicode(self.db_req_iface.launchAction(action_type, data, profile_key))
151 151
152 def registerNewAccount(self, login, password, host, port=5222): 152 def registerNewAccount(self, login, password, host, port=5222):
153 debug ("registerNewAccount") 153 debug ("registerNewAccount")
154 return self.db_comm_iface.registerNewAccount(login, password, host, port) 154 return unicode(self.db_comm_iface.registerNewAccount(login, password, host, port))
155 155
156 def sendMessage(self, to_jid, message, subject='', mess_type="chat", profile_key="@DEFAULT@"): 156 def sendMessage(self, to_jid, message, subject='', mess_type="chat", profile_key="@DEFAULT@"):
157 debug ("sendMessage") 157 debug ("sendMessage")
158 return self.db_comm_iface.sendMessage(to_jid, message, subject, mess_type, profile_key) 158 return self.db_comm_iface.sendMessage(to_jid, message, subject, mess_type, profile_key)
159 159