def __init__(self, device_path):
        BusBase.__init__(self,
                         path=device_path,
                         interface="org.bluez.HeadsetGateway")

        self.bus.add_signal_receiver(self.property_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="PropertyChanged")

        self.bus.add_signal_receiver(self.ring_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="Ring")

        self.bus.add_signal_receiver(self.call_terminated_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="CallTerminated")

        self.bus.add_signal_receiver(self.call_started_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="CallStarted")

        self.bus.add_signal_receiver(self.call_ended_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="CallEnded")
示例#2
0
    def __init__(self, adapter_path):
        print "DEBUG ", adapter_path
        BusBase.__init__(self,
                         path=adapter_path,
                         interface="org.bluez.Adapter")

        self.bus.add_signal_receiver(self.device_created_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="DeviceCreated")

        self.bus.add_signal_receiver(self.device_disappeared_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="DeviceDisappeared")

        self.bus.add_signal_receiver(self.device_found_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="DeviceFound")

        self.bus.add_signal_receiver(self.device_removed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="DeviceRemoved")

        self.bus.add_signal_receiver(self.property_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="PropertyChanged")
    def __init__(self, device_path):
        BusBase.__init__(self, path=device_path, interface="org.bluez.Input")

        self.bus.add_signal_receiver(self.property_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="PropertyChanged")
    def __init__(self, adapter_path):
        BusBase.__init__(self, path = adapter_path, interface = "org.bluez.SerialProxyManager")

        self.bus.add_signal_receiver(self.proxy_created_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "ProxyCreated")

        self.bus.add_signal_receiver(self.proxy_removed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "ProxyRemoved")
    def __init__(self, device_path):
        BusBase.__init__(self, path = device_path, interface = "org.bluez.Headset")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")

        self.bus.add_signal_receiver(self.answer_requested_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "AnswerRequested")
    def __init__(self, device_path):
        BusBase.__init__(self, path = device_path, interface = "org.bluez.Control")

        self.bus.add_signal_receiver(self.connected_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "Connected")

        self.bus.add_signal_receiver(self.disconnected_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "Disconnected")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")
    def __init__(self, device_path):
        BusBase.__init__(self, path = device_path, interface = "org.bluez.HealthDevice")

        self.bus.add_signal_receiver(self.channel_connected_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "ChannelConnected")

        self.bus.add_signal_receiver(self.channel_deleted_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "ChannelDeleted")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")
    def __init__(self):
        BusBase.__init__(self, path = "/", interface = "org.bluez.Manager")

        self.bus.add_signal_receiver(self.adapter_added_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "AdapterAdded")

        self.bus.add_signal_receiver(self.adapter_removed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "AdapterRemoved")

        self.bus.add_signal_receiver(self.default_adapter_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "DefaultAdapterChanged")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")
示例#9
0
    def __init__(self, adapter_path):
        BusBase.__init__(self,
                         path=adapter_path,
                         interface="org.bluez.SerialProxyManager")

        self.bus.add_signal_receiver(self.proxy_created_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="ProxyCreated")

        self.bus.add_signal_receiver(self.proxy_removed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="ProxyRemoved")
    def __init__(self, device_path):
        BusBase.__init__(self, path = device_path, interface = "org.bluez.Device")
        self.device_path = device_path

        self.bus.add_signal_receiver(self.disconnect_requested_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "DisconnectRequested")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")

        self.bus.add_signal_receiver(self.node_created_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "NodeCreated")

        self.bus.add_signal_receiver(self.node_removed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "NodeRemoved")
    def __init__(self, device_path):
        BusBase.__init__(self, path = device_path, interface = "org.bluez.HeadsetGateway")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")

        self.bus.add_signal_receiver(self.ring_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "Ring")

        self.bus.add_signal_receiver(self.call_terminated_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "CallTerminated")

        self.bus.add_signal_receiver(self.call_started_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "CallStarted")

        self.bus.add_signal_receiver(self.call_ended_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "CallEnded")
    def __init__(self, adapter_path):
        print "DEBUG ", adapter_path
        BusBase.__init__(self, path = adapter_path, interface = "org.bluez.Adapter")

        self.bus.add_signal_receiver(self.device_created_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "DeviceCreated")

        self.bus.add_signal_receiver(self.device_disappeared_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "DeviceDisappeared")

        self.bus.add_signal_receiver(self.device_found_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "DeviceFound")

        self.bus.add_signal_receiver(self.device_removed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "DeviceRemoved")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")
    def __init__(self, device_path):
        BusBase.__init__(self,
                         path=device_path,
                         interface="org.bluez.HealthDevice")

        self.bus.add_signal_receiver(self.channel_connected_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="ChannelConnected")

        self.bus.add_signal_receiver(self.channel_deleted_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="ChannelDeleted")

        self.bus.add_signal_receiver(self.property_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="PropertyChanged")
    def __init__(self, device_path):
        BusBase.__init__(self, path=device_path, interface="org.bluez.Device")
        self.device_path = device_path

        self.bus.add_signal_receiver(self.disconnect_requested_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="DisconnectRequested")

        self.bus.add_signal_receiver(self.property_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="PropertyChanged")

        self.bus.add_signal_receiver(self.node_created_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="NodeCreated")

        self.bus.add_signal_receiver(self.node_removed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="NodeRemoved")
 def __init__(self, adapter_path):
     BusBase.__init__(self, path = adapter_path, interface = "org.bluez.Media")
 def __init__(self, adapter_path):
     BusBase.__init__(self, path = adapter_path, interface = "org.bluez.NetworkServer")
 def __init__(self, device_path):
     BusBase.__init__(self, path=device_path, interface="org.bluez.Serial")
 def __init__(self, path):
     BusBase.__init__(self, path = path , interface = "org.bluez.Characteristic")
示例#19
0
 def __init__(self, proxy_path):
     BusBase.__init__(self, path = proxy_path , interface = "org.bluez.SerialProxy")
示例#20
0
 def __init__(self, adapter_path):
     BusBase.__init__(self,
                      path=adapter_path,
                      interface="org.bluez.SimAccess")
 def __init__(self, adapter_path):
     BusBase.__init__(self, path = adapter_path, interface = "org.bluez.SimAccess")
 def __init__(self, path):
     BusBase.__init__(self, path=path, interface="org.bluez.Characteristic")
示例#23
0
 def __init__(self, path):
     BusBase.__init__(self, path=path, interface="org.bluez.HealthChannel")
示例#24
0
 def __init__(self, adapter_path):
     BusBase.__init__(self, path=adapter_path, interface="org.bluez.Media")
 def __init__(self, device_path):
     BusBase.__init__(self, path = device_path, interface = "org.bluez.Serial")
    def __init__(self, device_path):
        BusBase.__init__(self, path = device_path, interface = "org.bluez.HandsfreeGateway")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface,
                                     path = self.object_path, signal_name = "PropertyChanged")
 def __init__(self):
     BusBase.__init__(self, path = "/org/bluez/", interface = "org.bluez.HealthManager")
 def __init__(self, adapter_path):
     BusBase.__init__(self, path = adapter_path, interface = "org.bluez.OutOfBand")
    def __init__(self, path):
        BusBase.__init__(self, path = path, interface = "org.bluez.MediaTranport")

        self.bus.add_signal_receiver(self.property_changed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "PropertyChanged")
示例#30
0
 def __init__(self, adapter_path):
     BusBase.__init__(self,
                      path=adapter_path,
                      interface="org.bluez.NetworkServer")
示例#31
0
 def __init__(self):
     BusBase.__init__(self,
                      path="/org/bluez/",
                      interface="org.bluez.HealthManager")
示例#32
0
 def __init__(self, adapter_path):
     BusBase.__init__(self,
                      path=adapter_path,
                      interface="org.bluez.OutOfBand")
 def __init__(self, path):
     BusBase.__init__(self, path = path, interface = "org.bluez.HealthChannel")