comparison src/bridge/DBus.py @ 260:c8406fe5e81e

Added SMTP server plugin, for sending messages from classic MUA \o/ - added subject managing in sendMessage
author Goffi <goffi@goffi.org>
date Tue, 18 Jan 2011 03:59:59 +0100
parents b1794cbb88e5
children af3d4f11fe43
comparison
equal deleted inserted replaced
259:11f71187d5e4 260:c8406fe5e81e
180 def getWaitingSub(self, profile_key='@DEFAULT@'): 180 def getWaitingSub(self, profile_key='@DEFAULT@'):
181 debug("getWaitingSub...") 181 debug("getWaitingSub...")
182 return self.cb["getWaitingSub"](profile_key) 182 return self.cb["getWaitingSub"](profile_key)
183 183
184 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, 184 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
185 in_signature='ssss', out_signature='') 185 in_signature='sssss', out_signature='')
186 def sendMessage(self, to, message, type='chat', profile_key='@DEFAULT@'): 186 def sendMessage(self, to, message, subject="", type='chat', profile_key='@DEFAULT@'):
187 debug("sendMessage...") 187 debug("sendMessage...")
188 print "sendtype=", type #gof 188 print "sendtype=", type #gof
189 self.cb["sendMessage"](to, message, type, profile_key) 189 self.cb["sendMessage"](to, message, subject, type, profile_key)
190 190
191 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, 191 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
192 in_signature='ssia{ss}s', out_signature='') 192 in_signature='ssia{ss}s', out_signature='')
193 def setPresence(self, to="", show="", priority=0, statuses={}, profile_key='@DEFAULT@'): 193 def setPresence(self, to="", show="", priority=0, statuses={}, profile_key='@DEFAULT@'):
194 self.cb["setPresence"](to, show, priority, statuses, profile_key) 194 self.cb["setPresence"](to, show, priority, statuses, profile_key)