Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class CleanNodeDatabaseViewModel(cleanNodeDatabaseUseCase: CleanNodeDatabaseUseCase, alertManager: AlertManager) : ViewModel
ViewModel for CleanNodeDatabaseScreen. Manages the state and logic for cleaning the node database based on specified criteria. The "older than X days" filter is always active.
Link copied to clipboard
data class RadioConfigState(val isLocal: Boolean = false, val connected: Boolean = false, val route: String = "", val metadata: DeviceMetadata? = null, val userConfig: User = User(), val channelList: List<ChannelSettings> = emptyList(), val radioConfig: LocalConfig = LocalConfig(), val moduleConfig: LocalModuleConfig = LocalModuleConfig(), val ringtone: String = "", val cannedMessageMessages: String = "", val deviceConnectionStatus: DeviceConnectionStatus? = null, val deviceUIConfig: DeviceUIConfig? = null, val fileManifest: List<FileInfo> = emptyList(), val responseState: ResponseState<Boolean> = ResponseState.Empty, val analyticsAvailable: Boolean = true, val analyticsEnabled: Boolean = true, val nodeDbResetPreserveFavorites: Boolean = false)
Data class that represents the current RadioConfig state.
Link copied to clipboard
open class RadioConfigViewModel(savedStateHandle: SavedStateHandle, radioConfigRepository: RadioConfigRepository, packetRepository: PacketRepository, serviceRepository: ServiceRepository, nodeRepository: NodeRepository, locationRepository: LocationRepository, mapConsentPrefs: MapConsentPrefs, analyticsPrefs: AnalyticsPrefs, homoglyphEncodingPrefs: HomoglyphPrefs, toggleAnalyticsUseCase: ToggleAnalyticsUseCase, toggleHomoglyphEncodingUseCase: ToggleHomoglyphEncodingUseCase, importProfileUseCase: ImportProfileUseCase, exportProfileUseCase: ExportProfileUseCase, exportSecurityConfigUseCase: ExportSecurityConfigUseCase, installProfileUseCase: InstallProfileUseCase, radioConfigUseCase: RadioConfigUseCase, adminActionsUseCase: AdminActionsUseCase, processRadioResponseUseCase: ProcessRadioResponseUseCase, locationService: LocationService, fileService: FileService, mqttManager: MqttManager) : ViewModel
Link copied to clipboard
Generic sealed class defines each possible state of a response.
Functions
Link copied to clipboard
Composable screen for cleaning the node database. Allows users to specify criteria for deleting nodes. The list of nodes to be deleted updates automatically as filter criteria change.
Link copied to clipboard
fun RadioConfigItemList(state: RadioConfigState, isManaged: Boolean, isOtaCapable: Boolean = false, onRouteClick: (Enum<*>) -> Unit = {}, onImport: () -> Unit = {}, onExport: () -> Unit = {}, onNavigate: (Route) -> Unit)