code stringlengths 3 6.57k |
|---|
self.on_stop() |
hook(func) |
hook_names.add(func.__name__) |
run_hook(name, *args) |
hooks.get(name, []) |
p.is_enabled() |
f(*args) |
_logger.exception(f"Plugin error. plugin: {p}, hook: {name}") |
results.append(r) |
len(results) |
BasePlugin(Logger) |
__init__(self, parent, config, name) |
Logger.__init__(self) |
dir(self) |
hooks.get(k, []) |
l.append((self, getattr(self, k) |
__str__(self) |
close(self) |
dir(self) |
hooks.get(attr_name, []) |
l.remove((self, getattr(self, attr_name) |
self.parent.close_plugin(self) |
self.on_close() |
on_close(self) |
requires_settings(self) |
thread_jobs(self) |
is_enabled(self) |
self.is_available() |
self.config.get('use_'+self.name) |
is_available(self) |
can_user_disable(self) |
settings_dialog(self) |
DeviceUnpairableError(UserFacingException) |
HardwarePluginLibraryUnavailable(Exception) |
Device(NamedTuple) |
DeviceInfo(NamedTuple) |
HardwarePluginToScan(NamedTuple) |
DeviceMgr(ThreadJob) |
connected() |
disconnected() |
ID (serial number) |
__init__(self, config) |
ThreadJob.__init__(self) |
a (path, id_) |
a (vendor_id, product_id) |
set() |
set() |
threading.RLock() |
threading.RLock() |
thread_jobs(self) |
run(self) |
list(self.clients.keys() |
time.time() |
self.config.get_session_timeout() |
client.timeout(cutoff) |
register_devices(self, device_pairs) |
self.recognised_hardware.add(pair) |
register_enumerate_func(self, func) |
self.enumerate_func.add(func) |
create_client(self, device, handler, plugin) |
self.client_lookup(device.id_) |
plugin.create_client(device, handler) |
self.logger.info(f"Registering {client}") |
xpub_id(self, xpub) |
self.xpub_ids.get(xpub) |
xpub_by_id(self, id_) |
self.xpub_ids.items() |
unpair_xpub(self, xpub) |
self.xpub_ids.pop(xpub) |
self._close_client(_id) |
unpair_id(self, id_) |
self.xpub_by_id(id_) |
self.unpair_xpub(xpub) |
self._close_client(id_) |
_close_client(self, id_) |
self.client_lookup(id_) |
self.clients.pop(client, None) |
client.close() |
pair_xpub(self, xpub, id_) |
client_lookup(self, id_) |
self.clients.items() |
client_by_id(self, id_) |
self.scan_devices() |
self.client_lookup(id_) |
client_for_keystore(self, plugin, handler, keystore, force_pair) |
self.logger.info("getting client for keystore") |
Exception(_("Handler not found for") |
_("A library is probably missing.") |
handler.update_status(False) |
self.scan_devices() |
keystore.get_derivation() |
self.client_by_xpub(plugin, xpub, handler, devices) |
self.select_device(plugin, handler, keystore, devices) |
self.force_pair_xpub(plugin, handler, info, xpub, derivation, devices) |
handler.update_status(True) |
self.logger.info("end client for keystore") |
client_by_xpub(self, plugin, xpub, handler, devices) |
self.xpub_id(xpub) |
self.client_lookup(_id) |
self.create_client(device, handler, plugin) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.