pub mod audio;
pub mod brightness;
pub mod color_scheme_watcher;
pub mod dbus_service;
pub mod network;
pub mod throttled_cmd;
pub mod toggles;

/// Unified system state polled in a background thread.
#[derive( Debug, Clone, Default )]
pub struct SystemState
{
	pub wifi: WifiState,
	pub bluetooth: BluetoothState,
	pub audio: AudioState,
	pub brightness: u8,
}

#[derive( Debug, Clone, Default )]
pub struct WifiState
{
	pub enabled: bool,
	pub connected: bool,
	pub ssid: Option<String>,
}

#[derive( Debug, Clone, Default )]
pub struct BluetoothState
{
	pub enabled: bool,
	pub connected: bool,
}

#[derive( Debug, Clone, Default )]
pub struct AudioState
{
	pub volume: u8,
	pub muted: bool,
}
