def __init__(self, wifi_device_object_path): NMDevice.__init__(self, wifi_device_object_path, "org.freedesktop.NetworkManager.Device.Wireless") self.prop_list = [ "HwAddress", "PermHwAddress", "Mode", "Bitrate", "ActiveAccessPoint", "WirelessCapabilities" ] self.ap_add_match = self.bus.add_signal_receiver( self.access_point_added_cb, dbus_interface=self.object_interface, path=self.object_path, signal_name="AccessPointAdded") self.ap_remove_match = self.bus.add_signal_receiver( self.access_point_removed_cb, dbus_interface=self.object_interface, path=self.object_path, signal_name="AccessPointRemoved") self.p_match = self.bus.add_signal_receiver( self.properties_changed_cb, dbus_interface=self.object_interface, path=self.object_path, signal_name="PropertiesChanged") self.ap_record_dict = {} self.ap_record_inited = 0 self.ap_timer_id = 0 self.init_nmobject_with_properties() self.origin_ap_list = self.get_access_points() self.thread_wifiauto = None
def __init__(self, ethernet_device_object_path): NMDevice.__init__(self, ethernet_device_object_path, "org.freedesktop.NetworkManager.Device.Wired") self.prop_list = ["Carrier", "HwAddress", "PermHwAddress", "Speed"] self.init_nmobject_with_properties() self.bus.add_signal_receiver(self.properties_changed_cb, dbus_interface = self.object_interface, path = self.object_path, signal_name = "PropertiesChanged") self.thread_wiredauto = None self.thread_dslauto = None
def __init__(self, ethernet_device_object_path): NMDevice.__init__(self, ethernet_device_object_path, "org.freedesktop.NetworkManager.Device.Wired") self.prop_list = ["Carrier", "HwAddress", "PermHwAddress", "Speed"] self.init_nmobject_with_properties() self.bus.add_signal_receiver(self.properties_changed_cb, dbus_interface=self.object_interface, path=self.object_path, signal_name="PropertiesChanged") self.thread_wiredauto = None self.thread_dslauto = None
def __init__(self, wifi_device_object_path): NMDevice.__init__(self, wifi_device_object_path, "org.freedesktop.NetworkManager.Device.Wireless") self.prop_list = ["HwAddress", "PermHwAddress", "Mode", "Bitrate", "ActiveAccessPoint", "WirelessCapabilities"] self.ap_add_match = self.bus.add_signal_receiver(self.access_point_added_cb, dbus_interface = self.object_interface, path = self.object_path, signal_name = "AccessPointAdded") self.ap_remove_match = self.bus.add_signal_receiver(self.access_point_removed_cb, dbus_interface = self.object_interface, path = self.object_path, signal_name = "AccessPointRemoved") self.p_match = self.bus.add_signal_receiver(self.properties_changed_cb, dbus_interface = self.object_interface, path = self.object_path, signal_name = "PropertiesChanged") self.ap_record_dict = {} self.ap_record_inited = 0 self.ap_timer_id = 0 self.init_nmobject_with_properties() self.origin_ap_list = self.get_access_points() self.thread_wifiauto = None
def __init__(self, modem_device_object_path): NMDevice.__init__(self, modem_device_object_path, "org.freedesktop.NetworkManager.Device.Modem")