def __init__(self, interface_name, status_change_callback): ''' Instantiates the BackendWirelessInterface. ''' BaseInterface.__init__(self, interface_name, status_change_callback) if not interface_name in self.find_available_interfaces(): raise self.CannotCreateInterfaceException() self.name = 'Wireless Interface %s' % self.interface_name self.interface = WirelessInterface(self.interface_name) self._status_change('idle')
def __init__(self, interface_name, status_change_callback): BaseInterface.__init__(self, interface_name, status_change_callback) if not interface_name in self.find_available_interfaces(): raise self.CannotCreateInterfaceException() self.name = 'Wired Interface %s' % self.interface_name self._status_change('idle') self.interface = ThreadedWiredInterface(interface_name) self.interface.load_profiles()
def __init__(self, interface_name, status_change_callback): BaseInterface.__init__(self, interface_name, status_change_callback) if not interface_name in self.find_available_interfaces(): raise self.CannotCreateInterfaceException() self.name = 'Wired Interface %s' % self.interface_name self.status_change_callback('idle') def get_status(self): return "Wired Interface. Connected %s" % self.get_connected_to_network()