comparison sat_bridge/DBus.py @ 1:a06a151fc31f

Disconnect first draft
author Goffi <goffi@goffi.org>
date Sun, 18 Oct 2009 23:20:45 +0200
parents c4bc297b82f0
children c14a3a7018a5
comparison
equal deleted inserted replaced
0:c4bc297b82f0 1:a06a151fc31f
77 in_signature='', out_signature='') 77 in_signature='', out_signature='')
78 def connect(self): 78 def connect(self):
79 info ("Connection asked") 79 info ("Connection asked")
80 return self.cb["connect"]() 80 return self.cb["connect"]()
81 81
82 @dbus.service.method("org.goffi.SAT.communication",
83 in_signature='', out_signature='')
84 def disconnect(self):
85 info ("Disconnection asked")
86 return self.cb["disconnect"]()
87
82 @dbus.service.method("org.goffi.SAT.communication", 88 @dbus.service.method("org.goffi.SAT.communication",
83 in_signature='', out_signature='a(sa{ss}as)') 89 in_signature='', out_signature='a(sa{ss}as)')
84 def getContacts(self): 90 def getContacts(self):
85 debug("getContacts...") 91 debug("getContacts...")
86 return self.cb["getContacts"]() 92 return self.cb["getContacts"]()