use adw::{ActionRow, ComboRow, PreferencesGroup, SwitchRow}; use dbus::Path; use gtk::subclass::prelude::*; use gtk::{glib, Button, CompositeTemplate, Switch}; use gtk::{prelude::*, StringList}; use re_set_lib::bluetooth::bluetooth_structures::BluetoothAdapter; use std::cell::RefCell; use std::collections::HashMap; use std::sync::{Arc, RwLock}; use crate::components::base::list_entry::ListEntry; use crate::components::bluetooth::bluetooth_box; use crate::components::bluetooth::bluetooth_entry::BluetoothEntry; type BluetoothMap = RefCell, Arc>>; #[derive(Default, CompositeTemplate)] #[template(resource = "/org/Xetibo/ReSet/resetBluetooth.ui")] pub struct BluetoothBox { #[template_child] pub reset_bluetooth_switch: TemplateChild, #[template_child] pub reset_bluetooth_available_devices: TemplateChild, #[template_child] pub reset_bluetooth_refresh_button: TemplateChild