RadioConfigRepository

Properties

Link copied to clipboard
abstract val channelSetFlow: Flow<ChannelSet>

Flow representing the ChannelSet data store.

Link copied to clipboard
abstract val deviceProfileFlow: Flow<DeviceProfile>

Flow representing the combined DeviceProfile protobuf.

Link copied to clipboard
abstract val deviceUIConfigFlow: Flow<DeviceUIConfig?>

Flow of the device's UI configuration, populated from DeviceUIConfig during the config handshake (STATE_SEND_UIDATA — 2nd packet in every handshake). Null until the first handshake completes or after clearDeviceUIConfig is called.

Link copied to clipboard
abstract val fileManifestFlow: Flow<List<FileInfo>>

Flow of FileInfo packets accumulated during STATE_SEND_FILEMANIFEST.

Link copied to clipboard
abstract val localConfigFlow: Flow<LocalConfig>

Flow representing the LocalConfig data store.

Link copied to clipboard
abstract val moduleConfigFlow: Flow<LocalModuleConfig>

Flow representing the LocalModuleConfig data store.

Functions

Link copied to clipboard
abstract suspend fun addFileInfo(info: FileInfo)

Appends a single FileInfo entry to fileManifestFlow.

Link copied to clipboard
abstract suspend fun clearChannelSet()

Clears the ChannelSet data in the data store.

Link copied to clipboard
abstract suspend fun clearDeviceUIConfig()

Clears the stored DeviceUIConfig; called at the start of each new handshake.

Link copied to clipboard
abstract suspend fun clearFileManifest()

Clears the accumulated file manifest; called at the start of each new handshake.

Link copied to clipboard
abstract suspend fun clearLocalConfig()

Clears the LocalConfig data in the data store.

Link copied to clipboard
abstract suspend fun clearLocalModuleConfig()

Clears the LocalModuleConfig data in the data store.

Link copied to clipboard
abstract suspend fun replaceAllSettings(settingsList: List<ChannelSettings>)

Replaces the ChannelSettings list with a new settingsList.

Link copied to clipboard
abstract suspend fun setDeviceUIConfig(config: DeviceUIConfig)

Stores the DeviceUIConfig received from the device.

Link copied to clipboard
abstract suspend fun setLocalConfig(config: Config)

Updates LocalConfig from each Config oneOf.

Link copied to clipboard
abstract suspend fun setLocalModuleConfig(config: ModuleConfig)

Updates LocalModuleConfig from each ModuleConfig oneOf.

Link copied to clipboard
abstract suspend fun updateChannelSettings(channel: Channel)

Updates the ChannelSettings list with the provided channel.